Modifier and Type | Field and Description |
---|---|
static int |
STATE_ACTIVE_SELECTED |
static int |
STATE_ACTIVE_UNSELECTED |
static int |
STATE_INACTIVE_SELECTED |
static int |
STATE_INACTIVE_UNSELECTED |
TEXT_CENTER, TEXT_LEFT, TEXT_RIGHT
Modifier and Type | Method and Description |
---|---|
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() |
getHeader, getParent, getParentDevice, getParentPanel
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
public void setParent(CCFNode p)
public void copyColors(CCFButton src)
public void copyIcons(CCFButton src)
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()
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()