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.UIDefaults
getDefaults()
java.lang.String
getDescription()
java.lang.String
getID()
java.lang.String
getName()
static void
loadPlugins()
static javax.swing.UIDefaults
setDefaults(javax.swing.UIDefaults defaults, java.lang.String lafId)
Apply theme default values to the suppliedUIDefaults
object.static void
unloadPlugins()
-
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:
getName
in classjavax.swing.LookAndFeel
-
getID
public java.lang.String getID()
- Specified by:
getID
in classjavax.swing.LookAndFeel
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in classjavax.swing.LookAndFeel
-
getDefaults
public javax.swing.UIDefaults getDefaults()
- Overrides:
getDefaults
in classDelegatingLookAndFeel
-
setDefaults
public static javax.swing.UIDefaults setDefaults(javax.swing.UIDefaults defaults, java.lang.String lafId)
Apply theme default values to the suppliedUIDefaults
object. Suitable for third-party themes that want to modify the default theme.- Parameters:
defaults
- theUIDefaults
object such as fromLookAndFeel.getDefaults()
lafId
- the ID of the LAF that will make use of the defaults (fromLookAndFeel.getID()
)- Returns:
- the modified
UIDefaults
object
-
-