IBM DB2 UDB
Plugin Interface
for Extending the Control Center

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


public interface CCToolbarAction

The CCToolbarAction interface allows users to define a new action to be added to the Control Center toolbar.


Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Invoked when an action occurs.
 java.lang.String getHoverHelpText()
          Get the name of this action.
 javax.swing.ImageIcon getIcon()
          Get the icon for the toolbar button.
 

Method Detail

getHoverHelpText

public java.lang.String getHoverHelpText()
Get the name of this action. This name will appear in the Tools menu and in the toolbar button hover help.

Returns:
the text to appear in the Tools menu item and the toolbar button hover help

getIcon

public javax.swing.ImageIcon getIcon()
Get the icon for the toolbar button. CCToolbarAction objects should implement this method and return a valid ImageIcon object. Otherwise, the toolbar button will have no icon.

Returns:
the ImageIcon Icon to be displayed

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs.

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.