jadex.swing
Class ClassListModel

java.lang.Object
  |
  +--jadex.swing.ClassListModel

public class ClassListModel
extends java.lang.Object

This model class stores all object information in a specified class to be displayed in the ClasslistDisplayer.


Constructor Summary
ClassListModel()
          Default constructor.
ClassListModel(jade.db.AceAccessor accessor, javax.swing.JLabel label, ClassDisplayerModel classModel)
          An overloaded construtor.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          The addPropertyChangeListener method was generated to support the propertyChange field.
 void fetchObjects(java.lang.String letter, int start, int length)
          Fetch the objects with leading letter as letter from start to start + legnth -1.
 void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
          The firePropertyChange method was generated to support the propertyChange field.
 jade.db.AceAccessor getAceAccessor()
          Get the AceAccessor.
 java.lang.String getClassName()
           
 javax.swing.JPanel getCurrentPanel()
          Gets the currentPanel property (javax.swing.JPanel) value.
 java.util.Vector getLetterList()
           
protected  java.beans.PropertyChangeSupport getPropertyChange()
          Accessor for the propertyChange field.
 javax.swing.JLabel getStartingLabel()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          The removePropertyChangeListener method was generated to support the propertyChange field.
 void setAceAccessor(jade.db.AceAccessor model)
          Set AceAccessor for accessing the AceDB.
 void setClassName(java.lang.String name)
           
 void setCurrentPanel(javax.swing.JPanel currentPanel)
          Sets the currentPanel property (javax.swing.JPanel) value.
 void setLetterList(javax.swing.JLabel[] letter)
           
 void setLetterList(javax.swing.JLabel labelAll, javax.swing.JLabel[] letter)
           
 void setLetterList(java.util.Vector letter)
           
 void setStartingLabel(javax.swing.JLabel label)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassListModel

public ClassListModel()
Default constructor.

ClassListModel

public ClassListModel(jade.db.AceAccessor accessor,
                      javax.swing.JLabel label,
                      ClassDisplayerModel classModel)
An overloaded construtor.
Parameters:
accessor - the AceAccessor for accessing the AceDB.
label - the selected JLabel from ClassDisplayer.
classModel - the model storing all counting information for this class.
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
The addPropertyChangeListener method was generated to support the propertyChange field.

fetchObjects

public void fetchObjects(java.lang.String letter,
                         int start,
                         int length)
Fetch the objects with leading letter as letter from start to start + legnth -1.
Parameters:
letter - The leading letter of the object names
start - the start position of the object in the total list of the class
length - the total number of the objects to be fetched.

firePropertyChange

public void firePropertyChange(java.lang.String propertyName,
                               java.lang.Object oldValue,
                               java.lang.Object newValue)
The firePropertyChange method was generated to support the propertyChange field.

getAceAccessor

public jade.db.AceAccessor getAceAccessor()
Get the AceAccessor.
Returns:
jade.db.AceAccessor

getClassName

public java.lang.String getClassName()

getCurrentPanel

public javax.swing.JPanel getCurrentPanel()
Gets the currentPanel property (javax.swing.JPanel) value.
Returns:
The currentPanel property value.
See Also:
setCurrentPanel(javax.swing.JPanel)

getLetterList

public java.util.Vector getLetterList()

getPropertyChange

protected java.beans.PropertyChangeSupport getPropertyChange()
Accessor for the propertyChange field.

getStartingLabel

public javax.swing.JLabel getStartingLabel()

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
The removePropertyChangeListener method was generated to support the propertyChange field.

setAceAccessor

public void setAceAccessor(jade.db.AceAccessor model)
Set AceAccessor for accessing the AceDB.
Parameters:
model - jadex.swing.AceModel

setClassName

public void setClassName(java.lang.String name)

setCurrentPanel

public void setCurrentPanel(javax.swing.JPanel currentPanel)
Sets the currentPanel property (javax.swing.JPanel) value.
Parameters:
currentPanel - The new value for the property.
See Also:
getCurrentPanel()

setLetterList

public void setLetterList(javax.swing.JLabel[] letter)

setLetterList

public void setLetterList(javax.swing.JLabel labelAll,
                          javax.swing.JLabel[] letter)

setLetterList

public void setLetterList(java.util.Vector letter)

setStartingLabel

public void setStartingLabel(javax.swing.JLabel label)