Class JmixTwinColSelectWidget
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.vaadin.client.ui.VTwinColSelect
io.jmix.ui.widget.client.twincolselect.JmixTwinColSelectWidget
- All Implemented Interfaces:
com.google.gwt.event.dom.client.ClickHandler,com.google.gwt.event.dom.client.DoubleClickHandler,com.google.gwt.event.dom.client.KeyDownHandler,com.google.gwt.event.dom.client.MouseDownHandler,com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.EventHandler,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasEnabled,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget,com.vaadin.client.connectors.AbstractMultiSelectConnector.MultiSelectWidget,com.vaadin.client.Focusable,com.vaadin.client.ui.Field,com.vaadin.client.ui.SubPartAware
public class JmixTwinColSelectWidget
extends com.vaadin.client.ui.VTwinColSelect
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.vaadin.client.ui.VTwinColSelect
com.vaadin.client.ui.VTwinColSelect.DoubleClickListBoxNested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.client.ui.VButtonprotected booleanprotected com.google.gwt.event.shared.HandlerRegistrationprotected com.vaadin.client.ui.VButtonprotected com.google.gwt.event.shared.HandlerRegistrationprotected booleanFields inherited from class com.vaadin.client.ui.VTwinColSelect
addItemsLeftToRightButton, buttons, CLASSNAME, optionsListBox, removeItemsRightToLeftButton, selectionChangeListeners, selectionsListBoxFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAll()protected voidafterUpdatesOptionsBox(List<elemental.json.JsonObject> items) protected voidafterUpdatesSelectionsBox(List<elemental.json.JsonObject> selection) protected com.vaadin.client.ui.VTwinColSelect.DoubleClickListBoxprotected com.vaadin.client.ui.VTwinColSelect.DoubleClickListBoxprotected voidprotected voidbooleanbooleanmoveSelectedItems(com.google.gwt.user.client.ui.ListBox source, com.google.gwt.user.client.ui.ListBox target) protected voidprotected voidvoidonClick(com.google.gwt.event.dom.client.ClickEvent event) voidonDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event) protected voidvoidsetAddAllBtnEnabled(boolean addAllBtnEnabled) voidsetEnabled(boolean enabled) voidvoidsetReadOnly(boolean readOnly) voidsetReorderable(boolean reorderable) protected voidprotected voidupdateListBox(List<elemental.json.JsonObject> items, com.google.gwt.user.client.ui.ListBox listBox, BiConsumer<com.google.gwt.user.client.ui.ListBox, List<elemental.json.JsonObject>> updateTask) protected voidupdateListBoxItems(com.google.gwt.user.client.ui.ListBox listBox, List<elemental.json.JsonObject> options) protected voidMethods inherited from class com.vaadin.client.ui.VTwinColSelect
addSelectionChangeListener, clearInternalHeights, clearInternalWidths, focus, getCaptionWrapper, getNavigationSelectKey, getOptionsCaption, getRows, getSelectionBitmap, getSelectionsCaption, getSubPartElement, getSubPartName, isEnabled, isReadOnly, onKeyDown, onMouseDown, setInternalHeights, setInternalWidths, setRows, setTabIndex, updateCaptions, updateListBoxMethods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Field Details
-
addAllBtnEnabled
protected boolean addAllBtnEnabled -
reorderable
protected boolean reorderable -
addAll
protected com.vaadin.client.ui.VButton addAll -
removeAll
protected com.vaadin.client.ui.VButton removeAll -
addAllHandlerRegistration
protected com.google.gwt.event.shared.HandlerRegistration addAllHandlerRegistration -
removeAllHandlerRegistration
protected com.google.gwt.event.shared.HandlerRegistration removeAllHandlerRegistration
-
-
Constructor Details
-
JmixTwinColSelectWidget
public JmixTwinColSelectWidget()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfacecom.google.gwt.user.client.ui.HasEnabled- Overrides:
setEnabledin classcom.vaadin.client.ui.VTwinColSelect
-
setReadOnly
public void setReadOnly(boolean readOnly) - Overrides:
setReadOnlyin classcom.vaadin.client.ui.VTwinColSelect
-
createOptionsBox
protected com.vaadin.client.ui.VTwinColSelect.DoubleClickListBox createOptionsBox()- Overrides:
createOptionsBoxin classcom.vaadin.client.ui.VTwinColSelect
-
createSelectionsBox
protected com.vaadin.client.ui.VTwinColSelect.DoubleClickListBox createSelectionsBox()- Overrides:
createSelectionsBoxin classcom.vaadin.client.ui.VTwinColSelect
-
setItems
- Specified by:
setItemsin interfacecom.vaadin.client.connectors.AbstractMultiSelectConnector.MultiSelectWidget- Overrides:
setItemsin classcom.vaadin.client.ui.VTwinColSelect
-
updateListBox
protected void updateListBox(List<elemental.json.JsonObject> items, com.google.gwt.user.client.ui.ListBox listBox, BiConsumer<com.google.gwt.user.client.ui.ListBox, List<elemental.json.JsonObject>> updateTask) -
updateListBoxItems
protected void updateListBoxItems(com.google.gwt.user.client.ui.ListBox listBox, List<elemental.json.JsonObject> options) -
moveSelectedItemsLeftToRight
protected void moveSelectedItemsLeftToRight()- Overrides:
moveSelectedItemsLeftToRightin classcom.vaadin.client.ui.VTwinColSelect
-
moveSelectedItemsRightToLeft
protected void moveSelectedItemsRightToLeft()- Overrides:
moveSelectedItemsRightToLeftin classcom.vaadin.client.ui.VTwinColSelect
-
moveSelectedItems
-
onClick
public void onClick(com.google.gwt.event.dom.client.ClickEvent event) - Specified by:
onClickin interfacecom.google.gwt.event.dom.client.ClickHandler- Overrides:
onClickin classcom.vaadin.client.ui.VTwinColSelect
-
onDoubleClick
public void onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event) - Specified by:
onDoubleClickin interfacecom.google.gwt.event.dom.client.DoubleClickHandler- Overrides:
onDoubleClickin classcom.vaadin.client.ui.VTwinColSelect
-
addAll
protected void addAll() -
removeAll
protected void removeAll() -
isAddAllBtnEnabled
public boolean isAddAllBtnEnabled() -
setAddAllBtnEnabled
public void setAddAllBtnEnabled(boolean addAllBtnEnabled) -
setReorderable
public void setReorderable(boolean reorderable) -
isReorderable
public boolean isReorderable() -
afterUpdatesOptionsBox
- Overrides:
afterUpdatesOptionsBoxin classcom.vaadin.client.ui.VTwinColSelect
-
afterUpdatesSelectionsBox
- Overrides:
afterUpdatesSelectionsBoxin classcom.vaadin.client.ui.VTwinColSelect
-
enableAddAllBtn
protected void enableAddAllBtn() -
disableAddAllBtn
protected void disableAddAllBtn() -
updateAddAllBtnEnabled
protected void updateAddAllBtnEnabled() -
updateListBoxReadOnly
protected void updateListBoxReadOnly()
-