|
JavaTM 2 Platform Std. Ed. v1.4.2 |
||||||||||
| 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
javax.swing.plaf.metal.MetalLookAndFeel
Implements the Java look and feel (codename: Metal).
For the keyboard keys defined for each component in this look and feel, see Component Keystroke Actions for the Java Look and Feel.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans package.
Please see XMLEncoder.
| Constructor Summary | |
MetalLookAndFeel()
|
|
| Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel |
createAudioAction, getAudioActionMap, loadSystemColors, playSound |
| Methods inherited from class javax.swing.LookAndFeel |
getDesktopPropertyValue, initialize, installBorder, installColors, installColorsAndFont, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninitialize, uninstallBorder |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MetalLookAndFeel()
| Method Detail |
public String getName()
LookAndFeel
getName in class LookAndFeelpublic String getID()
LookAndFeel
getID in class LookAndFeelpublic String getDescription()
LookAndFeel
getDescription in class LookAndFeelpublic boolean isNativeLookAndFeel()
LookAndFeel
isNativeLookAndFeel in class LookAndFeelpublic boolean isSupportedLookAndFeel()
LookAndFeel
isSupportedLookAndFeel in class LookAndFeelUIManager.setLookAndFeel(javax.swing.LookAndFeel)public boolean getSupportsWindowDecorations()
LookAndFeel returned
RootPaneUI instances support providing Window decorations
in a JRootPane.
This implementation returns true, since it does support providing these border and window title pane decorations.
getSupportsWindowDecorations in class LookAndFeelJDialog.setDefaultLookAndFeelDecorated(boolean),
JFrame.setDefaultLookAndFeelDecorated(boolean),
JRootPane.setWindowDecorationStyle(int)protected void initClassDefaults(UIDefaults table)
ComponentUI classes,
putting the ID-ComponentUI pairs
in the passed-in defaults table.
Each JComponent class
specifies its own UI class ID string.
For example,
JButton has the UI class ID "ButtonUI",
which this method maps to "javax.swing.plaf.metal.MetalButtonUI".
initClassDefaults in class BasicLookAndFeelBasicLookAndFeel.getDefaults(),
JComponent.getUIClassID()protected void initSystemColorDefaults(UIDefaults table)
initSystemColorDefaults in class BasicLookAndFeelprotected void initComponentDefaults(UIDefaults table)
initComponentDefaults in class BasicLookAndFeelprotected void createDefaultTheme()
public UIDefaults getDefaults()
LookAndFeel
getDefaults in class BasicLookAndFeelpublic void provideErrorFeedback(Component component)
Invoked when the user attempts an invalid operation,
such as pasting into an uneditable JTextField
that has focus.
If the user has enabled visual error indication on the desktop, this method will flash the caption bar of the active window. The user can also set the property awt.visualbell=true to achieve the same results.
provideErrorFeedback in class LookAndFeelcomponent - Component the error occured in, may be
null indicating the error condition is
not directly associated with a
Component.LookAndFeel.provideErrorFeedback(java.awt.Component)public static void setCurrentTheme(MetalTheme theme)
public static FontUIResource getControlTextFont()
public static FontUIResource getSystemTextFont()
public static FontUIResource getUserTextFont()
public static FontUIResource getMenuTextFont()
public static FontUIResource getWindowTitleFont()
public static FontUIResource getSubTextFont()
public static ColorUIResource getDesktopColor()
public static ColorUIResource getFocusColor()
public static ColorUIResource getWhite()
public static ColorUIResource getBlack()
public static ColorUIResource getControl()
public static ColorUIResource getControlShadow()
public static ColorUIResource getControlDarkShadow()
public static ColorUIResource getControlInfo()
public static ColorUIResource getControlHighlight()
public static ColorUIResource getControlDisabled()
public static ColorUIResource getPrimaryControl()
public static ColorUIResource getPrimaryControlShadow()
public static ColorUIResource getPrimaryControlDarkShadow()
public static ColorUIResource getPrimaryControlInfo()
public static ColorUIResource getPrimaryControlHighlight()
public static ColorUIResource getSystemTextColor()
public static ColorUIResource getControlTextColor()
public static ColorUIResource getInactiveControlTextColor()
public static ColorUIResource getInactiveSystemTextColor()
public static ColorUIResource getUserTextColor()
public static ColorUIResource getTextHighlightColor()
public static ColorUIResource getHighlightedTextColor()
public static ColorUIResource getWindowBackground()
public static ColorUIResource getWindowTitleBackground()
public static ColorUIResource getWindowTitleForeground()
public static ColorUIResource getWindowTitleInactiveBackground()
public static ColorUIResource getWindowTitleInactiveForeground()
public static ColorUIResource getMenuBackground()
public static ColorUIResource getMenuForeground()
public static ColorUIResource getMenuSelectedBackground()
public static ColorUIResource getMenuSelectedForeground()
public static ColorUIResource getMenuDisabledForeground()
public static ColorUIResource getSeparatorBackground()
public static ColorUIResource getSeparatorForeground()
public static ColorUIResource getAcceleratorForeground()
public static ColorUIResource getAcceleratorSelectedForeground()
|
JavaTM 2 Platform Std. Ed. v1.4.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.