| java.lang.Object org.jreform.internal.AbstractInputCollection org.jreform.internal.GroupImpl
GroupImpl | class GroupImpl extends AbstractInputCollection implements Group(Code) | | An input group maintains its own set of inputs and errors and has its
own validation rules. The rules depend on whether the group
GroupImpl.isRequired() .
If required: all inputs must satisfy imposed criteria for
the group to be deemed valid.
Otherwise: either all inputs in this group are empty (have no values)
for the group to be valid OR all inputs satisfy imposed criteria.
author: armandino (at) gmail.com |
GroupImpl | GroupImpl(AbstractForm parent, String name, boolean isRequired)(Code) | | Create a new input group.
Parameters: parent - to which this group will belong. Parameters: name - of the group. Parameters: isRequired - if this group should be treated as valid when empty. |
add | final public void add(InputControl<T> input)(Code) | | Adds the input to this input group and its parent form.
|
isEmpty | final public boolean isEmpty()(Code) | | |
isRequired | final public boolean isRequired()(Code) | | |
setRequired | final public void setRequired(boolean isRequired)(Code) | | |
Methods inherited from org.jreform.internal.AbstractInputCollection | void add(InputControl<T> input)(Code)(Java Doc) final public void addError(String errorKey)(Code)(Java Doc) protected void additionalValidate()(Code)(Java Doc) final public InputControlModifier<T> checkbox(InputDataType<T> type, String name, Criterion<T>... criteria)(Code)(Java Doc) final public Checkbox<T> getCheckbox(String name)(Code)(Java Doc) final public Set<String> getErrors()(Code)(Java Doc) final public Input<T> getInput(String name)(Code)(Java Doc) final InputControl> getInputControl(String name)(Code)(Java Doc) final Map<String, InputControl<?>> getInputs()(Code)(Java Doc) final public MultiCheckbox<T> getMultiCheckbox(String name)(Code)(Java Doc) final public MultiSelect<T> getMultiSelect(String name)(Code)(Java Doc) final public Radio<T> getRadio(String name)(Code)(Java Doc) final public Select<T> getSelect(String name)(Code)(Java Doc) final public InputControlModifier<T> input(InputDataType<T> type, String name, Criterion<T>... criteria)(Code)(Java Doc) final public boolean isValid()(Code)(Java Doc) final public InputControlModifier<T> multiCheckbox(InputDataType<T> type, String name, Criterion<T>... criteria)(Code)(Java Doc) final public InputControlModifier<T> multiSelect(InputDataType<T> type, String name, Criterion<T>... criteria)(Code)(Java Doc) final public InputControlModifier<T> radio(InputDataType<T> type, String name, Criterion<T>... criteria)(Code)(Java Doc) final public InputControlModifier<T> select(InputDataType<T> type, String name, Criterion<T>... criteria)(Code)(Java Doc) final void setValid(boolean isValid)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|