org.olat.core.gui.formelements
Class CheckBoxElement
java.lang.Object
org.olat.core.gui.formelements.AbstractFormElement
org.olat.core.gui.formelements.CheckBoxElement
- All Implemented Interfaces:
- FormElement
public class CheckBoxElement
- extends AbstractFormElement
Description:
- Author:
- Felix Jost
|
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 |
CheckBoxElement
public CheckBoxElement(java.lang.String labelKey)
- Parameters:
labelKey -
CheckBoxElement
public CheckBoxElement(java.lang.String labelKey,
boolean checked)
- Parameters:
labelKey - checked -
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()