Widget Entry
Basic DynamicListWidget.Entry that wraps a single widget with no other bells and whistles.
Author
fzzyhmstrs
Since
0.6.5
Parameters
the widget type; must be all of Selectable, Element, Drawable, and Widget
DynamicListWidget parent instance. This will almost always be automatically provided via the BiFunction builder system the list widget uses.
String scope representation of this entry in the list. Might be as simple as "0", "1" etc. string version of the entry index.
Translatable.Result translation result to pass into the base entry. This is used for searching and so on. An empty result can be provided if these features aren't used.
Integer height of the entry.
T the widget to wrap.
Constructors
Properties
Functions
Append narration messages to current NarrationMessageBuilder. The list will handle list position and navigation, the entry should focus on providing title and description information, and internal navigation information as applicable (if there are multiple children in one entry for example)
Handle a context event. This will be triggered by a parent, typically on key press or mouse click. A parent object can of course also be a context handler, handle context as applicable and then pass the event downstream for further handling.
Indicates that the overlay has been removed and the parent should return focus to the cached element, if any, in lastSelected
Add a set of grouped context action builders to a result
Indicates to the parent element to cache it's current focused element. The current focused element should be stored in lastSelected
Render call for rendering anything else related to the entry. This call is not bound by a render scissor, so you can draw "out of bounds" as needed.
When called the parent element should reselect a hovered element based on the supplied mouse positions, if it tracks such things
The children of the entry that comply to SelectableElement, that is both Selectable and an Element