public class WindowsLookAndFeel
extends com.sun.java.swing.plaf.windows.WindowsLookAndFeel
| Modifier and Type | Field and Description |
|---|---|
static String |
BORDER_STYLE_KEY
An optional client property key for JMenu and JToolBar
to set a border style - shadows the header style.
|
| Constructor and Description |
|---|
WindowsLookAndFeel() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
static MicroLayoutPolicy |
getMicroLayoutPolicy()
Looks up and retrieves the MicroLayoutPolicy used by
the JGoodies Windows Look&Feel.
|
String |
getName()
Returns the String "JGoodies Windows".
|
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(MicroLayoutPolicy microLayoutPolicy)
Sets the MicroLayoutPolicy to be used with the JGoodies Windows L&F.
|
void |
uninitialize()
Invoked during
UIManager#setLookAndFeel. |
createAudioAction, getID, getLayoutStyle, initSystemColorDefaults, isClassicWindows, isMnemonicHidden, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedback, setMnemonicHiddengetAudioActionMap, getDefaults, loadSystemColors, playSoundgetDesktopPropertyValue, getDisabledSelectedIcon, getSupportsWindowDecorations, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninstallBorderpublic static final String BORDER_STYLE_KEY
public String getName()
getName in class com.sun.java.swing.plaf.windows.WindowsLookAndFeelLookAndFeel.getID()public 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.MicroLayoutPolicy),
Options.WINDOWS_MICRO_LAYOUT_POLICY_KEY,
MicroLayoutPolicies,
MicroLayoutPolicies.getDefaultWindowsPolicy()public static void setMicroLayoutPolicy(MicroLayoutPolicy 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()
Copyright © 2001-2014 JGoodies Software GmbH. All Rights Reserved.