userInterface.interfaceUtility
Class Element

java.lang.Object
  extended by userInterface.interfaceUtility.Format
      extended by userInterface.interfaceUtility.Element

public class Element
extends Format

Generate HTML elements given the inputData.

Author:
03chowch

Constructor Summary
Element()
           
 
Method Summary
static java.lang.StringBuffer genAttachment(Form inputData, boolean inRow, boolean inCell)
          Generate an file input with specific attributes provided by the input data.
static java.lang.StringBuffer genDate(Form inputData, boolean inRow, boolean inCell)
          Generate the date drop down filter.
static java.lang.StringBuffer genDropDown(Form inputData, boolean inRow, boolean inCell)
          Generate a drop down with specific attributes and select options provide by the input data.
static java.lang.StringBuffer genPassword(Form inputData, boolean inRow, boolean inCell)
          Generate a password input with specific attributes provided by the input data.
static java.lang.StringBuffer genText(Form inputData, boolean inRow, boolean inCell)
          Generate a text input with specific attributes provided by the input data.
static java.lang.StringBuffer genTextArea(Form inputData, boolean inRow, boolean inCell)
          Generate a text area with specific attributes provide by the input data.
 
Methods inherited from class userInterface.interfaceUtility.Format
alignCloseTag, alignOpenTag, alignTag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Element

public Element()
Method Detail

genText

public static java.lang.StringBuffer genText(Form inputData,
                                             boolean inRow,
                                             boolean inCell)
Generate a text input with specific attributes provided by the input data. This function require the following fields from the Form object: size - the size of the input label - the label of the input input data - default value or retrieved data editable - indicator if input is disabled or not

Parameters:
inputData - - the input data attributes
inRow - - indicate if input occupy entire table row
inCell - - indicate if input is in a table cell
Returns:

genPassword

public static java.lang.StringBuffer genPassword(Form inputData,
                                                 boolean inRow,
                                                 boolean inCell)
Generate a password input with specific attributes provided by the input data. This function require the following fields from the Form object: size - the size of the input label - the label of the input input data - default value or retrieved data editable - indicator if input is disabled or not

Parameters:
inputData - - the input data attributes
inRow - - indicate if input occupy entire table row
inCell - - indicate if input is in a table cell
Returns:

genAttachment

public static java.lang.StringBuffer genAttachment(Form inputData,
                                                   boolean inRow,
                                                   boolean inCell)
Generate an file input with specific attributes provided by the input data. This function require the following fields from the Form object: size - the size of the file input field label - the label of the file input input data - if input data given, a link will be generated if input data not given, a file input file will be generated editable - indicator if input is disabled or not

Parameters:
inputData - - the input data attributes
inRow - - indicate if input occupy entire table row
inCell - - indicate if input is in a table cell
Returns:

genTextArea

public static java.lang.StringBuffer genTextArea(Form inputData,
                                                 boolean inRow,
                                                 boolean inCell)
Generate a text area with specific attributes provide by the input data. This function require the following fields from the Form object: size - the size of the text area label - the label of the text area input data - default value or retrieved data editable - indicator if input is disabled or not

Parameters:
inputData - - the input data attributes
inRow - - indicate if input occupy entire table row
inCell - - indicate if input is in a table cell
Returns:

genDropDown

public static java.lang.StringBuffer genDropDown(Form inputData,
                                                 boolean inRow,
                                                 boolean inCell)
Generate a drop down with specific attributes and select options provide by the input data. This function require the following fields from the Form object: size - if size greater than 1, input becomes selection list if size equals 1, input becomes drop down. label - the label of the input editable - indicator if input is disabled or not options - the drop down list or selection list options data - the selected option

Parameters:
inputData - - the input data attributes
inRow - - indicate if input occupy entire table row
inCell - - indicate if input is in a table cell
Returns:

genDate

public static java.lang.StringBuffer genDate(Form inputData,
                                             boolean inRow,
                                             boolean inCell)
Generate the date drop down filter. This function require the following fields from the Form object: label - the label of the input options - the date selected in the form [YEAR][MONTH][DAY]. Assumes the date has been checked and is valid.

Parameters:
inputData - - indicator if its the from date drop down
inRow - - indicate if input occupy entire table row
inCell - - indicate if input is in a table cell
Returns: