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.Wrapper
HasContextHelp.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, setOptionsMap
getValueSource, setValueSource
addValueChangeListener, clear, getEmptyValue, getValue, isEmpty, setValue
isEditable, isEditableWithParent, setEditable
getFrame, setFrame
addStyleName, 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, withUnwrappedComposition
isValid, isValidateOnCommit, validate
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
isCaptionAsHtml, setCaptionAsHtml
getCaption, setCaption
getDescription, setDescription
isDescriptionAsHtml, setDescriptionAsHtml
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
addValidator, addValidators, getValidators, removeValidator
getRequiredMessage, isRequired, setRequired, setRequiredMessage
getOptionCaptionProvider, setOptionCaptionProvider
focus, getTabIndex, isFocusable, setFocusable, setTabIndex
getOptionStyleProvider, setOptionStyleProvider
static 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()