jbcl.model Package
java.lang.Object +----java.util.EventObject +----com.borland.jb.util.DispatchableEvent +----com.borland.jbcl.model.SubfocusEvent +----com.borland.jbcl.model.GraphSubfocusEvent +----com.borland.jbcl.model.MatrixSubfocusEvent +----com.borland.jbcl.model.VectorSubfocusEvent
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(Object source, int id)Constructs a
SubfocusEvent
object.
Parameters:
source
id
ID
as an integer and select one of the SubfocusEvent
constants.
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: com.borland.jb.util.DispatchableEvent.paramString()