Class BorderStyle


  • public final class BorderStyle
    extends java.lang.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:
    HeaderStyle
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BorderStyle​(java.lang.String name)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static BorderStyle from​(javax.swing.JMenuBar menuBar, java.lang.String clientPropertyKey)
      Looks up the client property for the header style from the JMenuBar.
      static BorderStyle from​(javax.swing.JToolBar toolBar, java.lang.String clientPropertyKey)
      Looks up the client property for the header style from the JToolBar.
      private static BorderStyle from0​(javax.swing.JComponent c, java.lang.String clientPropertyKey)
      Looks up the client property for the header style from the specified JComponent.
      java.lang.String toString()  
      private static BorderStyle valueOf​(java.lang.String name)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        private final java.lang.String name
    • Constructor Detail

      • BorderStyle

        private BorderStyle​(java.lang.String name)
    • Method Detail

      • from

        public static BorderStyle from​(javax.swing.JToolBar toolBar,
                                       java.lang.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​(javax.swing.JMenuBar menuBar,
                                       java.lang.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​(javax.swing.JComponent c,
                                         java.lang.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​(java.lang.String name)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object