com.jgoodies.looks

Class HeaderStyle

public final class HeaderStyle extends Object

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.3 $

Author: Karsten Lentzsch

See Also: BorderStyle

Field Summary
static HeaderStyleBOTH
static HeaderStyleSINGLE
Method Summary
static HeaderStylefrom(JMenuBar menuBar)
Looks up the client property for the HeaderStyle from the JToolBar.
static HeaderStylefrom(JToolBar toolBar)
Looks up the client property for the HeaderStyle from the JToolBar.
StringtoString()

Field Detail

BOTH

public static final HeaderStyle BOTH

SINGLE

public static final HeaderStyle SINGLE

Method Detail

from

public static HeaderStyle from(JMenuBar menuBar)
Looks up the client property for the HeaderStyle from the JToolBar.

Parameters: menuBar the menu bar to inspect

Returns: the menu bar's header style

from

public static HeaderStyle from(JToolBar toolBar)
Looks up the client property for the HeaderStyle from the JToolBar.

Parameters: toolBar the tool bar to inspect

Returns: the tool bar's header style

toString

public String toString()
Copyright © 2001-2007 JGoodies Karsten Lentzsch. All Rights Reserved.