CheckBox, CheckBoxView, Controller, NiftyControl, EventTopicSubscriber<ElementShowEvent>CheckBox when accessing NiftyControls.@Deprecated public class CheckboxControl extends AbstractController implements CheckBox, CheckBoxView, EventTopicSubscriber<ElementShowEvent>
| Constructor | Description |
|---|---|
CheckboxControl() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
bind(Nifty niftyParam,
Screen screenParam,
Element elementParam,
Parameters propertiesParam) |
Deprecated.
|
void |
check() |
Deprecated.
Check this CheckBox.
|
void |
init(Parameters parameter) |
Deprecated.
|
boolean |
inputEvent(NiftyInputEvent inputEvent) |
Deprecated.
|
boolean |
isChecked() |
Deprecated.
Returns the current State of this CheckBox.
|
boolean |
onClick() |
Deprecated.
|
void |
onEvent(java.lang.String topic,
ElementShowEvent data) |
Deprecated.
|
void |
onStartScreen() |
Deprecated.
|
void |
publish(CheckBoxStateChangedEvent event) |
Deprecated.
Publish this event.
|
void |
setChecked(boolean state) |
Deprecated.
Set the state of this CheckBox to the given state.
|
void |
toggle() |
Deprecated.
Toggle this CheckBox state.
|
void |
uncheck() |
Deprecated.
Uncheck this CheckBox.
|
void |
update(boolean checked) |
Deprecated.
Update the View with the new state.
|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, onEndScreen, onFocus, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthdisable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthpublic void bind(@Nonnull
Nifty niftyParam,
@Nonnull
Screen screenParam,
@Nonnull
Element elementParam,
@Nonnull
Parameters propertiesParam)
bind in interface Controllerpublic void init(@Nonnull
Parameters parameter)
init in interface Controllerinit in class AbstractControllerpublic void onStartScreen()
onStartScreen in interface Controllerpublic boolean inputEvent(@Nonnull
NiftyInputEvent inputEvent)
inputEvent in interface Controllerpublic boolean onClick()
public void update(boolean checked)
CheckBoxViewupdate in interface CheckBoxViewchecked - new state of the checkboxpublic void publish(@Nonnull
CheckBoxStateChangedEvent event)
CheckBoxViewpublish in interface CheckBoxViewevent - the event to publishpublic void onEvent(java.lang.String topic,
ElementShowEvent data)
onEvent in interface EventTopicSubscriber<ElementShowEvent>public void check()
CheckBoxpublic void uncheck()
CheckBoxpublic void setChecked(boolean state)
CheckBoxsetChecked in interface CheckBoxstate - true = checked, false = uncheckedpublic boolean isChecked()
CheckBoxCopyright © 2018. All rights reserved.