|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwater.Iced
water.api.RequestArguments.Argument<T>
water.api.RequestArguments.InputSelect<T>
public abstract class RequestArguments.InputSelect<T>
Select element from the list of options. Array of values and arrays of names can be specified together with the selected element's value.
Field Summary |
---|
Fields inherited from class water.api.RequestArguments.Argument |
---|
_displayName, _field, _hideInQuery, _name, _prerequisites, _readOnly, _requestHelp, _required |
Constructor Summary | |
---|---|
RequestArguments.InputSelect(java.lang.String name,
boolean required)
Constructor just calls super. |
Method Summary | |
---|---|
protected java.lang.String |
jsRefresh(java.lang.String callbackName)
Refresh is supported using standard jQuery change event. |
protected java.lang.String |
jsValue()
Get value is supported by the standard val() jQuery function. |
protected java.lang.String |
queryElement()
Displays the query element. |
protected abstract java.lang.String |
selectedItemValue()
Returns which value should be selected. |
protected java.lang.String[] |
selectNames()
Override this method to determine the value names, that is the names displayed in the browser. |
protected abstract java.lang.String[] |
selectValues()
Override this method to provide the values for the options. |
Methods inherited from class water.api.RequestArguments.Argument |
---|
addPrerequisite, check, defaultValue, disable, disable, disabled, errors, jsAddons, originalValue, parse, query, queryAddons, queryComment, queryDescription, record, refreshOnChange, requestHelp, reset, run, setRefreshOnChange, specified, valid, value |
Methods inherited from class water.Iced |
---|
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestArguments.InputSelect(java.lang.String name, boolean required)
Method Detail |
---|
protected abstract java.lang.String[] selectValues()
protected abstract java.lang.String selectedItemValue()
protected java.lang.String[] selectNames()
protected java.lang.String queryElement()
queryElement
in class RequestArguments.Argument<T>
protected java.lang.String jsRefresh(java.lang.String callbackName)
jsRefresh
in class RequestArguments.Argument<T>
protected java.lang.String jsValue()
jsValue
in class RequestArguments.Argument<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |