Package org.omegat.gui.theme
Class DelegatingLookAndFeel
java.lang.Object
javax.swing.LookAndFeel
javax.swing.plaf.basic.BasicLookAndFeel
org.omegat.gui.theme.DelegatingLookAndFeel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DefaultClassicTheme,DefaultFlatTheme
A LAF class that delegates almost everything to the system LAF.
Implementers must provide a distinct identity (
LookAndFeel.getName(),
LookAndFeel.getID(), LookAndFeel.getDescription()). They should also probably
supply novel defaults (initialize(), BasicLookAndFeel.getDefaults()).- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDisabledIcon(JComponent component, Icon icon) getDisabledSelectedIcon(JComponent component, Icon icon) booleanvoidbooleanbooleanvoidprovideErrorFeedback(Component component) voidMethods inherited from class javax.swing.plaf.basic.BasicLookAndFeel
getDefaultsMethods inherited from class javax.swing.LookAndFeel
getDescription, getDesktopPropertyValue, getID, getName, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninstallBorder
-
Constructor Details
-
DelegatingLookAndFeel
- Throws:
Exception
-
-
Method Details
-
isNativeLookAndFeel
public boolean isNativeLookAndFeel()- Specified by:
isNativeLookAndFeelin classLookAndFeel
-
isSupportedLookAndFeel
public boolean isSupportedLookAndFeel()- Specified by:
isSupportedLookAndFeelin classLookAndFeel
-
getLayoutStyle
- Overrides:
getLayoutStylein classLookAndFeel
-
getDisabledIcon
- Overrides:
getDisabledIconin classLookAndFeel
-
getDisabledSelectedIcon
- Overrides:
getDisabledSelectedIconin classLookAndFeel
-
getSupportsWindowDecorations
public boolean getSupportsWindowDecorations()- Overrides:
getSupportsWindowDecorationsin classLookAndFeel
-
provideErrorFeedback
- Overrides:
provideErrorFeedbackin classLookAndFeel
-
initialize
public void initialize()- Overrides:
initializein classBasicLookAndFeel
-
uninitialize
public void uninitialize()- Overrides:
uninitializein classBasicLookAndFeel
-