|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.application.console.snapin.scope.MultiSelectNamespaceScope
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())
};
}
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 |
public MultiSelectNamespaceScope(java.lang.Object snapinType, java.lang.String namespace)
The snap-in types that can be used for the MultiSelectNamespaceScope are:
snapinType
- The type of the snap-in as defined above.namespace
- The uniqueID string for which the namespace applies.Method Detail |
public java.lang.Object getSnapinType()
Scope
public java.lang.String getNamespaceUniqueID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |