Module is.codion.swing.common.ui
Package is.codion.swing.common.ui.laf
Interface LookAndFeelProvider
- All Known Implementing Classes:
FlatLookAndFeelProvider
,IntelliJThemeProvider
,PlatformLookAndFeelProvider
public interface LookAndFeelProvider
Provides one or more look and feel enablers.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addLookAndFeel
(LookAndFeelEnabler lookAndFeelEnabler) Adds the given look and feel provider.static void
addLookAndFeel
(UIManager.LookAndFeelInfo lookAndFeelInfo) Adds a new look and feel provider.static void
addLookAndFeel
(UIManager.LookAndFeelInfo lookAndFeelInfo, Consumer<UIManager.LookAndFeelInfo> enabler) Adds a new look and feel provider.static Optional<LookAndFeelEnabler>
findLookAndFeel
(Class<? extends LookAndFeel> clazz) Returns a look and feel provider for the given class, if availablestatic Optional<LookAndFeelEnabler>
findLookAndFeel
(String className) Returns a look and feel provider with the given classname, if found in the available looks and feelsget()
static Collection<LookAndFeelProvider>
static Collection<LookAndFeelEnabler>
-
Method Details
-
get
Collection<LookAndFeelEnabler> get()- Returns:
- the available
LookAndFeelEnabler
s
-
instances
- Returns:
- all
LookAndFeelProvider
registered with theServiceLoader
-
addLookAndFeel
Adds a new look and feel provider.- Parameters:
lookAndFeelInfo
- the look and feel info
-
addLookAndFeel
static void addLookAndFeel(UIManager.LookAndFeelInfo lookAndFeelInfo, Consumer<UIManager.LookAndFeelInfo> enabler) Adds a new look and feel provider.- Parameters:
lookAndFeelInfo
- the look and feel infoenabler
- configures and enables this look and feel
-
addLookAndFeel
Adds the given look and feel provider. Note that this replaces any existing look and feel provider based on the same classname.- Parameters:
lookAndFeelEnabler
- the look and feel provider to add
-
lookAndFeels
- Returns:
- the available
LookAndFeelEnabler
s - See Also:
-
findLookAndFeel
Returns a look and feel provider for the given class, if available- Parameters:
clazz
- the look and feel class- Returns:
- a look and feel provider, an empty Optional if not found
-
findLookAndFeel
Returns a look and feel provider with the given classname, if found in the available looks and feels- Parameters:
className
- the look and feel classname- Returns:
- a look and feel provider, an empty Optional if not found
-