|
||||||||||
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.Img
to.etc.domui.component.misc.DisplayCheckbox
public class DisplayCheckbox
Display-only checkbox which renders better than a disabled checkbox thingy.
Constructor Summary | |
---|---|
DisplayCheckbox()
|
Method Summary | |
---|---|
IBinder |
bind()
Return the binder for this control. |
java.lang.Boolean |
getValue()
Returns the current value of this input component. |
boolean |
isBound()
Returns T if this control is bound to some data value. |
boolean |
isChecked()
|
void |
setChecked(boolean on)
|
void |
setValue(java.lang.Boolean v)
Set a new value into this control. |
Methods inherited from class to.etc.domui.dom.html.Img |
---|
getAlign, getAlt, getImgBorder, getImgHeight, getImgWidth, getSrc, setAlign, setAlt, setImgBorder, setImgHeight, setImgWidth, setSrc, setSrc, visit |
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.IDisplayControl |
---|
setTestID |
Constructor Detail |
---|
public DisplayCheckbox()
Method Detail |
---|
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>
public void setChecked(boolean on)
public boolean isChecked()
@Nonnull 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 |