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

Constructor Index

 o PanelListModel()

Method Index

 o getElementAt(int)
Returns the value at the specified index.
 o getList()
Returns the list of values.
 o getSize()
Returns the length of the list.
 o setList(Object[])
Sets the list of values.
 o toString()
Returns a string representation of the model.

Constructors

 o PanelListModel
 public PanelListModel()

Methods

 o getList
 public Object[] getList()
Returns the list of values.

Returns:
the list of values
 o setList
 public void setList(Object items[])
Sets the list of values.

Parameters:
items - the list of values
 o 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
 o getSize
 public int getSize()
Returns the length of the list.

Returns:
the size of the list
Overrides:
getSize in class AbstractListModel
 o 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