|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
oracle.ide.addin.ViewSelectionEvent
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()).
Field Summary | |
static Element[] |
EMPTY_SELECTION
|
static int |
SELECTION_ADDED
|
static int |
SELECTION_CHANGED
|
static int |
SELECTION_REMOVED
|
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
ViewSelectionEvent(View view)
Constructor. |
|
ViewSelectionEvent(View view,
int id)
Constructor. |
|
ViewSelectionEvent(View view,
int id,
Element[] delta)
Constructor. |
Method Summary | |
Element[] |
getDelta()
Get the delta to the selection of the View as it was at the time of the creation of this event. |
int |
getID()
Determine what type of change occurred. |
Element[] |
getSelection()
Get the selection of the View as it was at the time of the creation of this event. |
View |
getView()
Get 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 |
public static final Element[] EMPTY_SELECTION
public static final int SELECTION_ADDED
public static final int SELECTION_REMOVED
public static final int SELECTION_CHANGED
Constructor Detail |
public ViewSelectionEvent(View view)
view
- the View whose selection has changed.public ViewSelectionEvent(View view, int id)
view
- the View whose selection has changed.id
- indication of what type of change has occured.public ViewSelectionEvent(View view, int id, Element[] delta)
view
- the View whose selection has changed.id
- indication of what type of change has occured.delta
- the actual Elements that were added/removed.Method Detail |
public int getID()
public View getView()
public Element[] getSelection()
public Element[] getDelta()
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.