com.groiss.gui.component
Class Checkbox

java.lang.Object
  extended by com.groiss.gui.AbstractComponent
      extended by com.groiss.gui.component.Checkbox
All Implemented Interfaces:
Component, java.io.Serializable, java.lang.Cloneable

public class Checkbox
extends AbstractComponent

A HTML Checkbox, <input type=checkbox ...

See Also:
Serialized Form

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

Checkbox

public Checkbox()
Constructs a new Checkbox.


Checkbox

public Checkbox(java.lang.String name,
                java.lang.String value)
Constructs a new Checkbox with name and value.

Parameters:
name - the group where the checkbox belongs to
value - the value of the checkbox

Checkbox

public Checkbox(java.lang.String name,
                java.lang.String value,
                boolean checked)
Constructs a new Checkbox with name and value.

Parameters:
name - the group where the checkbox belongs to
value - the value of the checkbox
checked - whether the checkbos is initially checked

Checkbox

public Checkbox(java.lang.String name,
                java.lang.String value,
                boolean checked,
                java.lang.String styleClass)
Constructs a new Checkbox with name and value.

Parameters:
name - the group where the checkbox belongs to
value - the value of the checkbox
checked - whether the checkbos is initially checked
styleClass - the name of a CSS class
Method Detail

setChecked

public void setChecked(boolean checked)
sets wheter the checkbox is checked or not

Parameters:
checked - - the checked-mode of the radioButton

isChecked

public boolean isChecked()

setValue

public void setValue(java.lang.String value)
sets the value of the checkbox

Parameters:
value - - the value of the checkbox

getValue

public java.lang.String getValue()

setContent

public void setContent(java.lang.Object o)
Set the value of the checkbox

Specified by:
setContent in interface Component
Overrides:
setContent in class AbstractComponent
Parameters:
o - any object where the string representation is used for rendering

getContent

public java.lang.Object getContent()
Specified by:
getContent in interface Component
Overrides:
getContent in class AbstractComponent
Returns:
- the content object of the component


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.