public class FormInput extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
FormInput.InputType |
| Constructor and Description |
|---|
FormInput(FormInput.InputType type,
Identification identification) |
FormInput(FormInput.InputType type,
Identification identification,
String value) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsInput(Set<FormInput> inputs,
Identification identification) |
boolean |
equals(Object obj) |
Eventable |
getEventable() |
Identification |
getIdentification() |
static FormInput |
getInput(Set<FormInput> inputs,
Identification identification) |
Set<InputValue> |
getInputValues() |
FormInput.InputType |
getType() |
static FormInput.InputType |
getTypeFromStr(String type) |
int |
hashCode() |
void |
inputValues(boolean... values)
Sets the values of this input field.
|
void |
inputValues(Set<InputValue> inputValues) |
void |
inputValues(String... values) |
void |
setEventable(Eventable eventable) |
String |
toString() |
public FormInput(FormInput.InputType type, Identification identification)
public FormInput(FormInput.InputType type, Identification identification, String value)
type - the type of the input elements (e.g. text, checkbox)identification - the identification.value - the value of the elements. 1 for checkedpublic FormInput.InputType getType()
public static FormInput.InputType getTypeFromStr(String type)
public static boolean containsInput(Set<FormInput> inputs, Identification identification)
inputs - form input set.identification - the identification to check.public static FormInput getInput(Set<FormInput> inputs, Identification identification)
inputs - form input set.identification - the identification to check.public Set<InputValue> getInputValues()
public void inputValues(Set<InputValue> inputValues)
inputValues - the inputValues to setpublic void inputValues(String... values)
public void inputValues(boolean... values)
values - Values to set.public Eventable getEventable()
public void setEventable(Eventable eventable)
eventable - the eventable by which this FormInput is submitted bypublic Identification getIdentification()
Copyright © 2007–2019. All rights reserved.