de.lessvoid.nifty.controls
Interface CheckBox

Type Parameters:
T -
All Superinterfaces:
NiftyControl
All Known Implementing Classes:
CheckboxControl, CheckBoxImpl, CheckBoxNull

public interface CheckBox
extends NiftyControl

The CheckBox interface is the Nifty control API view of a Nifty CheckBox control.

Author:
void

Method Summary
 void check()
          Check this CheckBox.
 boolean isChecked()
          Returns the current State of this CheckBox.
 void setChecked(boolean state)
          Set the state of this CheckBox to the given state.
 void toggle()
          Toggle this CheckBox state.
 void uncheck()
          Uncheck this CheckBox.
 
Methods inherited from interface de.lessvoid.nifty.controls.NiftyControl
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
 

Method Detail

check

void check()
Check this CheckBox.


uncheck

void uncheck()
Uncheck this CheckBox.


setChecked

void setChecked(boolean state)
Set the state of this CheckBox to the given state.

Parameters:
state - true = checked, false = unchecked

isChecked

boolean isChecked()
Returns the current State of this CheckBox.

Returns:

toggle

void toggle()
Toggle this CheckBox state.



Copyright © 2011. All Rights Reserved.