Class IconInterface

java.lang.Object
megalodonte.base.components.IconInterface

public abstract class IconInterface extends Object
Base class for icon components. Wraps a JavaFX Node and provides a Ref binding API similar to Component.
  • Constructor Details

    • IconInterface

      public IconInterface()
  • Method Details

    • getJavaFxNode

      public abstract javafx.scene.Node getJavaFxNode()
      Returns the underlying JavaFX node for this icon.
    • ref

      public IconInterface ref(Ref<IconInterface> ref)
      Binds this icon to a Ref, making it accessible from the parent scope.
      Parameters:
      ref - the reference to bind to
      Returns:
      this icon for chaining
    • of

      public static IconInterface of(javafx.scene.Node node)
      Creates an IconInterface wrapping the given JavaFX node.
      Parameters:
      node - the node to wrap
      Returns:
      a new icon instance