|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jreceiver.common.rec.BaseRec | +--jreceiver.common.rec.driver.SignalRec
Bean to represent a signal (command:driverbind binding)
Field Summary | |
protected Command |
cmd
|
protected boolean |
is_checked
is the item selected in the form? |
protected SignalKey |
key
|
protected Device |
master_device
|
protected java.lang.String |
sig_data
|
Fields inherited from interface jreceiver.common.rec.driver.Signal |
HKEY_COMMAND, HKEY_MASTER_DEVICE, HKEY_SIG_DATA, POPULATE_COMMAND, POPULATE_MASTER_DEVICE |
Fields inherited from interface jreceiver.common.rec.Rec |
HKEY_KEY, NO_LIMIT |
Fields inherited from interface jreceiver.common.rec.Selectable |
HKEY_CHECKED |
Constructor Summary | |
SignalRec()
ctor - default |
|
SignalRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC |
|
SignalRec(SignalKey key)
ctor - shallow |
|
SignalRec(SignalKey key,
java.lang.String sig_data,
Command cmd,
Device master_device)
ctor - deep |
Method Summary | |
boolean |
getChecked()
get the current select state |
Command |
getCommand()
|
java.lang.Object |
getKey()
return the Number-derived, Key-derived or String that serves as this Rec's key. |
Device |
getMasterDevice()
|
java.lang.String |
getSignalData()
|
static java.util.Vector |
reconstitute(java.util.Vector vector)
Reconstitute each SignalRec object that appears as a hash in the list. |
void |
setChecked(boolean is_checked)
set the select state |
void |
setCommand(Command cmd)
|
void |
setKey(java.lang.Object new_key)
assign the Number-derived, Key-derived or String that serves as this Rec's key. |
void |
setMasterDevice(Device master_device)
|
void |
setSignalData(java.lang.String sig_data)
|
java.util.Hashtable |
toHash()
Store the object as a hash suitable for transport over an XML-RPC connection or similar. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class jreceiver.common.rec.BaseRec |
dissolve, dissolveMap, find, find, find, find |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected SignalKey key
protected java.lang.String sig_data
protected Command cmd
protected Device master_device
protected boolean is_checked
Constructor Detail |
public SignalRec()
public SignalRec(SignalKey key)
public SignalRec(SignalKey key, java.lang.String sig_data, Command cmd, Device master_device)
public SignalRec(java.util.Hashtable hash) throws RecException
hash
- Method Detail |
public java.lang.Object getKey()
Rec
getKey
in interface Rec
public void setKey(java.lang.Object new_key)
setKey
in interface Rec
public java.lang.String getSignalData()
getSignalData
in interface Signal
public void setSignalData(java.lang.String sig_data)
setSignalData
in interface Signal
public Command getCommand()
getCommand
in interface Signal
public void setCommand(Command cmd)
setCommand
in interface Signal
public Device getMasterDevice()
getMasterDevice
in interface Signal
public void setMasterDevice(Device master_device)
setMasterDevice
in interface Signal
public boolean getChecked()
Selectable
getChecked
in interface Selectable
jreceiver.common.rec.Selectable
boolean
true if the item has been selected by the user; false otherwisepublic void setChecked(boolean is_checked)
Selectable
setChecked
in interface Selectable
jreceiver.common.rec.Selectable
is_checked
- public java.util.Hashtable toHash()
Use SignalRec(Hashtable)
to transform the data
back into an object of this type.
toHash
in interface Hashable
public java.lang.String toString()
Hashable
toString
in interface Hashable
toString
in class java.lang.Object
public static java.util.Vector reconstitute(java.util.Vector vector) throws RecException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |