Class AbstractLazyIconSupplier<T extends Icon>

java.lang.Object
com.github.weisj.darklaf.properties.icons.AbstractLazyIconSupplier<T>
All Implemented Interfaces:
IconSupplier<T>
Direct Known Subclasses:
LazyImageIconSupplier

public abstract class AbstractLazyIconSupplier<T extends Icon> extends Object implements IconSupplier<T>
  • Field Details

    • path

      protected final String path
    • key

      protected final com.github.weisj.darklaf.properties.icons.IconLoader.IconKey key
    • parentClass

      protected final Class<?> parentClass
  • Constructor Details

    • AbstractLazyIconSupplier

      public AbstractLazyIconSupplier(String path, com.github.weisj.darklaf.properties.icons.IconLoader.IconKey key, Class<?> parentClass)
  • Method Details

    • loadIcon

      protected abstract T loadIcon()
    • getIcon

      public T getIcon()
      Specified by:
      getIcon in interface IconSupplier<T extends Icon>