Class InputColumnController

java.lang.Object
com.vaadin.featurepack.ui.InputColumnController
All Implemented Interfaces:
Serializable

public class InputColumnController extends Object implements Serializable
Controls the logic of handling the width based on the number of columns for components that inherently do not support input columns. This controller is used for implementing the behavior of legacy Vaadin Framework v7/v8 components in newer Vaadin Flow counterparts. Since Vaadin Flow does not have a direct concept of "columns" in text-based fields, this controller approximates the columns by setting the width in character units ("ch"), which may vary depending on the font and browser. When the number of columns is set to zero, the width is set to null. The component using this controller should implement HasInputColumns.
See Also:
  • Constructor Details

    • InputColumnController

      public InputColumnController(com.vaadin.flow.component.HasSize hasSize)
      Constructs a new controller for the given component.
      Parameters:
      hasSize - the reference to the component that uses this controller