userInterface.interfaceUtility
Class Form

java.lang.Object
  extended by userInterface.interfaceUtility.Form

public class Form
extends java.lang.Object

Structure to store the data in regard to each input. An array of the form structure would gives the complete form. The first array element should always be information on the form as a whole, it would provide information in regard the elements that follows if it is necessary. The elements that follw the first 'FORMINPUT' element are inputs of the form. It is possible for an array to have multiple form all in one. This form has no set methods because the templates for these inputs are retrieved from the database thus there would never be a need to modify the data. Note for the input type 'Date', the input options would not be an array of the days, months, and years. The input options would only contain the input data with index 0 being the day, index 1 being the month, and index 2 being the year.

Author:
03chowch

Field Summary
static int ATTACHMENTINPUT
           
static int BUTTONINPUT
           
static int DATEINPUT
           
static int DROPDOWNINPUT
           
static int FILTERINPUT
           
static int FORMINPUT
           
static int IFRAMEINPUT
           
static int PASSWORDINPUT
           
static int TEXTAREAINPUT
           
static int TEXTINPUT
           
 
Constructor Summary
Form(java.lang.String label, int inputType, int inputSize, boolean editable, java.lang.String[] inputOptions, java.lang.String inputData)
          Constructor to store data for one input.
 
Method Summary
 boolean getEditable()
          Return the editable flag of the input.
 java.lang.String getInputData()
          Return the input data.
 java.lang.String[] getInputOptions()
          Return the input options.
 int getInputSize()
          Return the input size.
 int getInputType()
          Return the input type.
 java.lang.String getLabel()
          Return the label.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORMINPUT

public static final int FORMINPUT
See Also:
Constant Field Values

TEXTINPUT

public static final int TEXTINPUT
See Also:
Constant Field Values

PASSWORDINPUT

public static final int PASSWORDINPUT
See Also:
Constant Field Values

TEXTAREAINPUT

public static final int TEXTAREAINPUT
See Also:
Constant Field Values

DROPDOWNINPUT

public static final int DROPDOWNINPUT
See Also:
Constant Field Values

DATEINPUT

public static final int DATEINPUT
See Also:
Constant Field Values

BUTTONINPUT

public static final int BUTTONINPUT
See Also:
Constant Field Values

ATTACHMENTINPUT

public static final int ATTACHMENTINPUT
See Also:
Constant Field Values

IFRAMEINPUT

public static final int IFRAMEINPUT
See Also:
Constant Field Values

FILTERINPUT

public static final int FILTERINPUT
See Also:
Constant Field Values
Constructor Detail

Form

public Form(java.lang.String label,
            int inputType,
            int inputSize,
            boolean editable,
            java.lang.String[] inputOptions,
            java.lang.String inputData)
Constructor to store data for one input. An array of form object would produce a form.

Parameters:
label - - label of the input object
inputType - - the input type of the object, use the static input type index in this class
inputSize - - the input size
editable - - flag indicator if input is editable or not
inputOptions - - array of input options
inputData - - the input data
optionSelected - - index of the option delected
Method Detail

getLabel

public java.lang.String getLabel()
Return the label.

Returns:

getInputType

public int getInputType()
Return the input type.

Returns:

getInputSize

public int getInputSize()
Return the input size.

Returns:

getEditable

public boolean getEditable()
Return the editable flag of the input.

Returns:

getInputOptions

public java.lang.String[] getInputOptions()
Return the input options.

Returns:

getInputData

public java.lang.String getInputData()
Return the input data.

Returns: