|
||||||||||
| 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.CommandRec
A record from the command table
| Field Summary | |
protected java.lang.String |
cmd_code
|
protected int |
command_id
|
protected int |
medium_id
|
| Fields inherited from interface jreceiver.common.rec.driver.Command |
HKEY_CMD_CODE, HKEY_ID, HKEY_MEDIUM_ID, STD_FF, STD_NEXT, STD_NEXT_PL, STD_PAUSE, STD_PLAY, STD_PLAYPAUSE, STD_PREV, STD_PREV_PL, STD_PWRTGL, STD_RECORD, STD_RW, STD_STOP, STD_VOLDN, STD_VOLMUTE, STD_VOLUP, TYPE_DIRECT, TYPE_IR, TYPE_X10 |
| Fields inherited from interface jreceiver.common.rec.Rec |
HKEY_KEY, NO_LIMIT |
| Constructor Summary | |
CommandRec()
ctor - for use as bean |
|
CommandRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC |
|
CommandRec(int command_id,
java.lang.String cmd_code,
int medium_id)
ctor - default |
|
| Method Summary | |
java.lang.String |
getCmdCode()
This cmd_code is a the network cmd_code by which to identify the receiver. |
java.lang.String |
getDescription()
a summary of the command for display |
int |
getId()
The driver with which the command is associated |
java.lang.Object |
getKey()
return the Integer object that serves as this Rec's key. |
int |
getMediumId()
obtain the medium |
static java.util.Vector |
reconstitute(java.util.Vector vector)
Reconstitute each CommandRec object that appears as a hash in the list. |
void |
setCmdCode(java.lang.String cmd_code)
assign the code |
void |
setKey(java.lang.Object new_key)
assign the Number-derived, Key-derived or String that serves as this Rec's key. |
void |
setMediumId(int medium_id)
assign the medium |
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 event. |
| 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 int command_id
protected java.lang.String cmd_code
protected int medium_id
| Constructor Detail |
public CommandRec()
public CommandRec(int command_id,
java.lang.String cmd_code,
int medium_id)
public CommandRec(java.util.Hashtable hash)
hash - | Method Detail |
public java.util.Hashtable toHash()
Use CommandRec(Hashtable) to transform the data
back into an object of this type.
toHash in interface Hashablepublic java.lang.String toString()
toString in interface HashabletoString in class java.lang.Objectpublic java.lang.Object getKey()
getKey in interface Recpublic void setKey(java.lang.Object new_key)
setKey in interface Recpublic int getId()
getId in interface Commandpublic java.lang.String getCmdCode()
getCmdCode in interface Commandpublic void setCmdCode(java.lang.String cmd_code)
setCmdCode in interface Commandpublic int getMediumId()
CommandgetMediumId in interface Commandpublic void setMediumId(int medium_id)
setMediumId in interface Commandpublic java.lang.String getDescription()
getDescription in interface Commandpublic static java.util.Vector reconstitute(java.util.Vector vector)
vector -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||