com.ibm.as400.ui.framework.java
Class PanelListModel
java.lang.Object
|
+--javax.swing.AbstractListModel
|
+--com.ibm.as400.ui.framework.java.PanelListModel
- All Implemented Interfaces:
- javax.swing.ListModel, java.io.Serializable
- public class PanelListModel
- extends javax.swing.AbstractListModel
An implementation of ListModel
that uses an
array of objects to store the list values.
- Since:
- v4r2m0
- See Also:
ListModel
, Serialized Form
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Method Summary |
java.lang.Object |
getElementAt(int row)
Returns the value at the specified index. |
java.lang.Object[] |
getList()
Returns the list of values. |
int |
getSize()
Returns the length of the list. |
void |
setList(java.lang.Object[] items)
Sets the list of values. |
java.lang.String |
toString()
Returns a string representation of the model. |
Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PanelListModel
public PanelListModel()
getList
public java.lang.Object[] getList()
- Returns the list of values.
- Returns:
- the list of values
- Since:
- v4r2m0
setList
public void setList(java.lang.Object[] items)
- Sets the list of values.
- Parameters:
items
- the list of values- Since:
- v4r2m0
toString
public java.lang.String toString()
- Returns a string representation of the model.
- Overrides:
toString
in class java.lang.Object
- Returns:
- the size of the list as a string
- Since:
- v4r2m0
getSize
public int getSize()
- Returns the length of the list.
- Overrides:
getSize
in class javax.swing.AbstractListModel
- Returns:
- the size of the list
- Since:
- v4r2m0
getElementAt
public java.lang.Object getElementAt(int row)
- Returns the value at the specified index.
- Overrides:
getElementAt
in class javax.swing.AbstractListModel
- Returns:
- the specified list value
- Since:
- v4r2m0