All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.as400.ui.framework.java.PanelListModel
java.lang.Object
|
+----javax.swing.AbstractListModel
|
+----com.ibm.as400.ui.framework.java.PanelListModel
- public class PanelListModel
- extends AbstractListModel
An implementation of ListModel
that uses an
array of objects to store the list values.
- See Also:
- ListModel
-
PanelListModel()
-
-
getElementAt(int)
-
Returns the value at the specified index.
-
getList()
- Returns the list of values.
-
getSize()
-
Returns the length of the list.
-
setList(Object[])
- Sets the list of values.
-
toString()
- Returns a string representation of the model.
PanelListModel
public PanelListModel()
getList
public Object[] getList()
- Returns the list of values.
- Returns:
- the list of values
setList
public void setList(Object items[])
- Sets the list of values.
- Parameters:
- items - the list of values
toString
public String toString()
- Returns a string representation of the model.
- Returns:
- the size of the list as a string
- Overrides:
- toString in class Object
getSize
public int getSize()
- Returns the length of the list.
- Returns:
- the size of the list
- Overrides:
- getSize in class AbstractListModel
getElementAt
public Object getElementAt(int row)
- Returns the value at the specified index.
- Returns:
- the specified list value
- Overrides:
- getElementAt in class AbstractListModel
All Packages Class Hierarchy This Package Previous Next Index