borland Packages Class Hierarchy jbcl.model Package Index
java.lang.Object +----java.util.EventObject +----borland.jbcl.util.DispatchableEvent +----borland.jbcl.model.ModelEvent +----borland.jbcl.model.SingletonModelEvent +----borland.jbcl.model.VectorModelEvent +----borland.jbcl.model.MatrixModelEvent +----borland.jbcl.model.GraphModelEvent
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(java.lang.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:
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: borland.jbcl.util.DispatchableEvent.paramString()