Package org.omegat.gui.theme
Class DefaultFlatTheme
- java.lang.Object
-
- javax.swing.LookAndFeel
-
- javax.swing.plaf.basic.BasicLookAndFeel
-
- org.omegat.gui.theme.DelegatingLookAndFeel
-
- org.omegat.gui.theme.DefaultFlatTheme
-
- All Implemented Interfaces:
java.io.Serializable
public class DefaultFlatTheme extends DelegatingLookAndFeel
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultFlatTheme()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.UIDefaultsgetDefaults()java.lang.StringgetDescription()java.lang.StringgetID()java.lang.StringgetName()static voidloadPlugins()static javax.swing.UIDefaultssetDefaults(javax.swing.UIDefaults defaults, java.lang.String lafId)Apply theme default values to the suppliedUIDefaultsobject.static voidunloadPlugins()-
Methods inherited from class org.omegat.gui.theme.DelegatingLookAndFeel
getDisabledIcon, getDisabledSelectedIcon, getLayoutStyle, getSupportsWindowDecorations, initialize, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedback, uninitialize
-
-
-
-
Method Detail
-
loadPlugins
public static void loadPlugins()
-
unloadPlugins
public static void unloadPlugins()
-
getName
public java.lang.String getName()
- Specified by:
getNamein classjavax.swing.LookAndFeel
-
getID
public java.lang.String getID()
- Specified by:
getIDin classjavax.swing.LookAndFeel
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin classjavax.swing.LookAndFeel
-
getDefaults
public javax.swing.UIDefaults getDefaults()
- Overrides:
getDefaultsin classDelegatingLookAndFeel
-
setDefaults
public static javax.swing.UIDefaults setDefaults(javax.swing.UIDefaults defaults, java.lang.String lafId)Apply theme default values to the suppliedUIDefaultsobject. Suitable for third-party themes that want to modify the default theme.- Parameters:
defaults- theUIDefaultsobject such as fromLookAndFeel.getDefaults()lafId- the ID of the LAF that will make use of the defaults (fromLookAndFeel.getID())- Returns:
- the modified
UIDefaultsobject
-
-