| java.lang.Object com.izforge.izpack.panels.PasswordGroup
PasswordGroup | public class PasswordGroup implements ProcessingClient(Code) | | This class can be used to manage multiple related password fields. This is used in the
UserInputPanel to manage communication with the validator and processor for
password fields.
See Also: com.izforge.izpack.panels.UserInputPanel version: 0.0.1 / 2/22/03 author: Elmar Grom |
PasswordGroup | public PasswordGroup(InstallData idata, List<ValidatorContainer> validatorContainers, String processor)(Code) | | Creates a password group to manage one or more password fields.
Parameters: idata - the installation data Parameters: validatorContainers - the validator containers Parameters: processor - the processor |
addField | public void addField(JPasswordField field)(Code) | | Adds a JPasswordField to the group of fields being managed by this object.
Parameters: field - JPasswordField to add |
getFieldContents | public String getFieldContents(int index) throws IndexOutOfBoundsException(Code) | | Returns the contents of the field indicated by index .
Parameters: index - the index of the sub-field from which the contents is requested. the contents of the indicated sub-field. exception: IndexOutOfBoundsException - if the index is out of bounds. |
getNumFields | public int getNumFields()(Code) | | Returns the number of sub-fields.
the number of sub-fields |
getPassword | public String getPassword()(Code) | | Returns the password. If a processing service class was supplied it will be used to process
the password before it is returned, otherwise the content of the first field will be
returned.
the password |
getValidatorMessage | public String getValidatorMessage(int i)(Code) | | |
hasParams | public boolean hasParams()(Code) | | |
hasParams | public boolean hasParams(int i)(Code) | | |
validateContents | public boolean validateContents(int i)(Code) | | This method validates the group content. Validating is performed through a user supplied
service class that provides the validation rules.
true if the validation passes or no implementation of a validationrule exists. Otherwise false is returned. |
validatorSize | public int validatorSize()(Code) | | |
|
|