|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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(String name,
String value)
Constructs a new Checkbox with name and value. |
|
Checkbox(String name,
String value,
boolean checked)
Constructs a new Checkbox with name and value. |
|
Checkbox(String name,
String value,
boolean checked,
String styleClass)
Constructs a new Checkbox with name and value. |
|
| Method Summary | |
|---|---|
Object |
getContent()
|
String |
getValue()
|
boolean |
isChecked()
|
void |
setChecked(boolean checked)
sets wheter the checkbox is checked or not |
void |
setContent(Object o)
Set the value of the checkbox |
void |
setValue(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(String name,
String value)
name - the group where the checkbox belongs tovalue - the value of the checkbox
public Checkbox(String name,
String value,
boolean checked)
name - the group where the checkbox belongs tovalue - the value of the checkboxchecked - whether the checkbos is initially checked
public Checkbox(String name,
String value,
boolean checked,
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 class| Method Detail |
|---|
public void setChecked(boolean checked)
checked - - the checked-mode of the radioButtonpublic boolean isChecked()
public void setValue(String value)
value - - the value of the checkboxpublic String getValue()
public void setContent(Object o)
setContent in interface ComponentsetContent in class AbstractComponento - any object where the string representation is used for renderingpublic Object getContent()
getContent in interface ComponentgetContent in class AbstractComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||