|
||||||||||
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.NodeContainer
to.etc.domui.dom.html.Span
to.etc.domui.component.input.SpanBasedControl<T>
@Deprecated public abstract class SpanBasedControl<T>
DEPRECATED - one big bag full of problems. Base class to implement an input control using a span as the baae. This implements all basic code for an input control like the IInputNode interface.
Constructor Summary | |
---|---|
SpanBasedControl()
Deprecated. |
Method Summary | |
---|---|
IBinder |
bind()
Deprecated. Return the binder for this control. |
IValueChanged<?> |
getOnValueChanged()
Deprecated. |
protected T |
getRawValue()
Deprecated. |
T |
getValue()
Deprecated. Returns the current value of this input component. |
T |
getValueSafe()
Deprecated. Like IDisplayControl.getValue() this returns the value of the component, but this returns null
if the value was invalid. |
boolean |
hasError()
Deprecated. Return T if this node currently has an error associated with it. |
boolean |
isBound()
Deprecated. Returns T if this control is bound to some data value. |
boolean |
isDisabled()
Deprecated. Returns T if the control is currently in disabled. |
boolean |
isMandatory()
Deprecated. Returns T if this control is a mandatory input. |
boolean |
isReadOnly()
Deprecated. Returns T if the control is currently in readonly mode. |
void |
setDisabled(boolean disabled)
Deprecated. Set the input to disabled mode. |
void |
setMandatory(boolean mandatory)
Deprecated. Make the control mandatory. |
void |
setOnValueChanged(IValueChanged<?> onValueChanged)
Deprecated. |
protected void |
setRawValue(T v)
Deprecated. |
void |
setReadOnly(boolean readOnly)
Deprecated. Sets the input to readonly-mode. |
void |
setValue(T v)
Deprecated. Sets a new value. |
Methods inherited from class to.etc.domui.dom.html.Span |
---|
visit |
Methods inherited from class to.etc.domui.dom.html.NodeContainer |
---|
add, add, add, addTable, canContain, delegateTo, findChildIndex, forceRebuild, getChild, getChildCount, getChildren, getDeepChild, getDeepChildren, getErrorFence, internalCheckNotDirty, internalClearDelta, internalClearDeltaFully, internalGetOldChildren, internalShelve, internalUnshelve, iterator, moveControlToModel, moveModelToControl, onRefresh, removeAllChildren, removeChild, removeChild, replaceChild, setControlsEnabled, setErrorFence, setErrorFence, setText, setValue |
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 SpanBasedControl()
Method Detail |
---|
public boolean isMandatory()
IControl
isMandatory
in interface IControl<T>
public void setMandatory(boolean mandatory)
IControl
setMandatory
in interface IControl<T>
public boolean isReadOnly()
IControl
isReadOnly
in interface IControl<T>
public void setReadOnly(boolean readOnly)
IControl
setReadOnly
in interface IControl<T>
public final boolean isDisabled()
IControl
isDisabled
in interface IControl<T>
public final void setDisabled(boolean disabled)
IActionControl
setDisabled
in interface IActionControl
protected T getRawValue()
protected void setRawValue(T v)
public T 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<T>
IDisplayControl.getValue()
public void setValue(T v)
setValue
in interface IDisplayControl<T>
IDisplayControl.setValue(java.lang.Object)
public T 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<T>
IControl.getValueSafe()
public boolean hasError()
NodeBase
hasError
in interface IControl<T>
hasError
in class NodeBase
IControl.hasError()
public IValueChanged<?> getOnValueChanged()
getOnValueChanged
in interface IHasChangeListener
IHasChangeListener.getOnValueChanged()
public void setOnValueChanged(IValueChanged<?> onValueChanged)
setOnValueChanged
in interface IHasChangeListener
IHasChangeListener.setOnValueChanged(to.etc.domui.dom.html.IValueChanged)
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 |