V - value and options type for the component@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%/backoffice-ui/vcl/components/twin-column.html") public interface TwinColumn<V> extends OptionsField<java.util.Collection<V>,V>, Component.Focusable, HasOptionStyleProvider<V>
HasValue.ValueChangeEvent<V>Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperHasContextHelp.ContextHelpIconClickEvent| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLeftColumnCaption()
Returns caption of the left column.
|
java.lang.String |
getRightColumnCaption()
Returns caption of the right column.
|
int |
getRows() |
boolean |
isAddAllBtnEnabled() |
boolean |
isReorderable() |
void |
setAddAllBtnEnabled(boolean enabled)
Enables "Add all" and "Remove all" buttons.
|
void |
setLeftColumnCaption(java.lang.String leftColumnCaption)
Sets caption for the left column.
|
void |
setReorderable(boolean reorderable)
Allows you to configure whether items should be reordered after selection.
|
void |
setRightColumnCaption(java.lang.String rightColumnCaption)
Sets caption for the right column.
|
void |
setRows(int rows)
Sets the number of visible rows.
|
getOptions, setOptions, setOptionsEnum, setOptionsList, setOptionsMapgetValueSource, setValueSourceaddValueChangeListener, clear, getEmptyValue, getValue, isEmpty, setValueisEditable, isEditableWithParent, setEditablegetFrame, setFrameaddStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionisValid, isValidateOnCommit, validategetIcon, setIcon, setIconFromSetgetContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledisCaptionAsHtml, setCaptionAsHtmlgetCaption, setCaptiongetDescription, setDescriptionisDescriptionAsHtml, setDescriptionAsHtmlisHtmlSanitizerEnabled, setHtmlSanitizerEnabledaddValidator, addValidators, getValidators, removeValidatorgetRequiredMessage, isRequired, setRequired, setRequiredMessagegetOptionCaptionProvider, setOptionCaptionProviderfocus, getTabIndex, isFocusable, setFocusable, setTabIndexgetOptionStyleProvider, setOptionStyleProviderstatic final java.lang.String NAME
int getRows()
@StudioProperty(defaultValue="0") @PositiveOrZero void setRows(int rows)
rows - number of visible rowsvoid setReorderable(boolean reorderable)
Reordering is enabled by default.
reorderable - pass 'true' to enable reordering or 'false' otherwiseboolean isReorderable()
@StudioProperty(name="addAllBtnEnabled", defaultValue="false") void setAddAllBtnEnabled(boolean enabled)
enabled - true if buttons should be enabledboolean isAddAllBtnEnabled()
@StudioProperty(type=LOCALIZED_STRING) void setLeftColumnCaption(@Nullable java.lang.String leftColumnCaption)
leftColumnCaption - a caption for the left column@Nullable java.lang.String getLeftColumnCaption()
@StudioProperty(type=LOCALIZED_STRING) void setRightColumnCaption(@Nullable java.lang.String rightColumnCaption)
rightColumnCaption - a caption for the right column@Nullable java.lang.String getRightColumnCaption()