Class THoverScrollElement<E extends TElement>
java.lang.Object
com.thecsdev.common.scene.Node<TElement>
com.thecsdev.commonmc.api.client.gui.TElement
com.thecsdev.commonmc.api.client.gui.misc.THoverScrollElement<E>
- All Implemented Interfaces:
INode<TElement>, INodeBounded<TElement,Bounds2i>, INodeRenderable<TElement, TGuiGraphics>, Iterable<TElement>, Collection<TElement>
- Direct Known Subclasses:
THoverScrollElement.Panel
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class TElement
eInitialized -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull NotNullProperty<CompassDirection> NotNullPropertythat holds the scroll direction.booleanEach tick,tickCallback()setsTElement.visibleProperty()value to be the return value of this method.final @NotNull ObjectProperty<E> ObjectPropertythat holds the targetTElement.protected voidCallback method that is invoked automatically every GUI tick, if and afterNode.getParent()ticks.Methods inherited from class TElement
addRel, boundsProperty, clearAndInit, clipsDescendantsProperty, contextMenuProperty, dragEndCallback, dragStartCallback, findElementAt, focusableProperty, focusGainedCallback, focusLostCallback, forEachVisible, getBaseType, getBounds, getClient, getContentBounds, getCursor, getSelf, getTooltip, hoverableProperty, hoverGainedCallback, hoverLostCallback, initCallback, inputCallback, invalidateTooltipCache, isFocusable, isFocused, isHoverable, isHovered, isHoveredOrFocused, isVisible, move, moveChildren, moveTo, postRenderCallback, removeRel, renderCallback, screenProperty, setBounds, setBounds, setBounds, showContextMenu, tooltipProperty, toString, visiblePropertyMethods inherited from class Node
add, addAll, childAddedCallback, childRemovedCallback, clear, contains, containsAll, equals, findChild, findParent, findSibling, forEach, get, getFirst, getLast, getParent, hashCode, indexOf, isEmpty, iterator, parentProperty, remove, remove, remove, removeAll, retainAll, rootProperty, size, toArray, toArray
-
Constructor Details
-
THoverScrollElement
public THoverScrollElement() -
THoverScrollElement
-
-
Method Details
-
targetProperty
ObjectPropertythat holds the targetTElement. -
directionProperty
NotNullPropertythat holds the scroll direction. -
tickCallback
Description copied from class:TElementCallback method that is invoked automatically every GUI tick, if and afterNode.getParent()ticks.For performance optimization reasons, this is invoked if this element is contained within its parent's
TElement.getBounds().Note that this is regardless of what
TElement.isVisible()returns. The only requirements are the element being "within parent bounds" and the parent having ticked.- Overrides:
tickCallbackin classTElement
-
shouldBeVisible
Each tick,tickCallback()setsTElement.visibleProperty()value to be the return value of this method.
-