Package limn.components
Class TokenRow
java.lang.Object
limn.scene.Widget
limn.scene.layout.Flex
limn.scene.layout.Row
limn.components.TokenRow
A
Row whose gap follows the resolved ControlSize step.
The gap is pushed from onMeasure, so it tracks a step change with no app code and
with no extra layout pass: the push uses Flex's silent form, which assigns without
requesting a pass, because the caller is already inside the pass that consumes it.
-
Nested Class Summary
Nested classes/interfaces inherited from class limn.scene.layout.Flex
Flex.CrossAlignment, Flex.MainAlignment -
Constructor Summary
ConstructorsConstructorDescriptionTokenRow()A row gutter atspacingMedium, the default between controls.TokenRow(Tokens.Role role) A row whose gap followsroleat the resolved size step. -
Method Summary
Modifier and TypeMethodDescriptionprotected SizeonMeasure(Constraints constraints) Reports the size this widget wants withinconstraints.Methods inherited from class limn.scene.layout.Flex
crossAlignment, gap, gapSilently, mainAlignment, onLayoutMethods inherited from class limn.scene.Widget
acceptsTextInput, add, baselineOffset, baselineOffsetOf, caretRect, children, clipboard, clipsChildren, controlSize, cursor, declaredControlSize, declaredLayoutDirection, declaredLocale, focusArrivedByTraversal, height, hitTest, imageCursor, invalidate, invalidate, isEnabled, isFocusable, isFocused, isShowing, isVisible, layoutBox, layoutDirection, locale, localToSceneX, localToSceneY, markNeedsContainedLayout, markNeedsLayout, measure, moveChild, neutralBase, onAttached, onCharTyped, onDetached, onFileDrop, onFocusGained, onFocusLost, onKeyEvent, onMouseEvent, onPaint, onPaintOverlay, onPreedit, overlayPassesPointer, paintChildren, paintOutset, paintWidget, parent, remove, requestFocus, revealInView, scene, sceneToLocalX, sceneToLocalY, setControlSize, setCursor, setEnabled, setFocusable, setImageCursor, setInheritanceHost, setLayoutDirection, setLocale, setTooltip, setTooltip, setVisible, shapeText, textRuler, tooltip, width, x, y
-
Constructor Details
-
TokenRow
public TokenRow()A row gutter atspacingMedium, the default between controls. -
TokenRow
A row whose gap followsroleat the resolved size step.
-
-
Method Details
-
onMeasure
Description copied from class:WidgetReports the size this widget wants withinconstraints. Called once per layout pass, and the result is cached against the constraints and the resolved axes (size step, layout direction, locale), so it must be a pure function of them and of this widget's own state.Resolve the
ControlSizeand theLayoutDirectiononce each here and thread them down; never read either in a constructor. The locale needs no threading: it is in scope, andI18n.locale()answers it wherever text is resolved.
-