Class RenderObjectWidget

java.lang.Object
com.ultikits.ultitools.abstracts.gui.declarative.core.Widget
com.ultikits.ultitools.abstracts.gui.declarative.core.RenderObjectWidget
Direct Known Subclasses:
ItemDisplay, TextButton

public abstract class RenderObjectWidget extends Widget
RenderObjectWidget is the base Widget class for describing actual render content.

Unlike StatelessWidget and StatefulWidget, a RenderObjectWidget corresponds directly to a RenderNode and is a leaf node of the render tree.

Example subclasses:

  • ItemDisplay - displays an item
  • TextButton - displays a text button
  • Placeholder - a placeholder
Since:
6.2.0
Version:
1.0.0
Author:
UltiTools Team
  • Constructor Details

    • RenderObjectWidget

      protected RenderObjectWidget()
      Creates a new RenderObjectWidget.
    • RenderObjectWidget

      protected RenderObjectWidget(SlotKey key)
      Creates a new RenderObjectWidget with the given key.
      Parameters:
      key - the key used to stably identify this Widget
  • Method Details

    • createElement

      @NotNull public abstract @NotNull RenderObjectElement createElement()
      Description copied from class: Widget
      Creates the Element corresponding to this Widget.

      This is a framework-internal method; subclasses should return the Element implementation appropriate to the Widget type.

      Specified by:
      createElement in class Widget
      Returns:
      the corresponding Element instance