public class Checkbox extends AbstractComponent
ACTIVE, browserMode, DEFAULT, ID, IE, INVISIBLE, isSensitive, label, NS, ON_BLUR, ON_CHANGE, ON_CLICK, ON_DBLCLICK, ON_FOCUS, ON_KEY_DOWN, ON_KEY_PRESS, ON_KEY_UP, ON_LOAD, ON_MOUSE_DOWN, ON_MOUSE_MOVE, ON_MOUSE_OUT, ON_MOUSE_UP, ON_RESET, ON_SELECT, ON_SUBMIT, ON_UNLOAD, parent, parentElem, READONLY, root, viewMode
Constructor and Description |
---|
Checkbox()
Constructs a new Checkbox.
|
Checkbox(java.lang.String name,
java.lang.String value)
Constructs a new Checkbox with name and value.
|
Checkbox(java.lang.String name,
java.lang.String value,
boolean checked)
Constructs a new Checkbox with name and value.
|
Checkbox(java.lang.String name,
java.lang.String value,
boolean checked,
java.lang.String styleClass)
Constructs a new Checkbox with name and value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getContent() |
java.lang.String |
getValue() |
boolean |
isChecked() |
void |
setChecked(boolean checked)
sets wheter the checkbox is checked or not
|
void |
setContent(java.lang.Object o)
Set the value of the checkbox
|
void |
setValue(java.lang.String value)
sets the value of the checkbox
|
clone, create, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, setActionListener, setAttribute, setBrowserMode, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toString
public Checkbox()
public Checkbox(java.lang.String name, java.lang.String value)
name
- the group where the checkbox belongs tovalue
- the value of the checkboxpublic Checkbox(java.lang.String name, java.lang.String value, boolean checked)
name
- the group where the checkbox belongs tovalue
- the value of the checkboxchecked
- whether the checkbos is initially checkedpublic Checkbox(java.lang.String name, java.lang.String value, boolean checked, java.lang.String styleClass)
name
- the group where the checkbox belongs tovalue
- the value of the checkboxchecked
- whether the checkbos is initially checkedstyleClass
- the name of a CSS classpublic void setChecked(boolean checked)
checked
- - the checked-mode of the radioButtonpublic boolean isChecked()
public void setValue(java.lang.String value)
value
- - the value of the checkboxpublic java.lang.String getValue()
public void setContent(java.lang.Object o)
setContent
in interface Component
setContent
in class AbstractComponent
o
- any object where the string representation is used for renderingpublic java.lang.Object getContent()
getContent
in interface Component
getContent
in class AbstractComponent
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.