water.api
Class RequestArguments.HexColumnSelect

java.lang.Object
  extended by water.Iced
      extended by water.api.RequestArguments.Argument<T>
          extended by water.api.RequestArguments.MultipleSelect<int[]>
              extended by water.api.RequestArguments.HexColumnSelect
All Implemented Interfaces:
java.lang.Cloneable, Request.Filter, Freezable
Direct Known Subclasses:
RequestArguments.HexAllColumnSelect, RequestArguments.HexNonClassColumnSelect, RequestArguments.HexPCAColumnSelect
Enclosing class:
RequestArguments

public class RequestArguments.HexColumnSelect
extends RequestArguments.MultipleSelect<int[]>


Field Summary
 int _elementLimit
           
 RequestArguments.H2OHexKey _key
           
 
Fields inherited from class water.api.RequestArguments.Argument
_displayName, _field, _hideInQuery, _name, _prerequisites, _readOnly, _requestHelp, _required
 
Constructor Summary
RequestArguments.HexColumnSelect(java.lang.String name, RequestArguments.H2OHexKey key)
           
RequestArguments.HexColumnSelect(java.lang.String name, RequestArguments.H2OHexKey key, int elementLimit)
           
 
Method Summary
 void checkLegality(int i, ValueArray.Column c)
           
protected  java.util.Comparator<java.lang.Integer> colComp(ValueArray ary)
           
protected  int[] defaultValue()
          Returns the default value of the argument.
protected  boolean isSelected(java.lang.String value)
          Returns true if the given option (by its value) is selected.
protected  int[] parse(java.lang.String input)
          Override this method to provide parsing of the input string to the Java expected value.
protected  java.lang.String queryDescription()
          Returns the query description.
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  java.lang.String[] selectValues()
          Override this method to provide the values for the options.
 boolean shouldIgnore(int i, ValueArray.Column ca)
           
 
Methods inherited from class water.api.RequestArguments.MultipleSelect
jsRefresh, jsValue
 
Methods inherited from class water.api.RequestArguments.Argument
addPrerequisite, check, disable, disable, disabled, errors, jsAddons, originalValue, query, queryAddons, queryComment, 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
 

Field Detail

_key

public final RequestArguments.H2OHexKey _key

_elementLimit

public final int _elementLimit
Constructor Detail

RequestArguments.HexColumnSelect

public RequestArguments.HexColumnSelect(java.lang.String name,
                                        RequestArguments.H2OHexKey key)

RequestArguments.HexColumnSelect

public RequestArguments.HexColumnSelect(java.lang.String name,
                                        RequestArguments.H2OHexKey key,
                                        int elementLimit)
Method Detail

shouldIgnore

public boolean shouldIgnore(int i,
                            ValueArray.Column ca)

checkLegality

public void checkLegality(int i,
                          ValueArray.Column c)
                   throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

colComp

protected java.util.Comparator<java.lang.Integer> colComp(ValueArray ary)

queryElement

protected java.lang.String queryElement()
Description copied from class: RequestArguments.MultipleSelect
Displays the query element. It is a tabled list of all possibilities with an optional scrollbar on the right.

Overrides:
queryElement in class RequestArguments.MultipleSelect<int[]>

selectValues

protected final java.lang.String[] selectValues()
Description copied from class: RequestArguments.MultipleSelect
Override this method to provide the values for the options. These will be the possible values returned by the form's input and should be the possible values for the JSON argument.

Specified by:
selectValues in class RequestArguments.MultipleSelect<int[]>

selectNames

protected java.lang.String[] selectNames()
Description copied from class: RequestArguments.MultipleSelect
Override this method to determine the value names, that is the names displayed in the browser. Return null, if the value strings should be used (this is default behavior).

Overrides:
selectNames in class RequestArguments.MultipleSelect<int[]>

isSelected

protected boolean isSelected(java.lang.String value)
Description copied from class: RequestArguments.MultipleSelect
Returns true if the given option (by its value) is selected. False otherwise.

Specified by:
isSelected in class RequestArguments.MultipleSelect<int[]>

parse

protected int[] 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<int[]>
Throws:
java.lang.IllegalArgumentException

defaultValue

protected int[] 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<int[]>

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<int[]>