jbcl.model Package
java.lang.Object +----java.util.EventObject +----com.borland.jb.util.DispatchableEvent +----com.borland.jbcl.model.SubfocusEvent +----com.borland.jbcl.model.GraphSubfocusEvent
Variables Constructors Properties Methods
Implements VetoableDispatch, Serializable
A GraphSubfocusEvent
object is created whenever a graph-subfocus event occurs. Graph-subfocus events occur when the subfocus changes from one node to another within a graph model component.
GraphSubfocusEvent
objects have two types of dispatch methods. dispatch()
is used for subfocusChanged
events, and vetoableDispatch()
is used for subfocusChanging
events.
public GraphSubfocusEvent(Object source, int id, GraphLocation location)Constructs the
GraphSubfocusEvent
and initializes the event id
and location
.
Parameters:
source
id
id
is one of the SubfocusEvent variables.
location
GraphLocation
object that identifies the node within the graph where the event occurred.
public GraphLocation getLocation()Returns the node within the graph where the subfocus event occurred.
public void dispatch(EventListener listener)If the event is a
subfocusChanged
event, calls the subfocusChanged()
method of the listening object, passing the event object to the method.
Parameters:
listener
Overrides: com.borland.jb.util.DispatchableEvent.dispatch(EventListener)
protected String paramString()Appends the parameter string for the subfocus event object to the parameter string of the superclass and returns the entire string. The string appended is:
",location=" + location
where location is the GraphLocation
object that specifies the node with the subfocus within the graph.
Overrides: com.borland.jbcl.model.SubfocusEvent.paramString()