borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.model
java.lang.Object +----java.util.EventObject +----borland.jbcl.util.DispatchableEvent +----borland.jbcl.model.SubfocusEvent +----borland.jbcl.model.VectorSubfocusEvent
Variables Constructors Properties Methods
Implements VetoableDispatch, Serializable
A VectorSubfocusEvent object is created whenever a vector-subfocus event occurs. Vector-subfocus events occur when the subfocus changes within a vector model component.
VectorSubfocusEvent objects have two types of dispatch methods. dispatch() is used for subfocusChanged events, and vetoableDispatch() is used for subfocusChanging events.
public VectorSubfocusEvent(java.lang.Object source, int id, int location)Constructs the VectorSubfocusEvent and initializes the event id and location.
Parameters:
public int getLocation()Returns the location within the vector where the subfocus event occurred.
public void dispatch(java.util.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:
Overrides: borland.jbcl.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 index that specifies the position of the subfocus item within the vector.
Overrides: borland.jbcl.model.SubfocusEvent.paramString()