Interface TwinColumn<V>

Type Parameters:
V - value and options type for the component
All Superinterfaces:
Component, Component.BelongToFrame, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Field<Collection<V>>, HasContextHelp, HasHtmlCaption, HasHtmlDescription, HasHtmlSanitizer, HasOptionCaptionProvider<V>, HasOptionStyleProvider<V>, HasValidator<Collection<V>>, HasValue<Collection<V>>, HasValueSource<Collection<V>>, OptionsField<Collection<V>,V>, Requirable, Validatable
All Known Implementing Classes:
TwinColumnImpl

@StudioComponent(caption="TwinColumn", category="Components", xmlElement="twinColumn", icon="io/jmix/ui/icon/component/twinColumn.svg", canvasBehaviour=TWIN_COLUMN, documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/components/twin-column.html") public interface TwinColumn<V> extends OptionsField<Collection<V>,V>, Component.Focusable, HasOptionStyleProvider<V>
A component with two lists: left list for available options, right list for selected values.
  • Field Details

  • Method Details

    • getRows

      int getRows()
      Returns:
      the number of visible rows
    • setRows

      @StudioProperty(defaultValue="0") @PositiveOrZero void setRows(int rows)
      Sets the number of visible rows.
      Parameters:
      rows - number of visible rows
    • setReorderable

      void setReorderable(boolean reorderable)
      Allows you to configure whether items should be reordered after selection.

      Reordering is enabled by default.

      Parameters:
      reorderable - pass 'true' to enable reordering or 'false' otherwise
    • isReorderable

      boolean isReorderable()
      Returns:
      true if items are reordered or false otherwise
    • setAddAllBtnEnabled

      @StudioProperty(name="addAllBtnEnabled", defaultValue="false") void setAddAllBtnEnabled(boolean enabled)
      Enables "Add all" and "Remove all" buttons.
      Parameters:
      enabled - true if buttons should be enabled
    • isAddAllBtnEnabled

      boolean isAddAllBtnEnabled()
      Returns:
      true if buttons are enabled
    • setLeftColumnCaption

      @StudioProperty(type=LOCALIZED_STRING) void setLeftColumnCaption(@Nullable String leftColumnCaption)
      Sets caption for the left column.
      Parameters:
      leftColumnCaption - a caption for the left column
    • getLeftColumnCaption

      @Nullable String getLeftColumnCaption()
      Returns caption of the left column.
      Returns:
      caption text or null if not set.
    • setRightColumnCaption

      @StudioProperty(type=LOCALIZED_STRING) void setRightColumnCaption(@Nullable String rightColumnCaption)
      Sets caption for the right column.
      Parameters:
      rightColumnCaption - a caption for the right column
    • getRightColumnCaption

      @Nullable String getRightColumnCaption()
      Returns caption of the right column.
      Returns:
      caption text or null if not set.