lava.mv
Class MvModelEvent
java.lang.Object
|
+--lava.mv.MvModelEvent
- public class MvModelEvent
- extends java.lang.Object
Model event message.
Details: An MvModelEvent
s conveys information about an event that occurred in a model, an event in which the model's views may be interested. Instances of this class are typically sent from MvModels to MvViews through the notifyViews and updateView methods. MvModels are not required to use this object for messaging, but it is provided as a convenience.
An MvModelEvent is a triplet: (model, type, params). model identifies the model sending the message, type identifies the type of message, and params is a vector of data whose size, format, and interpretation depend on type.
- Since:
- 1999.08.05
- Author:
- Sharky
Field Summary |
protected java.lang.Object |
model
|
protected java.lang.Object[] |
params
|
protected int |
type
|
Constructor Summary |
MvModelEvent(java.lang.Object model,
int type,
java.lang.Object[] params)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
model
protected final java.lang.Object model
type
protected final int type
params
protected final java.lang.Object[] params
MvModelEvent
public MvModelEvent(java.lang.Object model,
int type,
java.lang.Object[] params)
getModel
public final java.lang.Object getModel()
getType
public final int getType()
getParamCount
public final int getParamCount()
getParam
public final java.lang.Object getParam(int i)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object