|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
ListModel
,
Serialized FormModifier and Type | Field and Description |
---|
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor and Description |
---|
PanelListModel()
|
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 |
---|
public PanelListModel()
Method Detail |
---|
public Object[] getList()
public void setList(Object[] items)
items
- the list of valuespublic String toString()
toString
in class Object
public int getSize()
public Object getElementAt(int row)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |