Class MainKFPerspectiveToolBar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class MainKFPerspectiveToolBar extends JPanel
Class that provides the main editing widget toolbar and menu items
Version:
$Revision: $
Author:
Mark Hall (mhall{[at]}pentaho{[dot]}com)
See Also:
  • Field Details

    • ICON_PATH

      public static String ICON_PATH
      Path to the icons for the toolbar
  • Constructor Details

    • MainKFPerspectiveToolBar

      public MainKFPerspectiveToolBar(MainKFPerspective mainKFPerspective)
      Constructor
      Parameters:
      mainKFPerspective - the main knowledge flow perspective
  • Method Details

    • enableWidget

      public void enableWidget(String widgetName, boolean enable)
      Enable/disable a named widget
      Parameters:
      widgetName - the name of the widget to enable/disable
      enable - true if the widget should be enabled; false otherwise
    • enableWidgets

      public void enableWidgets(String... widgetNames)
    • disableWidgets

      public void disableWidgets(String... widgetNames)
    • getWidget

      public JComponent getWidget(String widgetName)
    • getMenuItem

      public JMenuItem getMenuItem(String menuItemName)
    • getMenus

      public List<JMenu> getMenus()
      Get the list of menus
      Returns:
      a list of JMenus