java.lang.Object
org.schooltool.client.gui.widgets.TSFListModelImplementation
- All Implemented Interfaces:
- javax.swing.ListModel
- public class TSFListModelImplementation
- extends java.lang.Object
- implements javax.swing.ListModel
- Version:
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataStrings
private java.lang.String[] DataStrings
pk
private long[] pk
hasData
private boolean hasData
cachedMethods
private java.util.Hashtable cachedMethods
- Creates new TSFListModelImplementation
TSFListModelImplementation
public TSFListModelImplementation()
TSFListModelImplementation
public TSFListModelImplementation(java.util.Collection listObjects,
java.lang.String[] getterMethodNames)
getPKData
public long[] getPKData()
removeAll
public void removeAll()
callMethod
public java.lang.Object callMethod(java.lang.Object objectToCall,
java.lang.String methodName,
java.lang.reflect.Method cachedMethod)
throws java.lang.Exception
addListDataListener
public void addListDataListener(javax.swing.event.ListDataListener listDataListener)
- Description copied from interface:
javax.swing.ListModel
- Add a listener object to this model. The listener will be called
any time the set of elements in the model is changed.
- Specified by:
addListDataListener in interface javax.swing.ListModel
removeListDataListener
public void removeListDataListener(javax.swing.event.ListDataListener listDataListener)
- Description copied from interface:
javax.swing.ListModel
- Add a listener object to this model. The listener will no longer be
called when the set of elements in the model is changed.
- Specified by:
removeListDataListener in interface javax.swing.ListModel
getSize
public int getSize()
- Description copied from interface:
javax.swing.ListModel
- Return the number of data elements in the list.
- Specified by:
getSize in interface javax.swing.ListModel
getElementAt
public java.lang.Object getElementAt(int param)
- Description copied from interface:
javax.swing.ListModel
- Retrieves a data element at a specified index.
- Specified by:
getElementAt in interface javax.swing.ListModel
getPrimaryKey
public long getPrimaryKey(int index)
add
public void add(java.lang.String display,
long PK)
remove
public void remove(long PK)