com.neuron.app.tonto
Class CCFChild

java.lang.Object
  extended by com.neuron.app.tonto.CCFNode
      extended by com.neuron.app.tonto.CCFChild
All Implemented Interfaces:
java.lang.Cloneable

public class CCFChild
extends CCFNode

The container class for CCFButton and CCFFrame objects. Buttons and Frames are the two component types that Panels can contain. Further, Frames can contain other Child and Frame objects. While CCFChild container only serves as a positional holder for its contents, this somewhat awkward object structure greatly simplifies CCF encoding and decoding. The public CCF API may change in the future to eliminate this indirection.


Field Summary
static int BUTTON
           
static int FRAME
           
 
Fields inherited from class com.neuron.app.tonto.CCFNode
TEXT_CENTER, TEXT_LEFT, TEXT_RIGHT
 
Method Summary
 void bottom()
           
 void delete()
          Delete this child from it's parent.
 java.awt.Rectangle getBounds()
          Return the bounds of the child.
 CCFButton getButton()
          Returns the wrapped button if it's a button and null otherwise.
 CCFNode getClone()
           
 CCFFrame getFrame()
          Returns the wrapped frame if it's a frame and null otherwise.
 java.awt.Point getLocation()
          Return the X,Y location of this object in the Panel or frame.
 java.awt.Dimension getSize()
          Get the size of the child.
 int getType()
          Returns the child type.
 boolean isButton()
          Returns true if this child is a Button.
 boolean isFrame()
          Returns true if this child is a Frame.
 boolean isResizable()
          Returns true of the child does not have an icon.
 boolean lower()
           
 boolean raise()
           
 void setBounds(java.awt.Rectangle bounds)
          Set the bounds of the child.
 void setLocation(java.awt.Point loc)
          Set the X,Y location.
 void setSize(java.awt.Dimension size)
          Set the size of the child.
 void top()
           
 
Methods inherited from class com.neuron.app.tonto.CCFNode
getHeader, getParent, getParentDevice, getParentPanel, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FRAME

public static final int FRAME
See Also:
Constant Field Values

BUTTON

public static final int BUTTON
See Also:
Constant Field Values
Method Detail

getClone

public CCFNode getClone()

raise

public boolean raise()

lower

public boolean lower()

top

public void top()

bottom

public void bottom()

getBounds

public java.awt.Rectangle getBounds()
Return the bounds of the child.


setBounds

public void setBounds(java.awt.Rectangle bounds)
Set the bounds of the child.


getLocation

public java.awt.Point getLocation()
Return the X,Y location of this object in the Panel or frame.


setLocation

public void setLocation(java.awt.Point loc)
Set the X,Y location.

Parameters:
loc - x,y location in the panel or frame
See Also:
getLocation()

isResizable

public boolean isResizable()
Returns true of the child does not have an icon.


getSize

public java.awt.Dimension getSize()
Get the size of the child.


setSize

public void setSize(java.awt.Dimension size)
Set the size of the child.


isButton

public boolean isButton()
Returns true if this child is a Button.


isFrame

public boolean isFrame()
Returns true if this child is a Frame.


getType

public int getType()
Returns the child type.


getButton

public CCFButton getButton()
Returns the wrapped button if it's a button and null otherwise.


getFrame

public CCFFrame getFrame()
Returns the wrapped frame if it's a frame and null otherwise.


delete

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