com.novell.application.console.snapin.context
Class ViewSnapinContext

java.lang.Object
  |
  +--com.novell.application.console.snapin.context.SnapinContext
        |
        +--com.novell.application.console.snapin.context.ViewSnapinContext

public class ViewSnapinContext
extends SnapinContext

Contains information about the state of the Object Browser window on calls to the getView() method.

A ViewSnapinContext object is used by a View snap-in to obtain context information about the state of the Object Browser window upon calls to the ViewSnapin getView() method. The getView() method is called with a ViewSnapinContext parameter. Calling the ViewSnapinContext getObjectEntry() method returns the currently selected ObjectEntry in the Object Browser window for which a view is needed.

Note: The current Object Browser context is also stored in the InitSnapin info parameter supplied to the initSnapin() method during ViewSnapin initalization. A call to the getSnapinContext() method will return a valid ViewSnapinContext for that point in time. But the context can change between initialization and the call to the getView() method. Therefore, the context should be obtained from the ViewSnapinContext parameter supplied in the getView() call and not from the context provided during initialization.

See Also:
ViewSnapin.getView(ViewSnapinContext)

Field Summary
protected  ResultModifier resultModifier
           
protected  Shell shell
           
 
Method Summary
 ObjectEntry getObjectEntry()
          Returns the currently selected ObjectEntry in the Object Browser window for which a view is needed.
 ResultModifier getResultModifier()
          Returns the current result modifier being applied to this view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resultModifier

protected ResultModifier resultModifier

shell

protected Shell shell
Method Detail

getObjectEntry

public ObjectEntry getObjectEntry()
Returns the currently selected ObjectEntry in the Object Browser window for which a view is needed.
Returns:
The currently selected ObjectEntry.

getResultModifier

public ResultModifier getResultModifier()
Returns the current result modifier being applied to this view.
Returns:
The current resultModifier.


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