borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.model
java.lang.Object +----java.util.EventObject +----borland.jbcl.util.DispatchableEvent +----borland.jbcl.model.SelectionEvent +----borland.jbcl.model.VectorSelectionEvent
Variables Constructors Properties Methods
Implements Serializable
A VectorSelectionEvent object is created whenever a vector-selection event occurs. Vector-selection events occur when data objects are added or removed from the set of selected locations in a vector model. The ID property specifies what creates the event. The possibilities can be any change in the selection set, a change at a specified location in the selection set, or a change of a range within a selection set.
public VectorSelectionEvent(borland.jbcl.model.VectorSelection selection, int change)Constructs a vector-selection event object using the passed selection object and the type of change that occurred to that selection.
Parameters:
public VectorSelectionEvent(borland.jbcl.model.VectorSelection selection, int change, int location)Constructs a vector-selection event object using the passed selection object , the type of change that occurred to that selection, and the location where the change occurred. Such an event object is used when a data item at the specified location changes.
Parameters:
public VectorSelectionEvent(borland.jbcl.model.VectorSelection selection, int change, int rangeStart, int rangeEnd)Constructs a vector-selection event object using the passed selection object , the type of change that occurred to that selection, the beginning of the range that changed, and the end of the range that changed. Such an event object is used when the range of selected locations changes.
Parameters:
public int getLocation()Returns the location where the vector-selection event occurred.
public int getRangeEnd()Returns the final location in the range of locations where the vector-selection event occurred. The returned integer is a zero-based index into the vector.
public int getRangeStart()Returns the first location in the range of locations where the vector-selection event occurred. The returned integer is a zero-based index into the vector.
public VectorSelection getSelection()Returns the set of currently selection locations within the vector.
public void dispatch(java.util.EventListener listener)Calls methods in the listening object passing this vector-selection event object. Which method is called depends on the type of vector-selection event occurred. If the event ID is ITEM_CHANGE, selectionItemChanged() is called. If the event ID is RANGE_CHANGE, selectionRangeChanged() is called. If the event ID is SELECTION_CHANGE , selectionChanged() is called.
Parameters:
Overrides: borland.jbcl.util.DispatchableEvent.dispatch(EventListener)
protected String paramString()Appends the vector-selection event object's parameter string to the parameter string of the superclass. The string that is appended is:
",selection=" + selection + ",location=" + location + ",rangeStart=" + rangeStart + ",rangeEnd=" + rangeEnd
See also borland.jbcl.model.SelectionEvent.paramString()