Class HeaderStyle

java.lang.Object
com.jgoodies.looks.HeaderStyle

public final class HeaderStyle extends Object
Describes the header styles for JMenuBar and JToolBar. Header styles are look-independent and can be shadowed by a look-dependent BorderStyle.
Version:
$Revision: 1.9 $
See Also:
  • Field Details

  • Constructor Details

    • HeaderStyle

      private HeaderStyle(String name)
  • Method Details

    • from

      public static HeaderStyle from(JMenuBar menuBar)
      Looks up the client property for the HeaderStyle from the JToolBar.
      Parameters:
      menuBar - the menu bar to inspect
      Returns:
      the menu bar's header style
    • from

      public static HeaderStyle from(JToolBar toolBar)
      Looks up the client property for the HeaderStyle from the JToolBar.
      Parameters:
      toolBar - the tool bar to inspect
      Returns:
      the tool bar's header style
    • from0

      private static HeaderStyle from0(JComponent c)
      Looks up the client property for the HeaderStyle from the specified JComponent.
      Parameters:
      c - the component to inspect
      Returns:
      the header style for the given component
    • valueOf

      private static HeaderStyle valueOf(String name)
      Looks up and answers the HeaderStyle with the specified name.
      Parameters:
      name - the name of the HeaderStyle object to lookup
      Returns:
      the associated HeaderStyle
    • toString

      public String toString()
      Overrides:
      toString in class Object