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

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

public class MultiSelectNamespaceScope
extends java.lang.Object
implements Scope

Defines a scope that is restricted to the namespace specified at registration.

It is also restricted to appear only when more than one object is selected.

Popup Menu, Menu, Toolbar Status Bar and Dynamic snap-ins may be registered with the MultiSelectNamespaceScope scope. When registered, the functionality provided by these snap-ins becomes active when more than one object in the namespace specified at registration is selected (highlighed) by the user.

The following code snippet shows an example of registering a view snap-in and a specified namespace with the MultiSelectNamespaceScope scope.


      public RegistrationItem[] getRegistration()
      {
          NamespaceScope scope;
          scope = new MultiSelectNamespaceScope(Shell.SNAPIN_TOOLBAR, 
                                                "Namespace UniqueID");
          return new RegistrationItem[]
          {
              new RegistrationItem(scope, getClass().getName())
          };
      }
 

See Also:
Scope

Constructor Summary
MultiSelectNamespaceScope(java.lang.Object snapinType, java.lang.String namespace)
          Builds a MultiSelectNamespaceScope for the specified snapinType, which is restricted to the namespace specified at registration and will work only with more than one selection.
 
Method Summary
 java.lang.String getNamespaceUniqueID()
          Returns the namespace unique ID for this scope instance.
 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

MultiSelectNamespaceScope

public MultiSelectNamespaceScope(java.lang.Object snapinType,
                                 java.lang.String namespace)
Builds a MultiSelectNamespaceScope for the specified snapinType, which is restricted to the namespace specified at registration and will work only with more than one selection.

The snap-in types that can be used for the MultiSelectNamespaceScope are:

Parameters:
snapinType - The type of the snap-in as defined above.
namespace - The uniqueID string for which the namespace applies.
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

getNamespaceUniqueID

public java.lang.String getNamespaceUniqueID()
Returns the namespace unique ID for this scope instance.
Returns:
The unique ID of the specified namespace.


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