|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jadex.swing.ClassDisplayerModel
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 |
public ClassDisplayerModel()
public ClassDisplayerModel(java.lang.String classe, int count, javax.swing.JLabel[] labels, javax.swing.JLabel labelAll)
classe
- java.lang.StringCount
- intlabels
- JLabel[]Method Detail |
public java.lang.String getClassName()
public int getCount()
public javax.swing.JLabel getLabelAll()
public javax.swing.JLabel[] getLabels()
public javax.swing.JLabel getLabels(int index)
public void setClassName(java.lang.String newValue)
newValue
- the name of the new class to be displayed.public void setCount(int newValue)
newValue
- the total count of the objects in the class to be displayed.public void setLabelAll(javax.swing.JLabel label)
public void setLabels(javax.swing.JLabel[] newValue)
newValue
- A JLabel array to be set.public void setLabels(int index, javax.swing.JLabel newValue)
index
- the position of the JLabel in label array.newValue
- a new JLabel.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |