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
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 itemTextButton- displays a text buttonPlaceholder- a placeholder
- Since:
- 6.2.0
- Version:
- 1.0.0
- Author:
- UltiTools Team
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new RenderObjectWidget.protectedCreates a new RenderObjectWidget with the given key. -
Method Summary
Modifier and TypeMethodDescriptionabstract @NotNull RenderObjectElementCreates the Element corresponding to this Widget.
-
Constructor Details
-
RenderObjectWidget
protected RenderObjectWidget()Creates a new RenderObjectWidget. -
RenderObjectWidget
Creates a new RenderObjectWidget with the given key.- Parameters:
key- the key used to stably identify this Widget
-
-
Method Details
-
createElement
Description copied from class:WidgetCreates the Element corresponding to this Widget.This is a framework-internal method; subclasses should return the Element implementation appropriate to the Widget type.
- StatelessWidget returns a
StatelessElement - StatefulWidget returns a
StatefulElement - RenderObjectWidget returns a
RenderObjectElement
- Specified by:
createElementin classWidget- Returns:
- the corresponding Element instance
- StatelessWidget returns a
-