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 classes/interfaces inherited from class com.vaadin.client.ui.VTwinColSelect
com.vaadin.client.ui.VTwinColSelect.DoubleClickListBox
Nested 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
Modifier and TypeFieldDescriptionprotected com.vaadin.client.ui.VButton
protected boolean
protected com.google.gwt.event.shared.HandlerRegistration
protected com.vaadin.client.ui.VButton
protected com.google.gwt.event.shared.HandlerRegistration
protected boolean
Fields inherited from class com.vaadin.client.ui.VTwinColSelect
addItemsLeftToRightButton, buttons, CLASSNAME, optionsListBox, removeItemsRightToLeftButton, selectionChangeListeners, selectionsListBox
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAll()
protected void
afterUpdatesOptionsBox
(List<elemental.json.JsonObject> items) protected void
afterUpdatesSelectionsBox
(List<elemental.json.JsonObject> selection) protected com.vaadin.client.ui.VTwinColSelect.DoubleClickListBox
protected com.vaadin.client.ui.VTwinColSelect.DoubleClickListBox
protected void
protected void
boolean
boolean
moveSelectedItems
(com.google.gwt.user.client.ui.ListBox source, com.google.gwt.user.client.ui.ListBox target) protected void
protected void
void
onClick
(com.google.gwt.event.dom.client.ClickEvent event) void
onDoubleClick
(com.google.gwt.event.dom.client.DoubleClickEvent event) protected void
void
setAddAllBtnEnabled
(boolean addAllBtnEnabled) void
setEnabled
(boolean enabled) void
void
setReadOnly
(boolean readOnly) void
setReorderable
(boolean reorderable) protected void
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) protected void
updateListBoxItems
(com.google.gwt.user.client.ui.ListBox listBox, List<elemental.json.JsonObject> options) protected void
Methods 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, updateListBox
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
Methods 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, unsinkEvents
Methods 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:
setEnabled
in interfacecom.google.gwt.user.client.ui.HasEnabled
- Overrides:
setEnabled
in classcom.vaadin.client.ui.VTwinColSelect
-
setReadOnly
public void setReadOnly(boolean readOnly) - Overrides:
setReadOnly
in classcom.vaadin.client.ui.VTwinColSelect
-
createOptionsBox
protected com.vaadin.client.ui.VTwinColSelect.DoubleClickListBox createOptionsBox()- Overrides:
createOptionsBox
in classcom.vaadin.client.ui.VTwinColSelect
-
createSelectionsBox
protected com.vaadin.client.ui.VTwinColSelect.DoubleClickListBox createSelectionsBox()- Overrides:
createSelectionsBox
in classcom.vaadin.client.ui.VTwinColSelect
-
setItems
- Specified by:
setItems
in interfacecom.vaadin.client.connectors.AbstractMultiSelectConnector.MultiSelectWidget
- Overrides:
setItems
in 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:
moveSelectedItemsLeftToRight
in classcom.vaadin.client.ui.VTwinColSelect
-
moveSelectedItemsRightToLeft
protected void moveSelectedItemsRightToLeft()- Overrides:
moveSelectedItemsRightToLeft
in classcom.vaadin.client.ui.VTwinColSelect
-
moveSelectedItems
-
onClick
public void onClick(com.google.gwt.event.dom.client.ClickEvent event) - Specified by:
onClick
in interfacecom.google.gwt.event.dom.client.ClickHandler
- Overrides:
onClick
in classcom.vaadin.client.ui.VTwinColSelect
-
onDoubleClick
public void onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event) - Specified by:
onDoubleClick
in interfacecom.google.gwt.event.dom.client.DoubleClickHandler
- Overrides:
onDoubleClick
in 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:
afterUpdatesOptionsBox
in classcom.vaadin.client.ui.VTwinColSelect
-
afterUpdatesSelectionsBox
- Overrides:
afterUpdatesSelectionsBox
in classcom.vaadin.client.ui.VTwinColSelect
-
enableAddAllBtn
protected void enableAddAllBtn() -
disableAddAllBtn
protected void disableAddAllBtn() -
updateAddAllBtnEnabled
protected void updateAddAllBtnEnabled() -
updateListBoxReadOnly
protected void updateListBoxReadOnly()
-