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:
java.io.Serializable
- Direct Known Subclasses:
DefaultClassicTheme,DefaultFlatTheme
public abstract class DelegatingLookAndFeel extends javax.swing.plaf.basic.BasicLookAndFeelA 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(),getDefaults()).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DelegatingLookAndFeel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.UIDefaultsgetDefaults()javax.swing.IcongetDisabledIcon(javax.swing.JComponent component, javax.swing.Icon icon)javax.swing.IcongetDisabledSelectedIcon(javax.swing.JComponent component, javax.swing.Icon icon)javax.swing.LayoutStylegetLayoutStyle()booleangetSupportsWindowDecorations()voidinitialize()booleanisNativeLookAndFeel()booleanisSupportedLookAndFeel()voidprovideErrorFeedback(java.awt.Component component)voiduninitialize()
-
-
-
Method Detail
-
isNativeLookAndFeel
public boolean isNativeLookAndFeel()
- Specified by:
isNativeLookAndFeelin classjavax.swing.LookAndFeel
-
isSupportedLookAndFeel
public boolean isSupportedLookAndFeel()
- Specified by:
isSupportedLookAndFeelin classjavax.swing.LookAndFeel
-
getLayoutStyle
public javax.swing.LayoutStyle getLayoutStyle()
- Overrides:
getLayoutStylein classjavax.swing.LookAndFeel
-
getDisabledIcon
public javax.swing.Icon getDisabledIcon(javax.swing.JComponent component, javax.swing.Icon icon)- Overrides:
getDisabledIconin classjavax.swing.LookAndFeel
-
getDisabledSelectedIcon
public javax.swing.Icon getDisabledSelectedIcon(javax.swing.JComponent component, javax.swing.Icon icon)- Overrides:
getDisabledSelectedIconin classjavax.swing.LookAndFeel
-
getSupportsWindowDecorations
public boolean getSupportsWindowDecorations()
- Overrides:
getSupportsWindowDecorationsin classjavax.swing.LookAndFeel
-
provideErrorFeedback
public void provideErrorFeedback(java.awt.Component component)
- Overrides:
provideErrorFeedbackin classjavax.swing.LookAndFeel
-
initialize
public void initialize()
- Overrides:
initializein classjavax.swing.plaf.basic.BasicLookAndFeel
-
uninitialize
public void uninitialize()
- Overrides:
uninitializein classjavax.swing.plaf.basic.BasicLookAndFeel
-
getDefaults
public javax.swing.UIDefaults getDefaults()
- Overrides:
getDefaultsin classjavax.swing.plaf.basic.BasicLookAndFeel
-
-