Package com.jgoodies.looks
Class BorderStyle
- java.lang.Object
-
- com.jgoodies.looks.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-independentHeaderStyle
s.- Version:
- $Revision: 1.9 $
- See Also:
HeaderStyle
-
-
Field Summary
Fields Modifier and Type Field Description static BorderStyle
EMPTY
static BorderStyle
ETCHED
private java.lang.String
name
static BorderStyle
SEPARATOR
-
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)
-
-
-
Field Detail
-
EMPTY
public static final BorderStyle EMPTY
-
SEPARATOR
public static final BorderStyle SEPARATOR
-
ETCHED
public static final BorderStyle ETCHED
-
name
private final 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 inspectclientPropertyKey
- 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 inspectclientPropertyKey
- 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 inspectclientPropertyKey
- 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 classjava.lang.Object
-
-