Class FWToolBar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public final class FWToolBar extends JToolBar
Default toolbar.
Author:
Andreas Enders
See Also:
  • Constructor Details

    • FWToolBar

      public FWToolBar(Map<String,FWToolbarButton> aToolBarMap)
      delivered ToolbarButtons are added to box-panel toolbar.
      Parameters:
      aToolBarMap -
  • Method Details

    • addButton

      public void addButton(FWToolbarButton aToolBarButton)
      Creates a icon, add it to this toolbar.
    • addSeperator

      public void addSeperator()
      creates a separator-icon in toolbar
    • addStrut

      public void addStrut(int aWidth)
      creates a gap between different icons in toolbar of width
      Parameters:
      aWidth - in pixel
    • addGlue

      public void addGlue()
      adds a glue to get the rest of icons right-aligned
    • setEnabled

      public void setEnabled(String aActionCommand, boolean aEnabled)
      Enables/Disables an existing toolBarButton.
    • setVisible

      public void setVisible(String aActionCommand, boolean aVisible)
      Shows/hids an existing toolBarButton.
    • setToolTipText

      public void setToolTipText(String aActionCommand, String aValue, boolean aEnabled)
      Set the caption (aValue) to the MenuItem but use the given ActionCommand
    • getToolbarButton

      public FWToolbarButton getToolbarButton(String aActionCommand)
      one spectial Button can be retrieved by giving the ActionCommand of the button
      Parameters:
      aActionCommand -
      Returns:
      FWToolbarButton