|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectuserInterface.interfaceUtility.Form
public class Form
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.
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 |
---|
public static final int FORMINPUT
public static final int TEXTINPUT
public static final int PASSWORDINPUT
public static final int TEXTAREAINPUT
public static final int DROPDOWNINPUT
public static final int DATEINPUT
public static final int BUTTONINPUT
public static final int ATTACHMENTINPUT
public static final int IFRAMEINPUT
public static final int FILTERINPUT
Constructor Detail |
---|
public Form(java.lang.String label, int inputType, int inputSize, boolean editable, java.lang.String[] inputOptions, java.lang.String inputData)
label
- - label of the input objectinputType
- - the input type of the object, use the
static input type index in this classinputSize
- - the input sizeeditable
- - flag indicator if input is editable or notinputOptions
- - array of input optionsinputData
- - the input dataoptionSelected
- - index of the option delectedMethod Detail |
---|
public java.lang.String getLabel()
public int getInputType()
public int getInputSize()
public boolean getEditable()
public java.lang.String[] getInputOptions()
public java.lang.String getInputData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |