org.jreform
Interface Group

All Superinterfaces:
HttpServletRequestValidator, InputCollection
All Known Implementing Classes:
GroupImpl

public interface Group
extends InputCollection

A group of inputs within a form.

Author:
armandino (at) gmail.com

Method Summary
 String getName()
          Returns the name of this group.
 boolean isEmpty()
          Checks if this group has input data.
 boolean isRequired()
          If required all inputs must satisfy imposed criteria for the group to be valid.
 boolean isValid()
          Checks whether this group is valid.
 void setRequired(boolean isRequired)
          Set whether this group is required.
 
Methods inherited from interface org.jreform.InputCollection
checkbox, getCheckbox, getInput, getInputValue, getMultiCheckbox, getMultiInputValue, getMultiSelect, getRadio, getSelect, input, multiCheckbox, multiSelect, radio, select
 
Methods inherited from interface org.jreform.HttpServletRequestValidator
getErrors, validate
 

Method Detail

getName

String getName()
Returns the name of this group.


isRequired

boolean isRequired()
If required all inputs must satisfy imposed criteria for the group to be valid. If optional either all inputs must be null OR all inputs must satisfy their criteria for the group to be valid.


setRequired

void setRequired(boolean isRequired)
Set whether this group is required.


isEmpty

boolean isEmpty()
Checks if this group has input data.

Returns:
true if all inputs that belong to this group are blank, false otherwise.

isValid

boolean isValid()
Checks whether this group is valid.



Copyright © 2007-2008 jReform