water.api
Class RequestArguments.LongInt
java.lang.Object
water.Iced
water.api.RequestArguments.Argument<T>
water.api.RequestArguments.InputText<java.lang.Long>
water.api.RequestArguments.LongInt
- All Implemented Interfaces:
- java.lang.Cloneable, Request.Filter, Freezable
- Enclosing class:
- RequestArguments
public class RequestArguments.LongInt
- extends RequestArguments.InputText<java.lang.Long>
Method Summary |
protected java.lang.Long |
defaultValue()
Returns the default value of the argument. |
protected java.lang.Long |
parse(java.lang.String input)
Override this method to provide parsing of the input string to the Java
expected value. |
protected java.lang.String |
queryComment()
|
protected java.lang.String |
queryDescription()
Returns the query description. |
Methods inherited from class water.api.RequestArguments.Argument |
addPrerequisite, check, disable, disable, disabled, errors, jsAddons, originalValue, query, queryAddons, record, refreshOnChange, requestHelp, reset, run, setRefreshOnChange, specified, valid, value |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_defaultValue
public final transient long _defaultValue
_min
public final long _min
_max
public final long _max
_comment
public final java.lang.String _comment
RequestArguments.LongInt
public RequestArguments.LongInt(java.lang.String name,
long min,
long max)
RequestArguments.LongInt
public RequestArguments.LongInt(java.lang.String name,
long defaultValue,
java.lang.String comment)
RequestArguments.LongInt
public RequestArguments.LongInt(java.lang.String name,
boolean req,
long defaultValue,
long min,
long max,
java.lang.String comment)
parse
protected java.lang.Long parse(java.lang.String input)
throws java.lang.IllegalArgumentException
- Description copied from class:
RequestArguments.Argument
- Override this method to provide parsing of the input string to the Java
expected value. The input is guaranteed to be non-empty when this method
is called and all prerequisities are guaranteed to be valid before this
method is called.
- Specified by:
parse
in class RequestArguments.Argument<java.lang.Long>
- Throws:
java.lang.IllegalArgumentException
defaultValue
protected java.lang.Long defaultValue()
- Description copied from class:
RequestArguments.Argument
- Returns the default value of the argument. Note that the method will be
called also on required arguments, in which case it is ok return null.
It is kept abstract because defining a proper default value might be
tricky and in many case you do not want it to be null. Overriding it
always makes you think:)
- Specified by:
defaultValue
in class RequestArguments.Argument<java.lang.Long>
queryComment
protected java.lang.String queryComment()
- Overrides:
queryComment
in class RequestArguments.Argument<java.lang.Long>
queryDescription
protected java.lang.String queryDescription()
- Description copied from class:
RequestArguments.Argument
- Returns the query description. This is a concise description of a
correct value for the argument. generally used as a placeholder in the
html query elements.
- Specified by:
queryDescription
in class RequestArguments.Argument<java.lang.Long>