public class nUICheckboxButton extends nUIButtonElement
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_DEFAULT
A default checkbox.
|
static int |
TYPE_NO_YES
For platforms that support it, this will be the yes/no checkbox type.
|
static int |
TYPE_OFF_ON
For platforms that support it, this will be the on/off checkbox type.
|
TYPE_LIST
Y_IDENTIFIER_PREV_BOTTOM
COLOR_BACKGROUND_NORMAL, COLOR_BLACK, COLOR_FOREGROUND_DARK, COLOR_FOREGROUND_LIGHT, COLOR_FOREGROUND_NORMAL, COLOR_TRANSPARENT, COLOR_WHITE, DIMENSIONS_IDENTIFIER_PARENT_DIMENSIONS
event_listener, event_listener_exclusive, first_child, last_child, next_sibling, nuiid, parent, prev_sibling, unlink_children_on_removal_from_parent
Constructor and Description |
---|
nUICheckboxButton(int nuiid,
java.lang.String text)
Default checkbox constructor
|
Modifier and Type | Method and Description |
---|---|
void |
setTextColor(int text_color)
Sets the text color.
|
void |
setType(int type)
Sets the type of this checkbox button.
|
getFocusable, getFontSize, getFontStyle, getGroupID, getNumstates, getState, getText, getTextalign, getTextColor, getType, setFontSize, setFontSizeAbsolute, setFontSizeRelative, setFontStyle, setGroupID, setNumstates, setState, setText, setTextalign
getY, insertAt
getBackgroundDrawable, getBgcolor, getBottom, getFocus, getGesturable, getHeight, getInnerHeight, getInnerWidth, getInnerX, getInnerY, getLeft, getMaxChildX, getMaxChildY, getRight, getScreenInnerX, getScreenInnerY, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getWidth, getX, insertAtInternal, isEnabled, onRemoved, remove, setBackgroundDrawable, setBgcolor, setBottom, setChildFocus, setEnabled, setFocus, setFocusable, setGesturable, setHeight, setInnerHeight, setInnerWidth, setInnerX, setInnerY, setLeft, setRight, setTop, setTriggerable, setWidth, setX, setY
add, addEventListener, childElementAt, childIndexOf, getTag, insertAfter, insertBefore, outputChildHierarchy, remove, removeEventListener, replace, replace, setTag
public static final int TYPE_DEFAULT
public static final int TYPE_OFF_ON
public static final int TYPE_NO_YES
public nUICheckboxButton(int nuiid, java.lang.String text)
nuiid
- Unique Native UI ID (or -1 if unidentified)text
- The text displayed by this checkboxpublic void setType(int type)
setType
in class nUIButtonElement
type
- the type of checkbox to use.java.lang.IllegalArgumentException
- if type
is not a legal button type.public void setTextColor(int text_color)
nUIButtonElement
setTextColor
in class nUIButtonElement
text_color
- This is an AARRGGBB value - normally you will want to set the alpha portion fully opaque