jbcl.model Package
java.lang.Object +----java.util.EventObject +----com.borland.jb.util.DispatchableEvent +----com.borland.jbcl.model.ModelEvent +----com.borland.jbcl.model.GraphModelEvent +----com.borland.jbcl.model.MatrixModelEvent +----com.borland.jbcl.model.SingletonModelEvent +----com.borland.jbcl.model.VectorModelEvent
Variables Constructors Properties Methods
Implements Serializable
ModelEvent
is an abstract class that other model-event classes extend. It contains the variables that identify the basic type of event that occurred: a content change or a structure change within the model. These variables are the possible values of the ID
property. The ModelEvent
object has a paramString()
method that displays the parameters of the event object.
public static final int CONTENT_CHANGED = 0x0001Used to indicate that the content within the model changed. For example, a data item was edited.
public static final int STRUCTURE_CHANGED = 0x0002Used to indicate that the structure within the model changed. For example, a new item was added to the list in a
VectorModel
object or a row was added to the matrix in a MatrixModel
object.
public ModelEvent(Object source, int id)Constructs a model event object and passes the object specified as the
source
to its superclass and initializes the ID
property.
Parameters:
source
id
ModelEvent
variables.
public int getID()Returns the event-type ID for the event. The integer returned is one of the
ModelEvent
variables.
protected String paramString()Displays the parameters of the event as a string. The string is this:
"id=" + idString
where idString
is one of the ModelEvent
variables.
Classes that extend ModelEvent
override paramString()
by first calling paramString()
of ModelEvent
and then appending their unique parameters to the string.
Overrides: com.borland.jb.util.DispatchableEvent.paramString()