com.izforge.izpack.panels
Interface ProcessingClient

All Known Implementing Classes:
PasswordGroup, RuleInputField, TextInputField

public interface ProcessingClient

Implement this interface in any class that wants to use processing or validation services.

Version:
0.0.1 / 2/22/03
Author:
Elmar Grom
See Also:
Processor, Validator

Method Summary
 java.lang.String getFieldContents(int index)
          Returns the contents of the field indicated by index.
 int getNumFields()
          Returns the number of sub-fields.
 java.lang.String getText()
          Returns the field contents.
 java.util.Map<java.lang.String,java.lang.String> getValidatorParams()
          Returns the validator parameters, if any.
 boolean hasParams()
           
 

Method Detail

getNumFields

int getNumFields()
Returns the number of sub-fields.

Returns:
the number of sub-fields

getFieldContents

java.lang.String getFieldContents(int index)
Returns the contents of the field indicated by index.

Parameters:
index - the index of the sub-field from which the contents is requested.
Returns:
the contents of the indicated sub-field.
Throws:
java.lang.IndexOutOfBoundsException - if the index is out of bounds.

getText

java.lang.String getText()
Returns the field contents.

Returns:
the field contents

hasParams

boolean hasParams()
Returns:
true if this instance has any parameters to pass to the Validator instance.

getValidatorParams

java.util.Map<java.lang.String,java.lang.String> getValidatorParams()
Returns the validator parameters, if any. The caller should check for the existence of validator parameters via the hasParams() method prior to invoking this method.

Returns:
a java.util.Map containing the validator parameters.