|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.LookAndFeel
javax.swing.plaf.basic.BasicLookAndFeel
com.sun.java.swing.plaf.windows.WindowsLookAndFeel
com.jgoodies.looks.windows.WindowsLookAndFeel
public final class WindowsLookAndFeel
The main class of the JGoodies Windows Look&Feel. This look provides several corrections and extensions to Sun's Windows L&F. In addition it tries to provide a unified look for the J2SE 1.4.0x, 1.4.1x, 1.4.2, and 1.5 environments.
| Field Summary | |
|---|---|
static String |
BORDER_STYLE_KEY
An optional client property key for JMenu and JToolBar to set a border style - shadows the header style. |
| Constructor Summary | |
|---|---|
WindowsLookAndFeel()
|
|
| Method Summary | |
|---|---|
static Border |
getButtonBorder()
|
static Icon |
getCheckBoxIcon()
|
String |
getDescription()
|
Icon |
getDisabledIcon(JComponent component,
Icon icon)
Returns an icon with a disabled appearance. |
static FontPolicy |
getFontPolicy()
Looks up and retrieves the FontPolicy used by the JGoodies Windows Look&Feel. |
String |
getID()
|
static MicroLayoutPolicy |
getMicroLayoutPolicy()
Looks up and retrieves the MicroLayoutPolicy used by the JGoodies Windows Look&Feel. |
String |
getName()
|
static Icon |
getRadioButtonIcon()
|
protected void |
initClassDefaults(UIDefaults table)
Initializes the class defaults, that is, overrides some UI delegates with JGoodies Windows implementations. |
protected void |
initComponentDefaults(UIDefaults table)
Initializes the component defaults. |
void |
initialize()
Invoked during UIManager#setLookAndFeel. |
static void |
setFontPolicy(FontPolicy fontPolicy)
Sets the FontPolicy to be used with the JGoodies Windows L&F. |
static void |
setMicroLayoutPolicy(MicroLayout microLayoutPolicy)
Sets the MicroLayoutPolicy to be used with the JGoodies Windows L&F. |
void |
uninitialize()
Invoked during UIManager#setLookAndFeel. |
| Methods inherited from class com.sun.java.swing.plaf.windows.WindowsLookAndFeel |
|---|
createAudioAction, getLayoutStyle, initSystemColorDefaults, isClassicWindows, isMnemonicHidden, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedback, setMnemonicHidden |
| Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel |
|---|
getAudioActionMap, getDefaults, loadSystemColors, playSound |
| Methods inherited from class javax.swing.LookAndFeel |
|---|
getDesktopPropertyValue, getDisabledSelectedIcon, getSupportsWindowDecorations, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninstallBorder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String BORDER_STYLE_KEY
| Constructor Detail |
|---|
public WindowsLookAndFeel()
| Method Detail |
|---|
public String getID()
getID in class com.sun.java.swing.plaf.windows.WindowsLookAndFeelpublic String getName()
getName in class com.sun.java.swing.plaf.windows.WindowsLookAndFeelpublic String getDescription()
getDescription in class com.sun.java.swing.plaf.windows.WindowsLookAndFeelpublic static FontPolicy getFontPolicy()
setFontPolicy(com.jgoodies.looks.FontPolicy),
Options.WINDOWS_FONT_POLICY_KEY,
FontPolicies,
FontPolicies.customSettingsPolicy(FontPolicy),
FontPolicies.getDefaultWindowsPolicy()public static void setFontPolicy(FontPolicy fontPolicy)
null, the default will be reset.
fontPolicy - the FontPolicy to be used with the JGoodies Windows
L&F, or null to reset to the defaultgetFontPolicy(),
Options.WINDOWS_FONT_POLICY_KEYpublic static MicroLayoutPolicy getMicroLayoutPolicy()
setMicroLayoutPolicy(com.jgoodies.looks.MicroLayout),
Options.WINDOWS_MICRO_LAYOUT_POLICY_KEY,
MicroLayoutPolicies,
MicroLayoutPolicies.getDefaultWindowsPolicy()public static void setMicroLayoutPolicy(MicroLayout microLayoutPolicy)
null, the default will be reset.
microLayoutPolicy - the MicroLayoutPolicy to be used with
the JGoodies Windows L&F, or null to reset
to the defaultgetMicroLayoutPolicy(),
Options.WINDOWS_MICRO_LAYOUT_POLICY_KEYpublic void initialize()
UIManager#setLookAndFeel. In addition
to the superclass behavior, we install the ShadowPopupFactory.
initialize in class com.sun.java.swing.plaf.windows.WindowsLookAndFeeluninitialize()public void uninitialize()
UIManager#setLookAndFeel. In addition
to the superclass behavior, we uninstall the ShadowPopupFactory.
uninitialize in class com.sun.java.swing.plaf.windows.WindowsLookAndFeelinitialize()
public Icon getDisabledIcon(JComponent component,
Icon icon)
This method will be used only on JDK 5.0 and later.
getDisabledIcon in class com.sun.java.swing.plaf.windows.WindowsLookAndFeelcomponent - the component that will display the icon, may be null.icon - the icon to generate disabled icon from.
protected void initClassDefaults(UIDefaults table)
initClassDefaults in class com.sun.java.swing.plaf.windows.WindowsLookAndFeelprotected void initComponentDefaults(UIDefaults table)
initComponentDefaults in class com.sun.java.swing.plaf.windows.WindowsLookAndFeelpublic static Border getButtonBorder()
public static Icon getCheckBoxIcon()
public static Icon getRadioButtonIcon()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||