jadex.swing
Class ClassDisplayerModel

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

public class ClassDisplayerModel
extends java.lang.Object

This is the model class to store all class counting information for ClassDisplayer.


Constructor Summary
ClassDisplayerModel()
          Default constructor.
ClassDisplayerModel(java.lang.String classe, int count, javax.swing.JLabel[] labels, javax.swing.JLabel labelAll)
          A overloaded construcotr.
 
Method Summary
 java.lang.String getClassName()
          Get the displayed class name.
 int getCount()
          Get the total count of the displayed class.
 javax.swing.JLabel getLabelAll()
           
 javax.swing.JLabel[] getLabels()
          Get all 26 labels, each of which is for one letter.
 javax.swing.JLabel getLabels(int index)
          Get a indexed JLabel from the JLabel array.
 void setClassName(java.lang.String newValue)
          Set the class name.
 void setCount(int newValue)
          Set the total count.
 void setLabelAll(javax.swing.JLabel label)
          Set the JLabel, LabelAll.
 void setLabels(int index, javax.swing.JLabel newValue)
          Set a specific JLabel at index index.
 void setLabels(javax.swing.JLabel[] newValue)
          Set all 26 JLabels.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDisplayerModel

public ClassDisplayerModel()
Default constructor.

ClassDisplayerModel

public ClassDisplayerModel(java.lang.String classe,
                           int count,
                           javax.swing.JLabel[] labels,
                           javax.swing.JLabel labelAll)
A overloaded construcotr.
Parameters:
classe - java.lang.String
Count - int
labels - JLabel[]
Method Detail

getClassName

public java.lang.String getClassName()
Get the displayed class name.
Returns:
the name of the displayed class.

getCount

public int getCount()
Get the total count of the displayed class.
Returns:
the total count of the entries of the displayed class.

getLabelAll

public javax.swing.JLabel getLabelAll()

getLabels

public javax.swing.JLabel[] getLabels()
Get all 26 labels, each of which is for one letter.
Returns:
the 26 JLabels.

getLabels

public javax.swing.JLabel getLabels(int index)
Get a indexed JLabel from the JLabel array.
Returns:
the JLabel with the specified index.

setClassName

public void setClassName(java.lang.String newValue)
Set the class name.
Parameters:
newValue - the name of the new class to be displayed.

setCount

public void setCount(int newValue)
Set the total count.
Parameters:
newValue - the total count of the objects in the class to be displayed.

setLabelAll

public void setLabelAll(javax.swing.JLabel label)
Set the JLabel, LabelAll.

setLabels

public void setLabels(javax.swing.JLabel[] newValue)
Set all 26 JLabels.
Parameters:
newValue - A JLabel array to be set.

setLabels

public void setLabels(int index,
                      javax.swing.JLabel newValue)
Set a specific JLabel at index index.
Parameters:
index - the position of the JLabel in label array.
newValue - a new JLabel.