Package limn.components
Class TokenColumn
java.lang.Object
limn.scene.Widget
limn.scene.layout.Flex
limn.scene.layout.Column
limn.components.TokenColumn
A
Column whose gap follows the resolved ControlSize step.
The column form of TokenRow; see there for why the push happens in onMeasure.-
Nested Class Summary
Nested classes/interfaces inherited from class limn.scene.layout.Flex
Flex.CrossAlignment, Flex.MainAlignment -
Constructor Summary
ConstructorsConstructorDescriptionA column gutter atspacingMedium, the default between controls.TokenColumn(Tokens.Role role) A column 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
-
TokenColumn
public TokenColumn()A column gutter atspacingMedium, the default between controls. -
TokenColumn
A column 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.
-