com.neuron.app.tonto
Class CCFPanel

java.lang.Object
  extended by com.neuron.app.tonto.CCFNode
      extended by com.neuron.app.tonto.CCFPanel
All Implemented Interfaces:
IChildContainer, IListElement, INamed, java.lang.Cloneable

public class CCFPanel
extends CCFNode
implements IChildContainer, INamed, IListElement

A single Pronto screen containing buttons and frames.


Field Summary
 
Fields inherited from class com.neuron.app.tonto.CCFNode
TEXT_CENTER, TEXT_LEFT, TEXT_RIGHT
 
Method Summary
 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()
           
 
Methods inherited from class com.neuron.app.tonto.CCFNode
getHeader, getParent, getParentDevice, getParentPanel
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Return this panel's name.

Specified by:
getName in interface INamed

setName

public void setName(java.lang.String name)
Set this panel's name.


getNextElement

public IListElement getNextElement()
Specified by:
getNextElement in interface IListElement

getNextPanel

public CCFPanel getNextPanel()
Get the next Panel in the linked list.


setNextPanel

public void setNextPanel(CCFPanel next)
Set the next Panel in the linked list.


isTemplate

public boolean isTemplate()

insertBefore

public void insertBefore(CCFPanel panel)

insertAfter

public void insertAfter(CCFPanel panel)

createButton

public CCFButton createButton(java.lang.String name)
Create a button. It must be added to the panel manually.


createFrame

public CCFFrame createFrame(java.lang.String name)
Create a frame. It must be added to the panel manually.


isHidden

public boolean isHidden()
Returns true if this panel is hidden.


setHidden

public void setHidden(boolean hide)
Sets whether or not this panel is hidden.

Parameters:
hide - new hidden/visible state of panel

getChildren

public CCFChild[] getChildren()
Return array of children of this panel.

Specified by:
getChildren in interface IChildContainer

hasChildren

public boolean hasChildren()

getTemplate

public CCFPanel getTemplate()

setChildren

public void setChildren(CCFChild[] c)
Replace children with this array.

Specified by:
setChildren in interface IChildContainer

addChild

public void addChild(CCFChild c)
Add child to this panel.


addButton

public void addButton(CCFButton b)
Add child to this panel.

Specified by:
addButton in interface IChildContainer

addFrame

public void addFrame(CCFFrame f)
Add child to this panel.

Specified by:
addFrame in interface IChildContainer

delete

public void delete()
Delete this panel from it's parent Device.


toString

public java.lang.String toString()
Overrides:
toString in class CCFNode

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getButtonByName

public CCFButton getButtonByName(java.lang.String name)
Recursively search children for the first button with the specified name.

Parameters:
name - name of button to find

getButtonByID

public CCFButton getButtonByID(java.lang.String id)
Recursively search children for the first button with the specified id.

Parameters:
id - id of button to find