org.olat.core.gui.formelements
Class CheckBoxElement

java.lang.Object
  extended by org.olat.core.gui.formelements.AbstractFormElement
      extended by org.olat.core.gui.formelements.CheckBoxElement
All Implemented Interfaces:
FormElement

public class CheckBoxElement
extends AbstractFormElement

Description:

Author:
Felix Jost

Constructor Summary
CheckBoxElement(java.lang.String labelKey)
           
CheckBoxElement(java.lang.String labelKey, boolean checked)
           
 
Method Summary
 boolean isChecked()
           
 boolean isDirty()
           
 void setChecked(boolean checked)
          Sets the checked.
 void setValues(java.lang.String[] values)
          // if the parameter is missing (values == null), ignore (this may be if a formelement is readonly e.g.) H: formelement not readonly
 
Methods inherited from class org.olat.core.gui.formelements.AbstractFormElement
clearError, getError, getExample, getLabelKey, getName, getVisualMarked, isError, isMandatory, isReadOnly, setError, setErrorKey, setErrorKeyWithParams, setExample, setLabelKey, setMandatory, setName, setReadOnly, setVisualMarked
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckBoxElement

public CheckBoxElement(java.lang.String labelKey)
Parameters:
labelKey -

CheckBoxElement

public CheckBoxElement(java.lang.String labelKey,
                       boolean checked)
Parameters:
labelKey -
checked -
Method Detail

setValues

public void setValues(java.lang.String[] values)
Description copied from interface: FormElement
// if the parameter is missing (values == null), ignore (this may be if a formelement is readonly e.g.) H: formelement not readonly

See Also:
FormElement.setValues(java.lang.String[])

setChecked

public void setChecked(boolean checked)
Sets the checked.

Parameters:
checked - The checked to set

isChecked

public boolean isChecked()
Returns:
boolean

isDirty

public boolean isDirty()
Returns:
See Also:
FormElement.isDirty()