IBM DB2 UDB
Plugin Interface
for Extending the Control Center

com.ibm.db2.tools.cc.navigator
Interface CCMenuAction


public interface CCMenuAction

The CCMenuAction interface allows users to define a new menu item to be added to a Control Center object. By default, new menu items will be added at the end of an object's popup menu but before any Refresh and Filter menu items. The Positionable interface can be used to override the default behavior to control the position of the popup menu item.

Note: If the object has a Control Center Refresh or Filter menu item, the new menu item will be inserted before the Refresh and Filter menu. The Control Center Refresh and Filter menu items are always at the end of the popup menu.

See Also:
CCDefaultMenuAction, MultiSelectable, Positionable, Separator, SubMenuParent

Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Invoked when an action occurs.
 java.lang.String getMenuText()
          Get the name of this action
 

Method Detail

getMenuText

public java.lang.String getMenuText()
Get the name of this action

Returns:
the text of the menu item

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs. For new plugin objects, e.getSource() returns a Vector of the selected objects. For existing Control Center objects, e.getSource() returns this CCMenuAction object. Use e.getActionCommand() to get the name of the selected object.

Parameters:
e - Action event

IBM DB2 UDB
Plugin Interface
for Extending the Control Center

(C)Copyright IBM Corp. 2002, 2004. All rights reserved.

Links on this page are made available for your convenience and may take you to non-IBM sites. IBM does not warrant any sample code provided on these sites.