Class TokenColumn


public class TokenColumn extends Column
A Column whose gap follows the resolved ControlSize step. The column form of TokenRow; see there for why the push happens in onMeasure.
  • Constructor Details

    • TokenColumn

      public TokenColumn()
      A column gutter at spacingMedium, the default between controls.
    • TokenColumn

      public TokenColumn(Tokens.Role role)
      A column whose gap follows role at the resolved size step.
  • Method Details

    • onMeasure

      protected Size onMeasure(Constraints constraints)
      Description copied from class: Widget
      Reports the size this widget wants within constraints. 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 ControlSize and the LayoutDirection once each here and thread them down; never read either in a constructor. The locale needs no threading: it is in scope, and I18n.locale() answers it wherever text is resolved.

      Overrides:
      onMeasure in class Flex