oracle.ide.view
Class ViewSelectionEvent
java.lang.Object
java.util.EventObject
oracle.ide.view.ViewSelectionEvent
- All Implemented Interfaces:
- java.io.Serializable
- public final class ViewSelectionEvent
- extends java.util.EventObject
The ViewSelectionEvent is used to indicate that the selection held by the
a View has been modified. Interested parties are granted access to: the
View upon which the event occured, the complete selection held by the View
at the time of the event and optionally the delta Elements which were added
or removed from the selection (as indicated by the result of getID()).
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
ViewSelectionEvent(View view)
Creates a ViewSelectionEvent whose selection is initialized to the
View's current selection. |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EMPTY_SELECTION
public static final Element[] EMPTY_SELECTION
ViewSelectionEvent
public ViewSelectionEvent(View view)
- Creates a ViewSelectionEvent whose selection is initialized to the
View's current selection.
- Parameters:
view - the View whose selection has changed.
getView
public View getView()
- Returns the View whose selection has changed. This is equivalent
to casting the return value of getSource() to
View.
- Returns:
- the View whose selection has changed.
getSelection
public Element[] getSelection()
- Returns the new selection in the View.
- Returns:
- an array of selected Elements.
Copyright © 1997, 2005, Oracle.All rights reserved.