public class CCFPanel extends CCFNode implements IChildContainer, INamed, IListElement
TEXT_CENTER, TEXT_LEFT, TEXT_RIGHT| Modifier and Type | Method and Description |
|---|---|
void |
addButton(CCFButton b)
Add child to this panel.
|
void |
addChild(CCFChild c)
Add child to this panel.
|
void |
addFrame(CCFFrame f)
Add child to this panel.
|
CCFButton |
createButton(java.lang.String name)
Create a button.
|
CCFFrame |
createFrame(java.lang.String name)
Create a frame.
|
void |
delete()
Delete this panel from it's parent Device.
|
boolean |
equals(java.lang.Object o) |
CCFButton |
getButtonByID(java.lang.String id)
Recursively search children for the first button with the specified id.
|
CCFButton |
getButtonByName(java.lang.String name)
Recursively search children for the first button with the specified name.
|
CCFChild[] |
getChildren()
Return array of children of this panel.
|
java.lang.String |
getName()
Return this panel's name.
|
IListElement |
getNextElement() |
CCFPanel |
getNextPanel()
Get the next Panel in the linked list.
|
CCFPanel |
getTemplate() |
boolean |
hasChildren() |
void |
insertAfter(CCFPanel panel) |
void |
insertBefore(CCFPanel panel) |
boolean |
isHidden()
Returns true if this panel is hidden.
|
boolean |
isTemplate() |
void |
setChildren(CCFChild[] c)
Replace children with this array.
|
void |
setHidden(boolean hide)
Sets whether or not this panel is hidden.
|
void |
setName(java.lang.String name)
Set this panel's name.
|
void |
setNextPanel(CCFPanel next)
Set the next Panel in the linked list.
|
java.lang.String |
toString() |
getHeader, getParent, getParentDevice, getParentPanelpublic java.lang.String getName()
public void setName(java.lang.String name)
public IListElement getNextElement()
getNextElement in interface IListElementpublic CCFPanel getNextPanel()
public void setNextPanel(CCFPanel next)
public boolean isTemplate()
public void insertBefore(CCFPanel panel)
public void insertAfter(CCFPanel panel)
public CCFButton createButton(java.lang.String name)
public CCFFrame createFrame(java.lang.String name)
public boolean isHidden()
public void setHidden(boolean hide)
hide - new hidden/visible state of panelpublic CCFChild[] getChildren()
getChildren in interface IChildContainerpublic boolean hasChildren()
public CCFPanel getTemplate()
public void setChildren(CCFChild[] c)
setChildren in interface IChildContainerpublic void addChild(CCFChild c)
public void addButton(CCFButton b)
addButton in interface IChildContainerpublic void addFrame(CCFFrame f)
addFrame in interface IChildContainerpublic void delete()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic CCFButton getButtonByName(java.lang.String name)
name - name of button to findpublic CCFButton getButtonByID(java.lang.String id)
id - id of button to find