Klasse UiIcon

java.lang.Object
org.obrel.core.RelatedObject
Alle implementierten Schnittstellen:
org.obrel.core.Relatable

public class UiIcon extends UiComponent<String,UiIcon>
A component that displays an icon.
  • Konstruktordetails

    • UiIcon

      public UiIcon(UiContainer<?> parent, UiIconSupplier iconSupplier)
      Creates a new instance.
      Parameter:
      parent - The parent container
      iconSupplier - icon image The initial image
  • Methodendetails

    • setIcon

      public void setIcon(UiIconSupplier iconSupplier)
      Sets the icon to be displayed from an icon supplier.
      Parameter:
      iconSupplier - The icon supplier
    • setIcon

      public void setIcon(UiImageResource iconResource)
      Sets the icon to be displayed from an image resource (which must point to an icon reference).
      Parameter:
      iconResource - The icon image resource