Interface LookAndFeelProvider

All Known Implementing Classes:
PlatformLookAndFeels

public interface LookAndFeelProvider
Provides one or more look and feel enablers.
See Also:
  • Method Details

    • get

      Returns:
      the available LookAndFeelEnablers
    • instances

      static Collection<LookAndFeelProvider> instances()
      Returns:
      all LookAndFeelProvider registered with the ServiceLoader
    • addLookAndFeel

      static void addLookAndFeel(UIManager.LookAndFeelInfo lookAndFeelInfo)
      Adds a new look and feel enabler. Note that this replaces any existing look and feel enabler based on the same classname.
      Parameters:
      lookAndFeelInfo - the look and feel info
    • addLookAndFeel

      static void addLookAndFeel(UIManager.LookAndFeelInfo lookAndFeelInfo, Consumer<UIManager.LookAndFeelInfo> enabler)
      Adds a new look and feel enabler. Note that this replaces any existing look and feel enabler based on the same classname.
      Parameters:
      lookAndFeelInfo - the look and feel info
      enabler - configures and enables this look and feel
    • addLookAndFeel

      static void addLookAndFeel(LookAndFeelEnabler lookAndFeelEnabler)
      Adds the given look and feel enabler. Note that this replaces any existing look and feel enabler based on the same classname.
      Parameters:
      lookAndFeelEnabler - the look and feel enabler to add
    • lookAndFeels

      static Collection<LookAndFeelEnabler> lookAndFeels()
      Returns:
      the available LookAndFeelEnablers
      See Also:
    • findLookAndFeel

      static Optional<LookAndFeelEnabler> findLookAndFeel(Class<? extends LookAndFeel> clazz)
      Returns a look and feel enabler for the given class, if available
      Parameters:
      clazz - the look and feel class
      Returns:
      a look and feel enabler, an empty Optional if not found
    • findLookAndFeel

      static Optional<LookAndFeelEnabler> findLookAndFeel(String className)
      Returns a look and feel enabler with the given classname, if found in the available looks and feels
      Parameters:
      className - the look and feel classname
      Returns:
      a look and feel enabler, an empty Optional if not found