Package com.jgoodies.looks
Class HeaderStyle
java.lang.Object
com.jgoodies.looks.HeaderStyle
Describes the header styles for JMenuBar and JToolBar.
Header styles are look-independent and can be shadowed by a look-dependent
BorderStyle
.- Version:
- $Revision: 1.9 $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HeaderStyle
private final String
static final HeaderStyle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HeaderStyle
Looks up the client property for theHeaderStyle
from the JToolBar.static HeaderStyle
Looks up the client property for theHeaderStyle
from the JToolBar.private static HeaderStyle
from0
(JComponent c) Looks up the client property for theHeaderStyle
from the specified JComponent.toString()
private static HeaderStyle
Looks up and answers theHeaderStyle
with the specified name.
-
Field Details
-
SINGLE
-
BOTH
-
name
-
-
Constructor Details
-
HeaderStyle
-
-
Method Details
-
from
Looks up the client property for theHeaderStyle
from the JToolBar.- Parameters:
menuBar
- the menu bar to inspect- Returns:
- the menu bar's header style
-
from
Looks up the client property for theHeaderStyle
from the JToolBar.- Parameters:
toolBar
- the tool bar to inspect- Returns:
- the tool bar's header style
-
from0
Looks up the client property for theHeaderStyle
from the specified JComponent.- Parameters:
c
- the component to inspect- Returns:
- the header style for the given component
-
valueOf
Looks up and answers theHeaderStyle
with the specified name.- Parameters:
name
- the name of the HeaderStyle object to lookup- Returns:
- the associated HeaderStyle
-
toString
-