|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.dom.css.CssBase
to.etc.domui.dom.html.NodeBase
to.etc.domui.dom.html.Checkbox
public class Checkbox
Constructor Summary | |
---|---|
Checkbox()
|
Method Summary | |
---|---|
boolean |
acceptRequestParameter(java.lang.String[] values)
|
IBinder |
bind()
Return the binder for this control. |
IValueChanged<?> |
getOnValueChanged()
Deprecated. |
java.lang.Boolean |
getValue()
Returns the current value of this input component. |
java.lang.Boolean |
getValueSafe()
Like IDisplayControl.getValue() this returns the value of the component, but this returns null
if the value was invalid. |
boolean |
hasError()
Return T if this node currently has an error associated with it. |
boolean |
isBound()
Returns T if this control is bound to some data value. |
boolean |
isChecked()
|
boolean |
isDisabled()
Returns T if the control is currently in disabled. |
boolean |
isMandatory()
Returns T if this control is a mandatory input. |
boolean |
isModified()
Returns the modified-by-user flag. |
boolean |
isReadOnly()
Checkboxes cannot be readonly; we make them disabled instead. |
void |
setChecked(boolean checked)
|
void |
setDisabled(boolean disabled)
Set the input to disabled mode. |
void |
setMandatory(boolean mandatory)
Make the control mandatory. |
void |
setModified(boolean as)
Set or clear the modified by user flag. |
void |
setOnValueChanged(IValueChanged<?> onValueChanged)
Deprecated. |
void |
setReadOnly(boolean readOnly)
Sets the input to readonly-mode. |
void |
setValue(java.lang.Boolean v)
Set a new value into this control. |
void |
visit(INodeVisitor v)
This must visit the appropriate method in the node visitor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface to.etc.domui.dom.html.IControl |
---|
getErrorLocation, setErrorLocation |
Methods inherited from interface to.etc.domui.dom.html.IDisplayControl |
---|
setTestID |
Methods inherited from interface to.etc.domui.dom.html.IActionControl |
---|
setTestID |
Methods inherited from interface to.etc.domui.dom.errors.INodeErrorDelegate |
---|
clearMessage, getMessage, setMessage |
Constructor Detail |
---|
public Checkbox()
Method Detail |
---|
public void visit(INodeVisitor v) throws java.lang.Exception
NodeBase
visit
in class NodeBase
java.lang.Exception
public boolean isChecked()
public void setChecked(boolean checked)
public boolean isDisabled()
IControl
isDisabled
in interface IControl<java.lang.Boolean>
public void setDisabled(boolean disabled)
IActionControl
setDisabled
in interface IActionControl
public boolean isReadOnly()
isReadOnly
in interface IControl<java.lang.Boolean>
IControl.isReadOnly()
public void setReadOnly(boolean readOnly)
IControl
setReadOnly
in interface IControl<java.lang.Boolean>
public boolean acceptRequestParameter(java.lang.String[] values)
acceptRequestParameter
in class NodeBase
public java.lang.Boolean getValue()
IDisplayControl
ValidationException
. This means that this
call either delivers correct input (as defined by it's converter and validators), null
(when empty) or throws an exception. When a ValidationException occurs the framework
mostly ignores it - it does not produce a stacktrace or error in the client. Instead
the resulting error as posted by the error handling framework gets displayed on the
form when the request completes.
To get the value of a component while ignoring exceptions call #getValueSafe()
.
getValue
in interface IDisplayControl<java.lang.Boolean>
IDisplayControl.getValue()
public void setValue(java.lang.Boolean v)
IDisplayControl
setValue
in interface IDisplayControl<java.lang.Boolean>
IDisplayControl.setValue(java.lang.Object)
public java.lang.Boolean getValueSafe()
IControl
IDisplayControl.getValue()
this returns the value of the component, but this returns null
if the value was invalid. For this method NULL either means the value was invalid OR
it's content was empty. To distinguish between the two call IControl.hasError()
or use
IDisplayControl.getValue()
instead of this call.
getValueSafe
in interface IControl<java.lang.Boolean>
IControl.getValueSafe()
public boolean hasError()
NodeBase
hasError
in interface IControl<java.lang.Boolean>
hasError
in class NodeBase
IControl.hasError()
public boolean isMandatory()
IControl
isMandatory
in interface IControl<java.lang.Boolean>
public void setMandatory(boolean mandatory)
IControl
setMandatory
in interface IControl<java.lang.Boolean>
@Deprecated public IValueChanged<?> getOnValueChanged()
#setClicked(IClicked)
to handle checkbox
change events!
getOnValueChanged
in interface IHasChangeListener
IHasChangeListener.getOnValueChanged()
@Deprecated public void setOnValueChanged(IValueChanged<?> onValueChanged)
#setClicked(IClicked)
to handle checkbox
change events!
setOnValueChanged
in interface IHasChangeListener
IHasChangeListener.setOnValueChanged(to.etc.domui.dom.html.IValueChanged)
public boolean isModified()
isModified
in interface IHasModifiedIndication
IHasModifiedIndication.isModified()
public void setModified(boolean as)
setModified
in interface IHasModifiedIndication
IHasModifiedIndication.setModified(boolean)
public IBinder bind()
bind
in interface IBindable
IBindable.bind()
public boolean isBound()
isBound
in interface IBindable
IBindable.isBound()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |