water.api
Class RequestArguments.InputText<T>

java.lang.Object
  extended by water.Iced
      extended by water.api.RequestArguments.Argument<T>
          extended by water.api.RequestArguments.InputText<T>
Type Parameters:
T -
All Implemented Interfaces:
java.lang.Cloneable, Request.Filter, Freezable
Direct Known Subclasses:
RequestArguments.H2OKey, RequestArguments.Int, RequestArguments.LongInt, RequestArguments.Real, RequestArguments.RSeq, RequestArguments.Str, RequestArguments.TypeaheadInputText
Enclosing class:
RequestArguments

public abstract class RequestArguments.InputText<T>
extends RequestArguments.Argument<T>

Argument that uses simple text input to define its value. This is the simplest argument. Uses the classic input element. All functionality is supported.


Field Summary
 
Fields inherited from class water.api.RequestArguments.Argument
_displayName, _field, _hideInQuery, _name, _prerequisites, _readOnly, _requestHelp, _required
 
Constructor Summary
RequestArguments.InputText(java.lang.String name, boolean required)
           
 
Method Summary
protected  java.lang.String jsRefresh(java.lang.String callbackName)
          JS refresh is a default jQuery hook to the change() method.
protected  java.lang.String jsValue()
          JS value is the simple jQuery val() method.
protected  java.lang.String queryElement()
          A query element is the default HTML form input.
 
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

RequestArguments.InputText

public RequestArguments.InputText(java.lang.String name,
                                  boolean required)
Method Detail

queryElement

protected java.lang.String queryElement()
A query element is the default HTML form input. The id of the element is the name of the argument. Placeholder is the query description and the value is filled in either as the value submitted, or as the toString() method on defaultValue.

Specified by:
queryElement in class RequestArguments.Argument<T>

jsRefresh

protected java.lang.String jsRefresh(java.lang.String callbackName)
JS refresh is a default jQuery hook to the change() method.

Specified by:
jsRefresh in class RequestArguments.Argument<T>

jsValue

protected java.lang.String jsValue()
JS value is the simple jQuery val() method.

Specified by:
jsValue in class RequestArguments.Argument<T>