Package nz.org.riskscape.engine.bind
Enum Class InputFieldProperty
- All Implemented Interfaces:
Serializable
,Comparable<InputFieldProperty>
,Constable
,nz.org.riskscape.engine.bind.ParameterProperty
public enum InputFieldProperty
extends Enum<InputFieldProperty>
implements nz.org.riskscape.engine.bind.ParameterProperty
Describes aspects of how the UI should present the parameter to the user, i.e. what type of input field should be used on the form.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSame as multiselect, but on the UI it appears as a set of checkboxes.Specify explicitly that the UI should be a drop-down select box.Hide this parameter by default, i.e.User can specify multiple values, either from a pre-defined set of choices or as free-form numbersDisplay this parameter's value, but don't let the user edit it by defaultSpecify explicitly that the UI should be a simple textbox, i.e.Specify explicitly that we don't want the default formatting for numbers. -
Method Summary
Modifier and TypeMethodDescriptionList<nz.org.riskscape.engine.bind.ParameterProperty>
boolean
isCompatible
(nz.org.riskscape.engine.bind.ParameterProperty other) static InputFieldProperty
Returns the enum constant of this class with the specified name.static InputFieldProperty[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface nz.org.riskscape.engine.bind.ParameterProperty
getValueOr, hasKeyValuePair, implies, validate, withValue, withValue
-
Enum Constant Details
-
HIDDEN
Hide this parameter by default, i.e. it's expert-only
-
READONLY
Display this parameter's value, but don't let the user edit it by default -
UNFORMATTED
Specify explicitly that we don't want the default formatting for numbers. Useful for things like years, where we want to see 2024 rather than 2,024 -
MULTISELECT
User can specify multiple values, either from a pre-defined set of choices or as free-form numbers -
CHECKBOX
Same as multiselect, but on the UI it appears as a set of checkboxes. This requires that options are defined for the template -
DROPDOWN
Specify explicitly that the UI should be a drop-down select box. Normally this is inferred when there are options. -
TEXTBOX
Specify explicitly that the UI should be a simple textbox, i.e. don't go inferring any fancy numeric multiselects, just let the user enter things in plain text
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isCompatible
public boolean isCompatible(nz.org.riskscape.engine.bind.ParameterProperty other) - Specified by:
isCompatible
in interfacenz.org.riskscape.engine.bind.ParameterProperty
-
getKeyword
- Specified by:
getKeyword
in interfacenz.org.riskscape.engine.bind.ParameterProperty
-
getImplied
- Specified by:
getImplied
in interfacenz.org.riskscape.engine.bind.ParameterProperty
-