borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.model 

SelectionEvent class (abstract)

java.lang.Object
   +----java.util.EventObject
           +----borland.jbcl.util.DispatchableEvent
                   +----borland.jbcl.model.SelectionEvent
                           +----borland.jbcl.model.VectorSelectionEvent
                           +----borland.jbcl.model.MatrixSelectionEvent
                           +----borland.jbcl.model.GraphSelectionEvent

About the SelectionEvent class

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.

See also: Selecting items in composite components


SelectionEvent variables

Variables implemented in this class

Variables implemented in java.util.EventObject

SelectionEvent constructors

SelectionEvent properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.util.DispatchableEvent

Properties implemented in java.lang.Object

Properties implemented in java.util.EventObject

SelectionEvent methods

Methods implemented in this class

Methods implemented in borland.jbcl.util.DispatchableEvent

Methods implemented in java.lang.Object


SelectionEvent variables

ITEM_ADDED

  public static final int ITEM_ADDED = ITEM_CHANGE | 0x0001
An item was added to the set of selected items. This is an item change event.

ITEM_CHANGE

  public static final int ITEM_CHANGE = 0x1000
An item in the set of selected items was modified. This is an item change event.

ITEM_REMOVED

  public static final int ITEM_REMOVED = ITEM_CHANGE | 0x0002
An item was removed from the set of selected items. This is an item change event.

RANGE_ADDED

  public static final int RANGE_ADDED = RANGE_CHANGE | 0x0001
A range of items was added to the set of selected items. This is a range change event.

RANGE_CHANGE

  public static final int RANGE_CHANGE = 0x2000
The range of selected items changes. This is a range change event.

RANGE_REMOVED

  public static final int RANGE_REMOVED = RANGE_CHANGE | 0x0002
A range of items was removed from the set of selected items. This is a range change event.

SELECTION_CHANGE

  public static final int SELECTION_CHANGE = 0x3000
The change is occurring within the set of selected items. This is a selection change event.

SELECTION_CHANGED

  public static final int SELECTION_CHANGED = SELECTION_CHANGE | 0x0002
A change occurred within the set of selected items. This is a selection change event.

SELECTION_CLEARED

  public static final int SELECTION_CLEARED = SELECTION_CHANGE | 0x0001
All items from the set of selected items are removed. This is a selection change event.

SelectionEvent constructors

SelectionEvent(java.lang.Object, int)

  public SelectionEvent(java.lang.Object source, int change)
Constructs a SelectionEvent object.

Parameters:

source
The object that fires the event.
change
The type of event that occurred. change must be one of the SelectionEvent variables.

SelectionEvent properties

ID

 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.

change

 public int getChange()
Returns an integer that identifies the specific type of event. The returned value represents one of the SelectionEvent variables.

SelectionEvent methods

paramString()

  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()