public class CCFDevice extends CCFNode implements INamed, IListElement
Modifier and Type | Field and Description |
---|---|
static int |
HAS_SEPARATOR |
static int |
IS_TEMPLATE |
static int |
IS_TIMER_GROUP |
static int |
NEEDS_PROGRAMMING |
static int |
READ_ONLY |
TEXT_CENTER, TEXT_LEFT, TEXT_RIGHT
Modifier and Type | Method and Description |
---|---|
void |
addPanel(CCFPanel panel)
Add a panel to this Device.
|
void |
appendDevice(CCFDevice device)
Append a device to the end of the device list.
|
CCFPanel |
createPanel(java.lang.String name)
Create a new panel.
|
CCFDevice |
delete()
Remove this device from the device list.
|
CCFAction[] |
getActions() |
CCFNode |
getClone() |
CCFPanel |
getFirstPanel()
Return the first sub-panel.
|
boolean |
getFlag(int flag)
Return the status of a Device flag.
|
CCFHardKey[] |
getHardKeys() |
java.lang.String |
getName()
Return the name of this device.
|
CCFDevice |
getNextDevice()
Return the next device in the list.
|
IListElement |
getNextElement() |
CCFPanel |
getPanelByName(java.lang.String name)
Return the first panel with the specified name.
|
int |
getRFExtender() |
void |
insertAfter(CCFDevice dev) |
void |
insertBefore(CCFDevice dev) |
void |
setFirstPanel(CCFPanel panel)
Set the first sub-panel.
|
void |
setFlag(int flag,
boolean set)
Set the status of a Device flag.
|
void |
setKeyActions(CCFHardKey[] keys) |
void |
setName(java.lang.String name)
Set the name of this device.
|
void |
setNextDevice(CCFDevice device)
Set the next device in the list.
|
void |
setRFExtender(int rf) |
java.lang.String |
toString() |
getHeader, getParent, getParentDevice, getParentPanel
public static final int READ_ONLY
public static final int IS_TIMER_GROUP
public static final int NEEDS_PROGRAMMING
public static final int HAS_SEPARATOR
public static final int IS_TEMPLATE
public CCFNode getClone()
public CCFAction[] getActions()
public CCFPanel getPanelByName(java.lang.String name)
name
- name of panel to retrievepublic CCFHardKey[] getHardKeys()
public void setKeyActions(CCFHardKey[] keys)
public int getRFExtender()
public void setRFExtender(int rf)
public IListElement getNextElement()
getNextElement
in interface IListElement
public CCFDevice getNextDevice()
public void setNextDevice(CCFDevice device)
device
- new next devicepublic void appendDevice(CCFDevice device)
device
- new last devicepublic void insertAfter(CCFDevice dev)
public void insertBefore(CCFDevice dev)
public boolean getFlag(int flag)
flag
- name of flag to checkpublic void setFlag(int flag, boolean set)
flag
- name of flag to setset
- set on or offgetFlag(int)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- new device namepublic CCFPanel getFirstPanel()
public void setFirstPanel(CCFPanel panel)
panel
- new first panelpublic CCFPanel createPanel(java.lang.String name)
public void addPanel(CCFPanel panel)
public CCFDevice delete()