|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neuron.app.tonto.CCFNode
com.neuron.app.tonto.CCFChild
public class CCFChild
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 |
---|
public static final int FRAME
public static final int BUTTON
Method Detail |
---|
public CCFNode getClone()
public boolean raise()
public boolean lower()
public void top()
public void bottom()
public java.awt.Rectangle getBounds()
public void setBounds(java.awt.Rectangle bounds)
public java.awt.Point getLocation()
public void setLocation(java.awt.Point loc)
loc
- x,y location in the panel or framegetLocation()
public boolean isResizable()
public java.awt.Dimension getSize()
public void setSize(java.awt.Dimension size)
public boolean isButton()
public boolean isFrame()
public int getType()
public CCFButton getButton()
public CCFFrame getFrame()
public void delete()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |