Package com.jgoodies.looks
Class HeaderStyle
- java.lang.Object
-
- com.jgoodies.looks.HeaderStyle
-
public final class HeaderStyle extends java.lang.ObjectDescribes the header styles for JMenuBar and JToolBar. Header styles are look-independent and can be shadowed by a look-dependentBorderStyle.- Version:
- $Revision: 1.9 $
- See Also:
BorderStyle
-
-
Field Summary
Fields Modifier and Type Field Description static HeaderStyleBOTHprivate java.lang.Stringnamestatic HeaderStyleSINGLE
-
Constructor Summary
Constructors Modifier Constructor Description privateHeaderStyle(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HeaderStylefrom(javax.swing.JMenuBar menuBar)Looks up the client property for theHeaderStylefrom the JToolBar.static HeaderStylefrom(javax.swing.JToolBar toolBar)Looks up the client property for theHeaderStylefrom the JToolBar.private static HeaderStylefrom0(javax.swing.JComponent c)Looks up the client property for theHeaderStylefrom the specified JComponent.java.lang.StringtoString()private static HeaderStylevalueOf(java.lang.String name)Looks up and answers theHeaderStylewith the specified name.
-
-
-
Field Detail
-
SINGLE
public static final HeaderStyle SINGLE
-
BOTH
public static final HeaderStyle BOTH
-
name
private final java.lang.String name
-
-
Method Detail
-
from
public static HeaderStyle from(javax.swing.JMenuBar menuBar)
Looks up the client property for theHeaderStylefrom the JToolBar.- Parameters:
menuBar- the menu bar to inspect- Returns:
- the menu bar's header style
-
from
public static HeaderStyle from(javax.swing.JToolBar toolBar)
Looks up the client property for theHeaderStylefrom the JToolBar.- Parameters:
toolBar- the tool bar to inspect- Returns:
- the tool bar's header style
-
from0
private static HeaderStyle from0(javax.swing.JComponent c)
Looks up the client property for theHeaderStylefrom the specified JComponent.- Parameters:
c- the component to inspect- Returns:
- the header style for the given component
-
valueOf
private static HeaderStyle valueOf(java.lang.String name)
Looks up and answers theHeaderStylewith the specified name.- Parameters:
name- the name of the HeaderStyle object to lookup- Returns:
- the associated HeaderStyle
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-