|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A panel that can input a number of attributes.
The Panel looks similar to
+--------------------------------+
| Label1 : ___________________ |
| Label2 : ___________________ |
| Label3 : ___________________ |
| Label4 : ___________________ |
| Label5 : ___________________ |
| Label6 : ___________________ |
+--------------------------------+
it is useful to input quickly a number of inputs.
| Method Summary | |
void |
addPropertyChangeListener(int i,
PropertyChangeListener listener)
Adds a listener for the ith field. |
void |
appendInput(InputField inputField,
String label)
|
void |
appendInput(String label)
Faster way of doing appendInput(new InputField(InputField.TEXTFIELD,label) |
String |
get(int i)
gets the ith value that is used in the panel. |
List |
get(String label)
gets the values coresponding to the label that is used in the panel. |
InputField |
getInputAt(int index)
returns the InputField at a given index |
int |
getInputCount()
returns the number of inputs |
String |
getLabel(int i)
Returns the label at index i, if i is out of bounds throws FormInputPanelException |
void |
insertInput(int index,
InputField input,
String label)
Insert an input box |
void |
insertInput(int index,
String label)
Faster way of doing InsertInput(index,new InputField(InputField.TEXTFIELD,label) |
void |
removeInput(int index)
removes an input and its label at a given index |
void |
removePropertyChangeListener(int i,
PropertyChangeListener listener)
removes a listener for the ith field. |
void |
set(int i,
String value)
Set the ith value that is used in the panel. |
void |
setLabel(int i,
String label)
Set the ith label that is used in the panel. |
| Method Detail |
public void addPropertyChangeListener(int i,
PropertyChangeListener listener)
throws FormInputPanelException
i - an int to identify which field we select.listener - a Listener code that is than registered with the ith field
FormInputPanelException
public void appendInput(InputField inputField,
String label)
throws FormInputPanelException
label - String the label to give the input box
FormInputPanelException
public void appendInput(String label)
throws FormInputPanelException
label - String
FormInputPanelException
public String get(int i)
throws FormInputPanelException
FormInputPanelException
public List get(String label)
throws FormInputPanelException
FormInputPanelException
public InputField getInputAt(int index)
throws FormInputPanelException
index - int
FormInputPanelExceptionpublic int getInputCount()
public String getLabel(int i)
throws FormInputPanelException
i - int
FormInputPanelException
public void insertInput(int index,
InputField input,
String label)
throws FormInputPanelException
index - int the position to insert the input boxlabel - String the label to give the input box
FormInputPanelException
public void insertInput(int index,
String label)
throws FormInputPanelException
index - intlabel - String
FormInputPanelException
public void removeInput(int index)
throws FormInputPanelException
index - int
FormInputPanelException
public void removePropertyChangeListener(int i,
PropertyChangeListener listener)
throws FormInputPanelException
i - an int to identify which field we select.listener - a Listener code that is than deregistered with the ith field
FormInputPanelException
public void setLabel(int i,
String label)
throws FormInputPanelException
label - The new ith label.
FormInputPanelException
public void set(int i,
String value)
throws FormInputPanelException
FormInputPanelException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||