Class RenderObjectElement
java.lang.Object
com.ultikits.ultitools.abstracts.gui.declarative.core.Element
com.ultikits.ultitools.abstracts.gui.declarative.core.RenderObjectElement
- Direct Known Subclasses:
ItemDisplayElement,TextButtonElement
RenderObjectElement is the Element that corresponds to a RenderNode.
This is a leaf node of the render tree, and ultimately produces a RenderNode.
- Since:
- 6.2.0
- Version:
- 1.0.0
- Author:
- UltiTools Team
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @NotNull RenderNodeCreates the RenderNode corresponding to this Element.@NotNull RenderNodeGets the RenderNode, creating it first if it has not been created yet.voidPerforms a rebuild.voidunmount()Removes this Element from the tree.protected abstract voidupdateRenderNode(@NotNull RenderNode renderNode) Updates the RenderNode.Methods inherited from class com.ultikits.ultitools.abstracts.gui.declarative.core.Element
addChild, assignContext, canUpdate, clearDirty, getChildren, getContext, getParent, getWidget, isDirty, isMounted, markChildNeedsBuild, markNeedsBuild, mount, setRootBuildScheduler, toString, update, updateChild, updateChildren
-
Field Details
-
_renderNode
-
-
Constructor Details
-
RenderObjectElement
-
-
Method Details
-
createRenderNode
Creates the RenderNode corresponding to this Element.- Returns:
- the new RenderNode
-
updateRenderNode
Updates the RenderNode.- Parameters:
renderNode- the RenderNode to update
-
getRenderNode
Gets the RenderNode, creating it first if it has not been created yet.- Returns:
- the RenderNode
-
performRebuild
public void performRebuild()Description copied from class:ElementPerforms a rebuild.Subclasses should implement this method to build or rebuild the Widget tree.
- Specified by:
performRebuildin classElement
-
unmount
public void unmount()Description copied from class:ElementRemoves this Element from the tree.Called when the Element is no longer needed. Subclasses should perform cleanup work here and unmount their child Elements.
-