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.
-
ChartGUIHandler(ComponentController)
- Constructs a GUIHandler for the specified ComponentController.
-
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.
-
handleCreateFileMenu()
- Invoked by the framework during initialization of a Charting component.
-
handleCreateMenuBar()
- Invoked by the framework during initialization of a Charting Component.
-
handleCreateMenus(MenuBar)
- Invoked by the framework during initialization of a Charting component.
-
handleCreateToolButtons(TToolBar)
- Invoked by the framework during initialization.
ChartGUIHandler
public ChartGUIHandler(ComponentController controller)
- Constructs a GUIHandler for the specified ComponentController.
- Parameters:
- controller - the ComponentController for this GUIHandler
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
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
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
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
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