|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lip6.sma.simulacion.app.Model
public class Model
Classe pour un modèle.
| Field Summary | |
|---|---|
private PropertyChangeSupport |
mPropertyChangeSupport
Gestionnaire pour les changements. |
| Constructor Summary | |
|---|---|
Model()
Constructeur par défaut. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener inListener)
Ajoute un client pour le changement d'une propriété. |
protected void |
firePropertyChange(String inPropertyName,
boolean inOldValue,
boolean inNewValue)
Indique aux clients un changement dans une propriété. |
protected void |
firePropertyChange(String inPropertyName,
int inOldValue,
int inNewValue)
Indique aux clients un changement dans une propriété. |
protected void |
firePropertyChange(String inPropertyName,
Object inOldValue,
Object inNewValue)
Indique aux clients un changement dans une propriété. |
void |
removePropertyChangeListener(PropertyChangeListener inListener)
Supprime un client pour le changement d'une propriété. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final PropertyChangeSupport mPropertyChangeSupport
| Constructor Detail |
|---|
public Model()
| Method Detail |
|---|
public final void addPropertyChangeListener(PropertyChangeListener inListener)
addPropertyChangeListener in interface GameModelinListener - client à ajouter.public final void removePropertyChangeListener(PropertyChangeListener inListener)
removePropertyChangeListener in interface GameModelinListener - client à supprimer.
protected void firePropertyChange(String inPropertyName,
int inOldValue,
int inNewValue)
inPropertyName - nom de la propriété qui a changé.inOldValue - ancienne valeur de la propriété.inNewValue - nouvelle valeur de la propriété.
protected void firePropertyChange(String inPropertyName,
boolean inOldValue,
boolean inNewValue)
inPropertyName - nom de la propriété qui a changé.inOldValue - ancienne valeur de la propriété.inNewValue - nouvelle valeur de la propriété.
protected void firePropertyChange(String inPropertyName,
Object inOldValue,
Object inNewValue)
inPropertyName - nom de la propriété qui a changé.inOldValue - ancienne valeur de la propriété.inNewValue - nouvelle valeur de la propriété.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||