Modifier and Type | Interface and Description |
---|---|
static interface |
MenuBarManager.ActionCallback
Prototype for the action callbacks
|
static class |
MenuBarManager.CallbackStatus
Return values for action callbacks
|
static interface |
MenuBarManager.ConfigureContextMenu
Prototype for the callback used to configure a context menu.
|
static interface |
MenuBarManager.EnterMenuApplication
Prototype for callback called whenever the application is entered
|
static interface |
MenuBarManager.ExitMenuApplication
Prototype for callback called whenever the application is exited
|
static interface |
MenuBarManager.InitializeMenuApplication
Prototype for application initialization callback
|
Modifier and Type | Method and Description |
---|---|
void |
addMenuAction(String name,
MenuBarManager.ActionCallback actionCallback)
Adds the action callback.
|
void |
applicationSwitchRequest(String applicationName)
Deprecated.
Deprecated in NX11.0.0. Use
Session.applicationSwitchImmediate(java.lang.String) instead.
|
MenuButton |
getButtonFromName(String name)
Finds the MenuButton associated with the given name
License requirements: None. |
int |
registerApplication(String name,
MenuBarManager.InitializeMenuApplication initializeCallback,
MenuBarManager.EnterMenuApplication enterCallback,
MenuBarManager.ExitMenuApplication exitCallback,
boolean supportsDrawings,
boolean supportsDesignInContext,
boolean supportsUndo)
Registers the application
License requirements: None. |
int |
registerConfigureContextMenuCallback(String name,
String description,
MenuBarManager.ConfigureContextMenu configurePopupMenu)
Registers a callback that is called whenever a customizable context
menu is about to be displayed.
|
void |
unregisterConfigureContextMenuCallback(int id)
Unregisters a callback for customizing context menus.
|
void addMenuAction(String name, MenuBarManager.ActionCallback actionCallback) throws NXException, RemoteException
name
- The name of the action. This name must match the string used in the .men file.actionCallback
- The method to execute for this actionNXException
RemoteException
MenuButton getButtonFromName(String name) throws NXException, RemoteException
name
- The name of the button. This name must match the button name used in the .men file.NXException
RemoteException
int registerApplication(String name, MenuBarManager.InitializeMenuApplication initializeCallback, MenuBarManager.EnterMenuApplication enterCallback, MenuBarManager.ExitMenuApplication exitCallback, boolean supportsDrawings, boolean supportsDesignInContext, boolean supportsUndo) throws NXException, RemoteException
name
- The name of the application. This name must match the string used in the .men file.initializeCallback
- The method used to initialize the applicationenterCallback
- The method called when entering the applicationexitCallback
- The method called when exiting the applicationsupportsDrawings
- Does this application support drawings?supportsDesignInContext
- Does this application support design in context?supportsUndo
- Does this application support undo?NXException
RemoteException
void applicationSwitchRequest(String applicationName) throws NXException, RemoteException
Session.applicationSwitchImmediate(java.lang.String)
instead.
applicationName
- Button name of requested application
NXException
RemoteException
int registerConfigureContextMenuCallback(String name, String description, MenuBarManager.ConfigureContextMenu configurePopupMenu) throws NXException, RemoteException
name
- A short string identifying the callbackdescription
- A longer string describing the operation of the callbackconfigurePopupMenu
- Callback to registerNXException
RemoteException
void unregisterConfigureContextMenuCallback(int id) throws NXException, RemoteException
id
- Identifier for callback to unregisterNXException
RemoteException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.