com.novell.application.console.snapin.scope
Class PreferenceScope

java.lang.Object
  |
  +--com.novell.application.console.snapin.scope.PreferenceScope
All Implemented Interfaces:
Scope, java.io.Serializable

public class PreferenceScope
extends java.lang.Object
implements Scope

Defines a scope for the Preference Property Book.

Only Snap-ins of type Shell.SNAPIN_PAGE may be registered with the PreferenceScope. When registered, the functionality provided by these snap-ins are active when the user selects Preferences from the Tools menu.

The following code snippet is an example of registering a page snap-in with the PreferenceScope.


      public RegistrationItem[] getRegistration()
      {
          PreferenceScope scope = new PreferenceScope();
          return new RegistrationItem[]
          {
              new RegistrationItem(scope, getClass().getName())
          };
      }
 

See Also:
Scope

Constructor Summary
PreferenceScope()
          Builds a PreferenceScope for a Shell.SNAPIN_PAGE
 
Method Summary
 java.lang.Object getSnapinType()
          Returns the snap-in type object that was passed in the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferenceScope

public PreferenceScope()
Builds a PreferenceScope for a Shell.SNAPIN_PAGE
Method Detail

getSnapinType

public java.lang.Object getSnapinType()
Returns the snap-in type object that was passed in the constructor.
Specified by:
getSnapinType in interface Scope
Returns:
The snap-in type object.
See Also:
Scope


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