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.BasicLookAndFeel
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()
,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.UIDefaults
getDefaults()
javax.swing.Icon
getDisabledIcon(javax.swing.JComponent component, javax.swing.Icon icon)
javax.swing.Icon
getDisabledSelectedIcon(javax.swing.JComponent component, javax.swing.Icon icon)
javax.swing.LayoutStyle
getLayoutStyle()
boolean
getSupportsWindowDecorations()
void
initialize()
boolean
isNativeLookAndFeel()
boolean
isSupportedLookAndFeel()
void
provideErrorFeedback(java.awt.Component component)
void
uninitialize()
-
-
-
Method Detail
-
isNativeLookAndFeel
public boolean isNativeLookAndFeel()
- Specified by:
isNativeLookAndFeel
in classjavax.swing.LookAndFeel
-
isSupportedLookAndFeel
public boolean isSupportedLookAndFeel()
- Specified by:
isSupportedLookAndFeel
in classjavax.swing.LookAndFeel
-
getLayoutStyle
public javax.swing.LayoutStyle getLayoutStyle()
- Overrides:
getLayoutStyle
in classjavax.swing.LookAndFeel
-
getDisabledIcon
public javax.swing.Icon getDisabledIcon(javax.swing.JComponent component, javax.swing.Icon icon)
- Overrides:
getDisabledIcon
in classjavax.swing.LookAndFeel
-
getDisabledSelectedIcon
public javax.swing.Icon getDisabledSelectedIcon(javax.swing.JComponent component, javax.swing.Icon icon)
- Overrides:
getDisabledSelectedIcon
in classjavax.swing.LookAndFeel
-
getSupportsWindowDecorations
public boolean getSupportsWindowDecorations()
- Overrides:
getSupportsWindowDecorations
in classjavax.swing.LookAndFeel
-
provideErrorFeedback
public void provideErrorFeedback(java.awt.Component component)
- Overrides:
provideErrorFeedback
in classjavax.swing.LookAndFeel
-
initialize
public void initialize()
- Overrides:
initialize
in classjavax.swing.plaf.basic.BasicLookAndFeel
-
uninitialize
public void uninitialize()
- Overrides:
uninitialize
in classjavax.swing.plaf.basic.BasicLookAndFeel
-
getDefaults
public javax.swing.UIDefaults getDefaults()
- Overrides:
getDefaults
in classjavax.swing.plaf.basic.BasicLookAndFeel
-
-