UICheckBox
Complete API reference for UICheckBox, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: UI
Component: yes
public class UICheckBox extends Component
Constructors
| Signature | Description |
|---|---|
UICheckBox() | Creates a new instance of UICheckBox. |
Virtual Attributes
| Name | Type | Access | Description |
|---|---|---|---|
checked | boolean | get/set | Virtual attribute exposed by isChecked. Access it like a field to read or write the underlying value. |
pressed | boolean | get | Virtual attribute exposed by isPressed. Access it like a field to read or write the underlying value. |
down | boolean | get | Virtual attribute exposed by isDown. Access it like a field to read or write the underlying value. |
up | boolean | get | Virtual attribute exposed by isUp. Access it like a field to read or write the underlying value. |
color | Color | get/set | Virtual attribute exposed by getColor. Access it like a field to read or write the underlying value. |
checkedTexture | Texture | get/set | Virtual attribute exposed by getCheckedTexture. Access it like a field to read or write the underlying value. |
uncheckedTexture | Texture | get/set | Virtual attribute exposed by getUncheckedTexture. Access it like a field to read or write the underlying value. |
Methods
| Signature | Returns | Description |
|---|---|---|
isChecked() | boolean | Returns whether checked is true. |
setChecked(boolean) | void | Sets checked. |
isPressed() | boolean | Returns whether pressed is true. |
isDown() | boolean | Returns whether down is true. |
isUp() | boolean | Returns whether up is true. |
getColor() | Color | Returns the current color value. |
getCheckedTexture() | Texture | Returns the current checkedTexture value. |
getUncheckedTexture() | Texture | Returns the current uncheckedTexture value. |
setColor(Color) | void | Sets color. |
setCheckedTexture(Texture) | void | Sets checkedTexture. |
setUncheckedTexture(Texture) | void | Sets uncheckedTexture. |