All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.ibm.beans.charting.ChartGUIHandler

java.lang.Object
   |
   +----COM.ibm.desktop.GUIHandler
           |
           +----COM.ibm.beans.charting.ChartGUIHandler

public class ChartGUIHandler
extends GUIHandler
The GUIHandler for the Charting components, provides the GUI and event management for the charting components. It creates a custom menu for the Charting components and adds a "View As" menu for enabling the user to view the chart in any of the available forms, viz., Vertical & Horizontal Bar Charts, Line Chart or Pie Chart. It also handles selection of menu items in this custom menu, and notifies the ComponentController to switch to the new view.


Constructor Index

 o ChartGUIHandler(ComponentController)
Constructs a GUIHandler for the specified ComponentController.

Method Index

 o actionPerformed(ActionEvent)
The GUIHandler handles the selection of menu items in the menu bar, and in particular, notifies the ComponentController that a new view has been selected for the chart.
 o handleCreateFileMenu()
Invoked by the framework during initialization of a Charting component.
 o handleCreateMenuBar()
Invoked by the framework during initialization of a Charting Component.
 o handleCreateMenus(MenuBar)
Invoked by the framework during initialization of a Charting component.
 o handleCreateToolButtons(TToolBar)
Invoked by the framework during initialization.

Constructors

 o ChartGUIHandler
 public ChartGUIHandler(ComponentController controller)
Constructs a GUIHandler for the specified ComponentController.

Parameters:
controller - the ComponentController for this GUIHandler

Methods

 o handleCreateMenuBar
 protected MenuBar handleCreateMenuBar()
Invoked by the framework during initialization of a Charting Component. This method is overridden here to create a custom menu bar, that has an additional "View As" menu and no Edit menu.

Overrides:
handleCreateMenuBar in class GUIHandler
 o handleCreateFileMenu
 protected Menu handleCreateFileMenu()
Invoked by the framework during initialization of a Charting component. This method is overridden here to create a File Menu that has only the "Exit" menu item.

Overrides:
handleCreateFileMenu in class GUIHandler
 o handleCreateMenus
 protected void handleCreateMenus(MenuBar menuBar)
Invoked by the framework during initialization of a Charting component. This method is overridden here so as to create a customized "View As" menu to add to the menu bar.

Parameters:
menuBar - is the Menu Bar to which our custom menu is to be added.
Overrides:
handleCreateMenus in class GUIHandler
 o handleCreateToolButtons
 protected void handleCreateToolButtons(TToolBar toolbar)
Invoked by the framework during initialization. Overriding this method to add the tool buttons for the various charts.

Overrides:
handleCreateToolButtons in class GUIHandler
 o actionPerformed
 public void actionPerformed(ActionEvent e)
The GUIHandler handles the selection of menu items in the menu bar, and in particular, notifies the ComponentController that a new view has been selected for the chart.

Parameters:
e - is the action event that occured
Overrides:
actionPerformed in class GUIHandler

All Packages  Class Hierarchy  This Package  Previous  Next  Index