de.lessvoid.nifty.controls.checkbox
Class CheckBoxImpl

java.lang.Object
  extended by de.lessvoid.nifty.controls.shared.EmptyNiftyControlImpl
      extended by de.lessvoid.nifty.controls.checkbox.CheckBoxImpl
All Implemented Interfaces:
CheckBox, NiftyControl

public class CheckBoxImpl
extends EmptyNiftyControlImpl
implements CheckBox


Constructor Summary
CheckBoxImpl(CheckBox checkbox)
           
 
Method Summary
 void bindToView(CheckBoxView checkBoxView)
           
 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 class de.lessvoid.nifty.controls.shared.EmptyNiftyControlImpl
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

CheckBoxImpl

public CheckBoxImpl(CheckBox checkbox)
Method Detail

bindToView

public void bindToView(CheckBoxView checkBoxView)

check

public void check()
Description copied from interface: CheckBox
Check this CheckBox.

Specified by:
check in interface CheckBox

uncheck

public void uncheck()
Description copied from interface: CheckBox
Uncheck this CheckBox.

Specified by:
uncheck in interface CheckBox

setChecked

public void setChecked(boolean state)
Description copied from interface: CheckBox
Set the state of this CheckBox to the given state.

Specified by:
setChecked in interface CheckBox
Parameters:
state - true = checked, false = unchecked

isChecked

public boolean isChecked()
Description copied from interface: CheckBox
Returns the current State of this CheckBox.

Specified by:
isChecked in interface CheckBox
Returns:

toggle

public void toggle()
Description copied from interface: CheckBox
Toggle this CheckBox state.

Specified by:
toggle in interface CheckBox


Copyright © 2011. All Rights Reserved.