borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.model
borland.jbcl.model.VectorSelection +----borland.jbcl.model.WritableVectorSelection
Methods
Implemented by BasicVectorSelection, NullVectorSelection, SingleVectorSelection
The WritableVectorSelection interface provides read-write access to the set of selected locations within a vector model. Usually it is used to manage the selection set.
Most of the time you will use classes that implement WritableVectorSelection, such as BasicVectorSelection, NullVectorSelection, and SingleVectorSelection. You can implement the interface directly, however.
If you need read access only to a set of selected locations, you can use the VectorSelection interface instead.
void add(int location)Adds the location of a data item in the vector to the set of selected locations.
Parameters:
void add(int[] locations)Adds multiple locations to the set of selected locations.
Parameters:
void addRange(int begin, int end)Adds a range of locations to the set of selected locations.
Parameters:
void enableSelectionEvents(boolean enable)Determines whether the broadcasting of vector-selection events is enabled or disabled based on the value of the enable parameter.
Parameters:
void remove(int location)Removes the specified location from the set of selected locations.
Parameters:
void remove(int[] locations)Removes a specified array of locations from the set of selected locations.
Parameters:
void removeAll()Removes all locations from the set of selected locations.
void removeRange(int begin, int end)Removes a specified range of locations from the set of selected locations.
Parameters:
void set(int[] locations)Sets the selection pool to a given set of locations
Parameters: