public interface CustomPopupMenuHandler extends TransientObject
Modifier and Type | Interface and Description |
---|---|
static interface |
CustomPopupMenuHandler.AddCustomPopupMenuCallback
This callback will be invoked by NX application when a RMB click is performed on
NX Tc Navigator application.
|
static interface |
CustomPopupMenuHandler.CustomPopupMenuInvokedCallback
This callback will be invoked by NX when user clicks on a custom menu item.
|
Modifier and Type | Method and Description |
---|---|
CustomPopupMenu |
addMenu(int menuId,
String menuName)
Adds and returns a menu to the COTS (Commercial, off-the-shelf) RMB menu
License requirements: None. |
CustomPopupMenuItem |
addMenuItem(int menuItemId,
String menuItemName)
Adds and returns a menu item to the COTS (Commercial, off-the-shelf) RMB menu
License requirements: None. |
void |
addMenuSeparator()
Adds a separator to the COTS (Commercial, off-the-shelf) RMB menu
License requirements: None. |
CustomPopupMenuItem |
getInvokedCommand()
Returns the menu item for the command invoked
License requirements: None. |
TreeListNode[] |
getSelectedNodes()
Returns a list of node(s) selected during a RMB click.
|
void |
registerAddCustomPopupMenuCallback(CustomPopupMenuHandler.AddCustomPopupMenuCallback popupCb)
Registers the add_custom_popup_menu_callback callback method with the popup menu
handler object.
|
void |
registerCustomPopupMenuInvokedCallback(CustomPopupMenuHandler.CustomPopupMenuInvokedCallback popupCb)
Registers the add_custom_popup_menu_callback callback method with the popup menu
handler object.
|
_value, dispose, printTestData, printTestData
void registerAddCustomPopupMenuCallback(CustomPopupMenuHandler.AddCustomPopupMenuCallback popupCb) throws NXException, RemoteException
popupCb
- NXException
RemoteException
void registerCustomPopupMenuInvokedCallback(CustomPopupMenuHandler.CustomPopupMenuInvokedCallback popupCb) throws NXException, RemoteException
popupCb
- NXException
RemoteException
TreeListNode[] getSelectedNodes() throws NXException, RemoteException
CustomPopupMenuHandler.AddCustomPopupMenuCallback
or
CustomPopupMenuHandler.CustomPopupMenuInvokedCallback
to obtain additional information
NXException
RemoteException
CustomPopupMenuItem getInvokedCommand() throws NXException, RemoteException
NXException
RemoteException
CustomPopupMenu addMenu(int menuId, String menuName) throws NXException, RemoteException
menuId
- Id of the menumenuName
- name of the menuNXException
RemoteException
CustomPopupMenuItem addMenuItem(int menuItemId, String menuItemName) throws NXException, RemoteException
menuItemId
- Id of the menu itemmenuItemName
- name of the menu itemNXException
RemoteException
void addMenuSeparator() throws NXException, RemoteException
NXException
RemoteException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.