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 +----borland.jbcl.model.MatrixSubfocusEvent +----borland.jbcl.model.GraphSubfocusEvent
Variables Constructors Properties Methods
Implements Serializable
A SubfocusEvent object is created whenever a subfocus event occurs. Subfocus events occur when the subfocus changes within a component. The ID property specifies what creates the event, a subfocusChange event or a subfocusChanging event. A subfocusChanging event permits registered listeners to veto the subfocusChanged event. If, on receipt of a subfocusChanging event, a listener throws an EventVetoException, the focus does not move to the new item and the subfocusChanged event does not occur.
public static final int SUBFOCUS_CHANGED = 2Indicates that the subfocus has changed.
public static final int SUBFOCUS_CHANGING = 1Indicates that the subfocus is changing. Registered listeners have the opportunity to veto the change.
public SubfocusEvent(java.lang.Object source, int id)Constructs a SubfocusEvent object.
Parameters:
public int getID()Returns the ID of the subfocus event as an integer. The integer represents on the SubfocusEvent variables.
protected String paramString()Returns the parameter string of the subfocus event. The parameter string will be:
"id=" + idString
where idString is one of the SubfocusEvent variables displayed as a string.
Overrides: borland.jbcl.util.DispatchableEvent.paramString()