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

BasicVectorSelection component

java.lang.Object
   +----borland.jbcl.model.BasicSelection
           +----borland.jbcl.model.BasicVectorSelection

About the BasicVectorSelection component

Variables  Constructors  Properties  Methods  Event Listeners

Implements VectorSelection, WritableVectorSelection

The BasicVectorSelection class implements a basic WritableVectorSelection interface and supports the selection of multiple locations at once time.


BasicVectorSelection variables

Variables implemented in borland.jbcl.model.BasicSelection

BasicVectorSelection constructors

BasicVectorSelection properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.model.BasicSelection

Properties implemented in java.lang.Object

BasicVectorSelection methods

Methods implemented in this class

Methods implemented in borland.jbcl.model.BasicSelection

Methods implemented in java.lang.Object

BasicVectorSelection event listeners


BasicVectorSelection constructors

BasicVectorSelection()

  public BasicVectorSelection()
Constructs a BasicVectorSelection class.

BasicVectorSelection(int[])

  public BasicVectorSelection(int[] newSet)
Constructs a BasicVectorSelection class and sets the values of the set of selected locations to the array specified as newSet.

Parameters:

newSet
An array of locations, which are zero-based indexes.

BasicVectorSelection properties

all

 public int[] getAll()
Returns all selected locations as an array.

BasicVectorSelection methods

processSelectionEvent(borland.jbcl.model.VectorSelectionEvent)

  protected void processSelectionEvent(borland.jbcl.model.VectorSelectionEvent e)
If the broadcasting of vector-selection events is enabled and there are listeners for vector-selection events, the dispatch() methods of the vector-selection listeners are called.

Parameters:

e
The vector-selection event object sent to the listeners.

BasicVectorSelection event listeners

This component is a source for the following event sets. For information on the JBCL event sets, see Events in JBCL.

selection

 public void addSelectionListener(borland.jbcl.model.VectorSelectionListener listener)
 public void removeSelectionListener(borland.jbcl.model.VectorSelectionListener listener)