jbcl.model Package
java.lang.Object +----com.borland.jbcl.model.BasicSelection +----com.borland.jbcl.model.BasicVectorSelection
Variables Constructors Properties Methods Event Listeners
Implements VectorSelection, WritableVectorSelection, Serializable
The BasicVectorSelection
class implements a basic WritableVectorSelection
interface and supports the selection of multiple locations at once time.
public BasicVectorSelection()Constructs a
BasicVectorSelection
class.
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
public int[] getAll()Returns all selected locations as an array.
protected void processSelectionEvent(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
public void addSelectionListener(VectorSelectionListener listener) public void removeSelectionListener(VectorSelectionListener listener)