Methods Summary |
---|
public void | actionPerformed(java.awt.event.ActionEvent evt)
if(evt.getActionCommand().equals("update")) {
this.fireUpdate();
}
|
public void | addListDataListener(javax.swing.event.ListDataListener l)
listeners.add(l);
|
public void | fireUpdate()
ListDataEvent le = new ListDataEvent(this,
ListDataEvent.CONTENTS_CHANGED,
0,
data.size());
for(int i=0; i<listeners.size(); i++) {
ListDataListener l = (ListDataListener)listeners.get(i);
l.contentsChanged(le);
}
|
public java.lang.Object | getElementAt(int index)
return data.get(index);
|
public java.lang.Object | getSelectedItem()
return this.selected;
|
public int | getSize()
return data.size();
|
public void | removeListDataListener(javax.swing.event.ListDataListener l)
this.listeners.remove(l);
|
public void | setSelectedItem(java.lang.Object item)
this.selected = item;
|