Class BorderStyle

java.lang.Object
com.jgoodies.looks.BorderStyle

public final class BorderStyle extends Object
Describes the border styles for JMenuBar and JToolBar. Border styles are look-dependent and shadow look-independent HeaderStyles.
Version:
$Revision: 1.9 $
See Also:
  • Field Details

  • Constructor Details

    • BorderStyle

      private BorderStyle(String name)
  • Method Details

    • from

      public static BorderStyle from(JToolBar toolBar, String clientPropertyKey)
      Looks up the client property for the header style from the JToolBar.
      Parameters:
      toolBar - the tool bar to inspect
      clientPropertyKey - the key used to lookup the property
      Returns:
      the border style used to choose a border in the UI delegate
    • from

      public static BorderStyle from(JMenuBar menuBar, String clientPropertyKey)
      Looks up the client property for the header style from the JMenuBar.
      Parameters:
      menuBar - the menu bar to inspect
      clientPropertyKey - the key used to lookup the property
      Returns:
      the border style used to choose a border in the UI delegate
    • from0

      private static BorderStyle from0(JComponent c, String clientPropertyKey)
      Looks up the client property for the header style from the specified JComponent.
      Parameters:
      c - the compoent to inspect
      clientPropertyKey - the key used to lookup the property
      Returns:
      the border style used to choose a border in the UI delegate
    • valueOf

      private static BorderStyle valueOf(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Object