com.ibm.as400.ui.framework.java
Class PanelListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by com.ibm.as400.ui.framework.java.PanelListModel
All Implemented Interfaces:
Serializable, ListModel

public class PanelListModel
extends AbstractListModel

An implementation of ListModel that uses an array of objects to store the list values.

Since:
v4r2m0
Version:
1.0, 04/15/98
Author:
D. Petty
See Also:
ListModel, Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
Constructor and Description
PanelListModel()
           
 
Method Summary
Modifier and Type Method and Description
 Object getElementAt(int row)
          Returns the value at the specified index.
 Object[] getList()
          Returns the list of values.
 int getSize()
          Returns the length of the list.
 void setList(Object[] items)
          Sets the list of values.
 String toString()
          Returns a string representation of the model.
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PanelListModel

public PanelListModel()
Method Detail

getList

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

Returns:
the list of values
Since:
v4r2m0

setList

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

Parameters:
items - the list of values
Since:
v4r2m0

toString

public String toString()
Returns a string representation of the model.

Overrides:
toString in class Object
Returns:
the size of the list as a string
Since:
v4r2m0

getSize

public int getSize()
Returns the length of the list.

Returns:
the size of the list
Since:
v4r2m0

getElementAt

public Object getElementAt(int row)
Returns the value at the specified index.

Returns:
the specified list value
Since:
v4r2m0