|
||||||||||
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.InputNodeContainer
to.etc.domui.dom.html.Select
to.etc.domui.component.input.SelectBasedControl<T>
@Deprecated public abstract class SelectBasedControl<T>
Constructor Summary | |
---|---|
SelectBasedControl()
Deprecated. |
Method Summary | |
---|---|
IBinder |
bind()
Deprecated. Return the binder for this control. |
protected abstract T |
findListValueByIndex(int nindex)
Deprecated. Locate the "T" value for the nth selected option. |
protected abstract int |
findOptionIndexForValue(T newvalue)
Deprecated. |
protected SelectOption |
getEmptyOption()
Deprecated. If this combobox has a "unselected" option currently this contains that option. |
java.lang.String |
getEmptyText()
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. |
protected T |
internalGetCurrentValue()
Deprecated. |
protected boolean |
internalOnUserInput(int oldindex,
int nindex)
Deprecated. The user selected a different option. |
protected void |
internalOnValueSet(T previousvalue,
T newvalue)
Deprecated. A value was set through setValue(); we need to find the proper thingy to select. |
protected void |
internalSetCurrentValue(T val)
Deprecated. |
boolean |
isBound()
Deprecated. Returns T if this control is bound to some data value. |
protected void |
setEmptyOption(SelectOption emptyOption)
Deprecated. See getter. |
void |
setEmptyText(java.lang.String emptyText)
Deprecated. |
void |
setValue(T v)
Deprecated. Set a new value into this control. |
Methods inherited from class to.etc.domui.dom.html.Select |
---|
acceptRequestParameter, addExtraButton, canContain, clearSelected, getOption, getSelectedIndex, getSize, internalSetSelectedIndex, isDisabled, isModified, isMultiple, onAddedToPage, onRemoveFromPage, setDisabled, setModified, setMultiple, setReadOnly, setSelectedIndex, setSize, visit |
Methods inherited from class to.etc.domui.dom.html.InputNodeContainer |
---|
callOnValueChanged, getOnValueChanged, isMandatory, isReadOnly, setMandatory, setOnValueChanged |
Methods inherited from class to.etc.domui.dom.html.NodeContainer |
---|
add, add, add, addTable, 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, isDisabled, isMandatory, isReadOnly, setErrorLocation, setMandatory, setReadOnly |
Methods inherited from interface to.etc.domui.dom.html.IDisplayControl |
---|
setTestID |
Methods inherited from interface to.etc.domui.dom.html.IActionControl |
---|
setDisabled, setTestID |
Methods inherited from interface to.etc.domui.dom.html.IHasChangeListener |
---|
getOnValueChanged, setOnValueChanged |
Methods inherited from interface to.etc.domui.dom.errors.INodeErrorDelegate |
---|
clearMessage, getMessage, setMessage |
Methods inherited from interface to.etc.domui.dom.html.IHasModifiedIndication |
---|
isModified, setModified |
Constructor Detail |
---|
public SelectBasedControl()
Method Detail |
---|
protected abstract T findListValueByIndex(int nindex)
nindex
-
protected abstract int findOptionIndexForValue(T newvalue)
public java.lang.String getEmptyText()
public void setEmptyText(java.lang.String emptyText)
protected SelectOption getEmptyOption()
protected void setEmptyOption(SelectOption emptyOption)
emptyOption
- protected boolean internalOnUserInput(int oldindex, int nindex)
internalOnUserInput
in class Select
Select.internalOnUserInput(int, int)
public final 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 final void setValue(T v)
IDisplayControl
setValue
in interface IDisplayControl<T>
IDisplayControl.setValue(java.lang.Object)
protected final void internalOnValueSet(T previousvalue, T newvalue)
protected T internalGetCurrentValue()
protected void internalSetCurrentValue(T val)
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 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 |