Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.ide.view
Class ViewSelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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

Field Summary
static Element[] EMPTY_SELECTION
           
 
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.
 
Method Summary
 Element[] getSelection()
          Returns the new selection in the View.
 View getView()
          Returns the View whose selection has changed.
 
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
 

Field Detail

EMPTY_SELECTION

public static final Element[] EMPTY_SELECTION
Constructor Detail

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.
Method Detail

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.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.