public class nUIRadioCheckbox extends nUIButtonElement implements ICheckboxButton
TYPE_DEFAULT, 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
Constructor and Description |
---|
nUIRadioCheckbox() |
nUIRadioCheckbox(java.util.Hashtable properties) |
nUIRadioCheckbox(java.lang.String text)
Default radio-button constructor
|
nUIRadioCheckbox(java.lang.String text,
java.util.Hashtable properties) |
Modifier and Type | Method and Description |
---|---|
int |
getAccentColor() |
int |
getOutlineColor() |
int |
getTickColor() |
boolean |
isOn()
Is the checkbox currently enabled?
|
void |
setAccentColor(int accent_color) |
void |
setOn(boolean on)
Set the position of the checkbox.
|
void |
setOutlineColor(int outline_color) |
void |
setTextColor(int text_color)
Sets the text color.
|
void |
setTickColor(int tick_color) |
void |
setType(int type)
Sets the type of this checkbox button.
|
boolean |
toggle()
Toggles the checkbox.
|
getFocusable, getFontStyle, getGroupID, getNumstates, getState, getText, getTextalign, getTextColor, getType, setFontSize, setFontStyle, setGroupID, setNumstates, setState, setText, setTextalign
applyBackground, applyBackground, applyBackground
getBackgroundDrawable, getBottom, getElementIdentifier, getGesturable, getHeight, getInnerHeight, getInnerWidth, getInnerX, getInnerY, getLeft, getMaxChildX, getMaxChildY, getProperties, getProperty, getRight, getScreenInnerX, getScreenInnerY, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getWidth, getX, getY, insertAtInternal, isEnabled, isVisible, onRemoved, remove, setBackgroundDrawable, setBottom, setElementIdentifier, setEnabled, setFocusable, setGesturable, setHeight, setInnerHeight, setInnerWidth, setInnerX, setInnerY, setLeft, setProperties, setProperty, setRight, setTop, setTriggerable, setVisible, setWidth, setX, setY
add, addEventListener, childElementAt, childIndexOf, getFirstChild, getId, getLastChild, getNextSibling, getParent, getPrevSibling, getTag, insertAfter, insertAt, insertBefore, outputChildHierarchy, remove, removeEventListener, replace, replace, setId, setTag, setUnlinkChildrenOnRemoval
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEnabled, setEnabled
getText, setText
setBackgroundDrawable
public nUIRadioCheckbox()
public nUIRadioCheckbox(java.util.Hashtable properties)
public nUIRadioCheckbox(java.lang.String text)
text
- The text displayed by this radio-buttonpublic nUIRadioCheckbox(java.lang.String text, java.util.Hashtable properties)
public 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 boolean toggle()
ICheckboxButton
toggle
in interface ICheckboxButton
ICheckboxButton
.public void setOn(boolean on)
ICheckboxButton
setOn
in interface ICheckboxButton
on
- Will be set to the "on" position, if true.public boolean isOn()
ICheckboxButton
isOn
in interface ICheckboxButton
true
if it is.public void setTextColor(int text_color)
nUIButtonElement
setTextColor
in interface ITextfieldElement
setTextColor
in class nUIButtonElement
text_color
- This is an AARRGGBB value - normally you will want to set the alpha portion fully opaquepublic void setTickColor(int tick_color)
public int getTickColor()
public void setAccentColor(int accent_color)
public int getAccentColor()
public void setOutlineColor(int outline_color)
public int getOutlineColor()