uk.ac.essex.common.gui.panel
Interface ListPanel

All Known Implementing Classes:
DoubleListPanel, FloatListPanel, Function2DListPanel, IntListPanel, ListPanelImpl, NumberListPanel

public interface ListPanel

A list panel represents a mutable panel whose subelements have similar properties to a list. For example suppose you wish a user to enter data that will be stored in an array. You would need to have multiple text property boxes and a way for users to add and remove text property boxes.

Copyright: Copyright (c) 2001
Company: MSX-International


Method Summary
 void addRow()
          Adds a row to this list panel, this uses getRowLabel() for the label.
 javax.swing.JButton getAddButton()
          The add button cause another row to be added
 javax.swing.JButton getRemoveButton()
          The remove button causes the last row to be removed
 java.lang.String getRowLabel()
           
 java.lang.Object getValue()
           
 void removeRow()
          Removes thge last row of this list panel
 void setValue(java.lang.Object value)
          TODO: Should this be typed, or should I cater for collections?
 

Method Detail

getAddButton

javax.swing.JButton getAddButton()
The add button cause another row to be added

Returns:

getRemoveButton

javax.swing.JButton getRemoveButton()
The remove button causes the last row to be removed

Returns:

addRow

void addRow()
Adds a row to this list panel, this uses getRowLabel() for the label.


removeRow

void removeRow()
Removes thge last row of this list panel


getRowLabel

java.lang.String getRowLabel()
Returns:
String the row label

getValue

java.lang.Object getValue()
Returns:

setValue

void setValue(java.lang.Object value)
TODO: Should this be typed, or should I cater for collections?

Parameters:
value - - This is most likey an array