com.novell.application.console.snapin
Class ShellSelectionEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.novell.application.console.snapin.ShellSelectionEvent
All Implemented Interfaces:
java.io.Serializable

public class ShellSelectionEvent
extends java.util.EventObject

Defines a shell selection event.

A shell selection event may consists of selection change or other such event.

See Also:
ShellSelectionListener, ShellSelectionAdapter

Field Summary
static int FOCUS_STATE_TREE
          Tree currently has focus.
static int FOCUS_STATE_VIEW
          View currently has focus.
static int SELECTION_CHANGE
          Selection change occured.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ShellSelectionEvent(ObjectEntryCollection collection, int id, int focus)
          Creates a shell selection event object.
 
Method Summary
 int getFocusState()
          Returns which panel in ConsoleOne currently has focus, the tree or the view - (ShellEvent.FOCUS_STATE_TREE or ShellEvent.FOCUS_STATE_VIEW)
 int getID()
          Returns the action performed.
 ObjectEntryCollection getObjectCollection()
          Returns the ObjectEntryCollection containing the objects associated with this event.
 
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

SELECTION_CHANGE

public static final int SELECTION_CHANGE
Selection change occured.

(SELECTION_CHANGE = 5)


FOCUS_STATE_TREE

public static final int FOCUS_STATE_TREE
Tree currently has focus. May be returned from getFocusState().

(FOCUS_STATE_TREE = Shell.FOCUS_TREE)


FOCUS_STATE_VIEW

public static final int FOCUS_STATE_VIEW
View currently has focus. May be returned from getFocusState().

(FOCUS_STATE_VIEW = Shell.FOCUS_VIEW)

Constructor Detail

ShellSelectionEvent

public ShellSelectionEvent(ObjectEntryCollection collection,
                           int id,
                           int focus)
Creates a shell selection event object.
Parameters:
object - The ObjectEntry array associated with the event.
id - An integer specifying the action that occurred on the event.
focus - A FOCUS_STATE_* constant that specifies whether the view or the tree currently has focus.
See Also:
SELECTION_CHANGE
Method Detail

getID

public int getID()
Returns the action performed.
Returns:
An integer representing the action performed.
See Also:
SELECTION_CHANGE

getFocusState

public int getFocusState()
Returns which panel in ConsoleOne currently has focus, the tree or the view - (ShellEvent.FOCUS_STATE_TREE or ShellEvent.FOCUS_STATE_VIEW)
Returns:
The panel that has focus when this event was fired.

getObjectCollection

public ObjectEntryCollection getObjectCollection()
Returns the ObjectEntryCollection containing the objects associated with this event.
Returns:
The ObjectEntryCollection containing the objects associated with this event.


API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.