|
|||||||||
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.MultipleSelect<T>
public abstract class RequestArguments.MultipleSelect<T>
Displays multiple checkboxes for different values. Returns a list of the checked values separated by commas.
Field Summary |
---|
Fields inherited from class water.api.RequestArguments.Argument |
---|
_displayName, _field, _hideInQuery, _name, _prerequisites, _readOnly, _requestHelp, _required |
Constructor Summary | |
---|---|
RequestArguments.MultipleSelect(java.lang.String name)
Constructor just calls super. |
Method Summary | |
---|---|
protected abstract boolean |
isSelected(java.lang.String value)
Returns true if the given option (by its value) is selected. |
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 a JS function that enumerates over the possibilities. |
protected java.lang.String |
queryElement()
Displays the query element. |
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.MultipleSelect(java.lang.String name)
Method Detail |
---|
protected abstract java.lang.String[] selectValues()
protected abstract boolean isSelected(java.lang.String value)
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 |