org.globus.cog.gridface.interfaces
Interface FormInputPanel

All Known Implementing Classes:
FormInputPanelImpl

public interface FormInputPanel

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

addPropertyChangeListener

public void addPropertyChangeListener(int i,
                                      PropertyChangeListener listener)
                               throws FormInputPanelException
Adds a listener for the ith field.

Parameters:
i - an int to identify which field we select.
listener - a Listener code that is than registered with the ith field
Throws:
FormInputPanelException

appendInput

public void appendInput(InputField inputField,
                        String label)
                 throws FormInputPanelException
Parameters:
label - String the label to give the input box
Throws:
FormInputPanelException

appendInput

public void appendInput(String label)
                 throws FormInputPanelException
Faster way of doing appendInput(new InputField(InputField.TEXTFIELD,label)

Parameters:
label - String
Throws:
FormInputPanelException

get

public String get(int i)
           throws FormInputPanelException
gets the ith value that is used in the panel.

Throws:
FormInputPanelException

get

public List get(String label)
         throws FormInputPanelException
gets the values coresponding to the label that is used in the panel.

Throws:
FormInputPanelException

getInputAt

public InputField getInputAt(int index)
                      throws FormInputPanelException
returns the InputField at a given index

Parameters:
index - int
Returns:
InputField
Throws:
FormInputPanelException

getInputCount

public int getInputCount()
returns the number of inputs

Returns:
int

getLabel

public String getLabel(int i)
                throws FormInputPanelException
Returns the label at index i, if i is out of bounds throws FormInputPanelException

Parameters:
i - int
Returns:
String
Throws:
FormInputPanelException

insertInput

public void insertInput(int index,
                        InputField input,
                        String label)
                 throws FormInputPanelException
Insert an input box

Parameters:
index - int the position to insert the input box
label - String the label to give the input box
Throws:
FormInputPanelException

insertInput

public void insertInput(int index,
                        String label)
                 throws FormInputPanelException
Faster way of doing InsertInput(index,new InputField(InputField.TEXTFIELD,label)

Parameters:
index - int
label - String
Throws:
FormInputPanelException

removeInput

public void removeInput(int index)
                 throws FormInputPanelException
removes an input and its label at a given index

Parameters:
index - int
Throws:
FormInputPanelException

removePropertyChangeListener

public void removePropertyChangeListener(int i,
                                         PropertyChangeListener listener)
                                  throws FormInputPanelException
removes a listener for the ith field.

Parameters:
i - an int to identify which field we select.
listener - a Listener code that is than deregistered with the ith field
Throws:
FormInputPanelException

setLabel

public void setLabel(int i,
                     String label)
              throws FormInputPanelException
Set the ith label that is used in the panel.

Parameters:
label - The new ith label.
Throws:
FormInputPanelException

set

public void set(int i,
                String value)
         throws FormInputPanelException
Set the ith value that is used in the panel.

Throws:
FormInputPanelException