Package com.jgoodies.looks
Class BorderStyle
- java.lang.Object
-
- com.jgoodies.looks.BorderStyle
-
public final class BorderStyle extends java.lang.ObjectDescribes the border styles for JMenuBar and JToolBar. Border styles are look-dependent and shadow look-independentHeaderStyles.- Version:
- $Revision: 1.9 $
- See Also:
HeaderStyle
-
-
Field Summary
Fields Modifier and Type Field Description static BorderStyleEMPTYstatic BorderStyleETCHEDprivate java.lang.Stringnamestatic BorderStyleSEPARATOR
-
Constructor Summary
Constructors Modifier Constructor Description privateBorderStyle(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BorderStylefrom(javax.swing.JMenuBar menuBar, java.lang.String clientPropertyKey)Looks up the client property for the header style from the JMenuBar.static BorderStylefrom(javax.swing.JToolBar toolBar, java.lang.String clientPropertyKey)Looks up the client property for the header style from the JToolBar.private static BorderStylefrom0(javax.swing.JComponent c, java.lang.String clientPropertyKey)Looks up the client property for the header style from the specified JComponent.java.lang.StringtoString()private static BorderStylevalueOf(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:
toStringin classjava.lang.Object
-
-