|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.gui.AbstractComponent com.groiss.gui.component.Checkbox
public class Checkbox
A HTML Checkbox, <input type=checkbox ...
Field Summary |
---|
Fields inherited from class com.groiss.gui.AbstractComponent |
---|
actions, 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, outputter, parent, parentElem, READONLY, root, viewMode |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 |
Methods inherited from class com.groiss.gui.AbstractComponent |
---|
clone, create, getActionListener, 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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 classMethod Detail |
---|
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |