public abstract class IlvEventType extends Object
notify
, which is used to call a method in the
listener which is responsible for treating the defined event.
For instance,
public static IlvEventType StateAdded = new IlvEventType("StateAdded") { public void notify (EventListener listener, EventObject event) { ((IlvStateListener)listener).stateAdded((IlvStateModelEvent)event); } };
Modifier | Constructor and Description |
---|---|
protected |
IlvEventType(String name)
Creates a new event type.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of this event.
|
abstract void |
notify(EventListener listener,
EventObject event)
This method must be implemented by each type of event, to call the proper
method in the listener which is responsible for handling this event.
|
String |
toString()
Returns the String representation of this event type.
|
protected IlvEventType(String name)
public String getName()
public String toString()
public abstract void notify(EventListener listener, EventObject event)
fire...Event
in implementations of models
sending the event.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.