Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.schooltool.client.gui.widgets
Class TSFListModelImplementation  view TSFListModelImplementation download TSFListModelImplementation.java

java.lang.Object
  extended byorg.schooltool.client.gui.widgets.TSFListModelImplementation
All Implemented Interfaces:
javax.swing.ListModel

public class TSFListModelImplementation
extends java.lang.Object
implements javax.swing.ListModel

Version:

Field Summary
private  java.util.Hashtable cachedMethods
          Creates new TSFListModelImplementation
private  java.lang.String[] DataStrings
           
private  boolean hasData
           
private  long[] pk
           
 
Constructor Summary
TSFListModelImplementation()
           
TSFListModelImplementation(java.util.Collection listObjects, java.lang.String[] getterMethodNames)
           
 
Method Summary
 void add(java.lang.String display, long PK)
           
 void addListDataListener(javax.swing.event.ListDataListener listDataListener)
          Add a listener object to this model.
 java.lang.Object callMethod(java.lang.Object objectToCall, java.lang.String methodName, java.lang.reflect.Method cachedMethod)
           
 java.lang.Object getElementAt(int param)
          Retrieves a data element at a specified index.
 long[] getPKData()
           
 long getPrimaryKey(int index)
           
 int getSize()
          Return the number of data elements in the list.
 void remove(long PK)
           
 void removeAll()
           
 void removeListDataListener(javax.swing.event.ListDataListener listDataListener)
          Add a listener object to this model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DataStrings

private java.lang.String[] DataStrings

pk

private long[] pk

hasData

private boolean hasData

cachedMethods

private java.util.Hashtable cachedMethods
Creates new TSFListModelImplementation

Constructor Detail

TSFListModelImplementation

public TSFListModelImplementation()

TSFListModelImplementation

public TSFListModelImplementation(java.util.Collection listObjects,
                                  java.lang.String[] getterMethodNames)
Method Detail

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)