|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectGameListModel
Model for JList.
Implements interface ListModel.
This model contains a list of the race information. All information
(GameInfo) is given at the same time with the
setElements(GameInfo [] gis) method.
Tracksail| Field Summary | |
private GameInfo[] |
elements
race information as an array |
private java.util.ArrayList |
listeners
list of list data listeners |
| Constructor Summary | |
GameListModel()
|
|
| Method Summary | |
void |
addListDataListener(javax.swing.event.ListDataListener l)
Adds a list data listener. |
java.lang.Object |
getElementAt(int index)
Returns the requested GameInfo object. |
int |
getSize()
Returns the number of race information objects. |
void |
removeListDataListener(javax.swing.event.ListDataListener l)
Removes a list data listener. |
void |
setElements(GameInfo[] gis)
Sets the given race information as the content of the model. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.ArrayList listeners
private GameInfo[] elements
| Constructor Detail |
public GameListModel()
| Method Detail |
public void addListDataListener(javax.swing.event.ListDataListener l)
addListDataListener in interface javax.swing.ListModell - ListDataListener objectpublic void removeListDataListener(javax.swing.event.ListDataListener l)
removeListDataListener in interface javax.swing.ListModell - ListDataListener object.public java.lang.Object getElementAt(int index)
GameInfo object.
getElementAt in interface javax.swing.ListModelindex - index of the requested location
GameInfo object of the requested index.public int getSize()
getSize in interface javax.swing.ListModelGameInfo
objects.public void setElements(GameInfo[] gis)
gis - GameInfo objects as an array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||