|
||||||||
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.CCFButton
public class CCFButton
An on-screen button that can be assigned various icons to represent active/inactive and selected/unselected states.
Field Summary | |
---|---|
static int |
STATE_ACTIVE_SELECTED
|
static int |
STATE_ACTIVE_UNSELECTED
|
static int |
STATE_INACTIVE_SELECTED
|
static int |
STATE_INACTIVE_UNSELECTED
|
Fields inherited from class com.neuron.app.tonto.CCFNode |
---|
TEXT_CENTER, TEXT_LEFT, TEXT_RIGHT |
Method Summary | |
---|---|
void |
appendAction(CCFAction a)
|
void |
convertToColor()
|
void |
convertToGray()
|
void |
copyColors(CCFButton src)
|
void |
copyIcons(CCFButton src)
|
void |
delete()
Deletes this child from it's parent. |
CCFActionList |
getActionList()
Returns the action list that is performed when this Button is clicked. |
CCFAction[] |
getActions()
|
CCFColor |
getBackground()
Get the background color for this button. |
CCFChild |
getChildWrapper()
|
CCFFont |
getFont()
Get the CCFFont for this Button. |
CCFColor |
getForeground()
Get the foreground color for this button. |
CCFIconSet |
getIconSet()
Get the CCFIconSet associated with this Button. |
java.lang.String |
getIDTag()
Return the ID tag for this Button. |
java.awt.Point |
getLocation()
|
java.lang.String |
getName()
Return the name of this Button. |
java.awt.Dimension |
getSize()
Returns the size of the button which is overridden by the size of the Button's active unclicked icon. |
int |
getTextAlignment()
|
boolean |
getTextWrap()
|
boolean |
isActive()
Returns true of the button has an associated action list containing at least one item. |
boolean |
isResizable()
Returns true if this button is resizable in it's current state (eg: an icon for this state exists). |
void |
setActionList(CCFActionList actions)
Sets the action list that is performed when this Button is clicked. |
void |
setFont(CCFFont font)
Set the CCFFont for this Button. |
void |
setIconSet(CCFIconSet set)
Set the CCFIconSet associated with this Button. |
void |
setIDTag(java.lang.String idtag)
Set the ID tag for this Button. |
void |
setLocation(java.awt.Point p)
|
void |
setName(java.lang.String name)
Set the name of this Button. |
void |
setParent(CCFNode p)
|
void |
setSize(java.awt.Dimension size)
Sets the size of the button. |
void |
setTextAlignment(int align)
|
void |
setTextWrap(boolean w)
|
java.lang.String |
toString()
|
Methods inherited from class com.neuron.app.tonto.CCFNode |
---|
getHeader, getParent, getParentDevice, getParentPanel |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int STATE_ACTIVE_UNSELECTED
public static final int STATE_ACTIVE_SELECTED
public static final int STATE_INACTIVE_UNSELECTED
public static final int STATE_INACTIVE_SELECTED
Method Detail |
---|
public void setParent(CCFNode p)
public void copyColors(CCFButton src)
public void copyIcons(CCFButton src)
public java.lang.String toString()
toString
in class CCFNode
public int getTextAlignment()
public void setTextAlignment(int align)
public boolean getTextWrap()
public void setTextWrap(boolean w)
public void convertToColor()
public void convertToGray()
public CCFFont getFont()
public void setFont(CCFFont font)
font
- new button fontpublic CCFIconSet getIconSet()
public void setIconSet(CCFIconSet set)
set
- new set of state iconspublic java.awt.Dimension getSize()
public void setSize(java.awt.Dimension size)
public CCFChild getChildWrapper()
public java.awt.Point getLocation()
public void setLocation(java.awt.Point p)
public CCFAction[] getActions()
public CCFActionList getActionList()
public void appendAction(CCFAction a)
public void setActionList(CCFActionList actions)
public java.lang.String getName()
getName
in interface INamed
public void setName(java.lang.String name)
name
- button namepublic java.lang.String getIDTag()
public void setIDTag(java.lang.String idtag)
idtag
- ID Tagpublic CCFColor getBackground()
public CCFColor getForeground()
public boolean isActive()
public boolean isResizable()
public void delete()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |