|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractListModel
ucar.unidata.view.sounding.SoundingObListModel
public class SoundingObListModel
Provides support for adapting a list of sounding observations to the ListModel interface.
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
SoundingObListModel()
Constructs from nothing. |
|
| Method Summary | |
|---|---|
void |
addSounding(SoundingOb sounding)
Adds a sounding observation to the list. |
void |
clearSoundings()
Clears all sounding observations from the list. |
Object |
getElementAt(int index)
Returns the sounding at the given index. |
int |
getSize()
Returns the number of soundings. |
void |
removeSounding(int index)
Removes a sounding observation from the list. |
void |
removeSounding(SoundingOb sounding)
Removes a sounding observation from the list. |
| 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, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SoundingObListModel()
| Method Detail |
|---|
public void addSounding(SoundingOb sounding)
sounding - The sounding observation to be added to the
list.public void removeSounding(SoundingOb sounding)
sounding - The sounding observation to be removed from the
list.public void removeSounding(int index)
index - The index of the sounding observation to be
removed from the list.public void clearSoundings()
public Object getElementAt(int index)
index - The index of the sounding.
null if there's no such sounding.public int getSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||