borland Packages Class Hierarchy jbcl.model Package Index
java.lang.Object +----java.util.EventObject +----borland.jbcl.util.DispatchableEvent +----borland.jbcl.model.SelectionEvent +----borland.jbcl.model.MatrixSelectionEvent +----borland.jbcl.model.GraphSelectionEvent +----borland.jbcl.model.VectorSelectionEvent
Variables Constructors Properties Methods
Implements Serializable
A SelectionEvent object is created whenever a selection event occurs. Selection events occur when one or more data objects are selected within a component. The id property specifies what causes the event, a selectionChange, an itemChange, or a rangeChange.
public static final int ITEM_ADDED = ITEM_CHANGE | 0x0001An item was added to the set of selected items. This is an item change event.
public static final int ITEM_CHANGE = 0x1000An item in the set of selected items was modified. This is an item change event.
public static final int ITEM_REMOVED = ITEM_CHANGE | 0x0002An item was removed from the set of selected items. This is an item change event.
public static final int RANGE_ADDED = RANGE_CHANGE | 0x0001A range of items was added to the set of selected items. This is a range change event.
public static final int RANGE_CHANGE = 0x2000The range of selected items changes. This is a range change event.
public static final int RANGE_REMOVED = RANGE_CHANGE | 0x0002A range of items was removed from the set of selected items. This is a range change event.
public static final int SELECTION_CHANGE = 0x3000The change is occurring within the set of selected items. This is a selection change event.
public static final int SELECTION_CHANGED = SELECTION_CHANGE | 0x0002A change occurred within the set of selected items. This is a selection change event.
public static final int SELECTION_CLEARED = SELECTION_CHANGE | 0x0001All items from the set of selected items are removed. This is a selection change event.
public SelectionEvent(java.lang.Object source, int change)Constructs a SelectionEvent object.
Parameters:
public int getChange()Returns an integer that identifies the specific type of event. The returned value represents one of the SelectionEvent variables.
public int getID()Returns an integer that identifies the basic type of event. The returned value represents one of the ITEM_CHANGE, RANGE_CHANGE, or SELECTION_CHANGE variables.
protected String paramString()Returns the parameter string of the subfocus event. The parameter string will be:
"change=" + changeString
where changeString is one of the SelectionEvent variables displayed as a string.
Overrides: borland.jbcl.util.DispatchableEvent.paramString()