Package docking

Class GenericHeader

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
DockableHeader

public class GenericHeader extends JPanel
See Also:
  • Field Details

    • component

      protected Component component
    • toolBarMgr

      protected docking.DockableToolBarManager toolBarMgr
    • titlePanel

      protected GenericHeader.TitlePanel titlePanel
  • Constructor Details

    • GenericHeader

      public GenericHeader()
    • GenericHeader

      public GenericHeader(Color nonFocusColor, Color focusColor)
  • Method Details

    • dispose

      public void dispose()
    • getPreferredSize

      public Dimension getPreferredSize()
      Overrides:
      getPreferredSize in class JComponent
    • setNoWrapToolbar

      public void setNoWrapToolbar(boolean noWrap)
      Signals whether or not to break the toolbar actions into multiple rows. The default is to wrap as necessary.
      Parameters:
      noWrap - true signals not to break the actions into multiple rows
    • requestFocus

      public void requestFocus()
      Overrides:
      requestFocus in class JComponent
    • resetComponents

      protected void resetComponents()
    • update

      public void update()
    • validateInvalidate

      protected void validateInvalidate()
    • actionAdded

      public void actionAdded(DockingActionIf action)
      updates the toolbar to include the new action.
      Parameters:
      action - the action that was added.
    • actionRemoved

      public void actionRemoved(DockingActionIf action)
      updates the toolbar to remove the given action.
      Parameters:
      action - the action that was removed.
    • getAction

      public DockingActionIf getAction(String name)
    • getToolBarWidth

      public int getToolBarWidth()
    • setSelected

      public void setSelected(boolean hasFocus)
      Sets the focus state of the component so that a visual clue can be displayed.
      Parameters:
      hasFocus - true if the this component has focus, false otherwise.
    • createEmphasizingAnimator

      protected org.jdesktop.animation.timing.Animator createEmphasizingAnimator()
    • isSelected

      public boolean isSelected()
    • setTitle

      public void setTitle(String title)
    • setIcon

      public void setIcon(Icon icon)
    • setColor

      public void setColor(Color color)
    • setComponent

      public void setComponent(Component component)