Extension SDK 10.1.2

oracle.ide.addin
Class ViewEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byoracle.ide.addin.ViewEvent
All Implemented Interfaces:
java.io.Serializable

public final class ViewEvent
extends java.util.EventObject

The ViewEvent is used to indicate that state of a View has been modified.

See Also:
Serialized Form

Field Summary
static int VIEW_ACTIVATED
          Constant indicating the view was just activated.
static int VIEW_CLOSED
          Constant indicating the view was just closed.
static int VIEW_DEACTIVATED
          Constant indicating the view was just deactivated.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ViewEvent(View view, int id)
          Constructor.
 
Method Summary
 int getID()
          Determine what type of change occurred.
 View getView()
          Get the View whose state 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

VIEW_ACTIVATED

public static final int VIEW_ACTIVATED
Constant indicating the view was just activated.

See Also:
Constant Field Values

VIEW_DEACTIVATED

public static final int VIEW_DEACTIVATED
Constant indicating the view was just deactivated.

See Also:
Constant Field Values

VIEW_CLOSED

public static final int VIEW_CLOSED
Constant indicating the view was just closed.

See Also:
Constant Field Values
Constructor Detail

ViewEvent

public ViewEvent(View view,
                 int id)
Constructor.

Parameters:
view - the View whose state has been altered.
id - the ID number of the event type. The value can be any of the following constants: VIEW_ACTIVATED, VIEW_DEACTIVATED, or VIEW_CLOSED.
Throws:
java.lang.IllegalArgumentException - if the id parameter is not one of the predefined constants.
Method Detail

getID

public int getID()
Determine what type of change occurred.

Returns:
the id of the event.

getView

public View getView()
Get the View whose state has changed. This is functionally equivalent to casting the result of getSource() to a View object.

Returns:
the View whose state has changed.

Extension SDK

 

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