public class JmixTwinColSelectWidget
extends com.vaadin.client.ui.VTwinColSelect
Modifier and Type | Class and Description |
---|---|
class |
JmixTwinColSelectWidget.JmixDoubleClickListBox |
Modifier and Type | Field and Description |
---|---|
protected com.vaadin.client.ui.VButton |
addAll |
protected boolean |
addAllBtnEnabled |
protected com.google.gwt.event.shared.HandlerRegistration |
addAllHandlerRegistration |
protected com.vaadin.client.ui.VButton |
removeAll |
protected com.google.gwt.event.shared.HandlerRegistration |
removeAllHandlerRegistration |
protected boolean |
reorderable |
Constructor and Description |
---|
JmixTwinColSelectWidget() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAll() |
protected void |
afterUpdatesOptionsBox(java.util.List<elemental.json.JsonObject> items) |
protected void |
afterUpdatesSelectionsBox(java.util.List<elemental.json.JsonObject> selection) |
protected com.vaadin.client.ui.VTwinColSelect.DoubleClickListBox |
createOptionsBox() |
protected com.vaadin.client.ui.VTwinColSelect.DoubleClickListBox |
createSelectionsBox() |
protected void |
disableAddAllBtn() |
protected void |
enableAddAllBtn() |
boolean |
isAddAllBtnEnabled() |
boolean |
isReorderable() |
protected static java.util.Set<java.lang.String> |
moveSelectedItems(com.google.gwt.user.client.ui.ListBox source,
com.google.gwt.user.client.ui.ListBox target) |
protected void |
moveSelectedItemsLeftToRight() |
protected void |
moveSelectedItemsRightToLeft() |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event) |
protected void |
removeAll() |
void |
setAddAllBtnEnabled(boolean addAllBtnEnabled) |
void |
setEnabled(boolean enabled) |
void |
setItems(java.util.List<elemental.json.JsonObject> items) |
void |
setReadOnly(boolean readOnly) |
void |
setReorderable(boolean reorderable) |
protected void |
updateAddAllBtnEnabled() |
protected void |
updateListBox(java.util.List<elemental.json.JsonObject> items,
com.google.gwt.user.client.ui.ListBox listBox,
java.util.function.BiConsumer<com.google.gwt.user.client.ui.ListBox,java.util.List<elemental.json.JsonObject>> updateTask) |
protected void |
updateListBoxItems(com.google.gwt.user.client.ui.ListBox listBox,
java.util.List<elemental.json.JsonObject> options) |
protected void |
updateListBoxReadOnly() |
addSelectionChangeListener, clearInternalHeights, clearInternalWidths, focus, getCaptionWrapper, getNavigationSelectKey, getOptionsCaption, getRows, getSelectionBitmap, getSelectionsCaption, getSubPartElement, getSubPartName, isEnabled, isReadOnly, onKeyDown, onMouseDown, setInternalHeights, setInternalWidths, setRows, setTabIndex, updateCaptions, updateListBox
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
protected boolean addAllBtnEnabled
protected boolean reorderable
protected com.vaadin.client.ui.VButton addAll
protected com.vaadin.client.ui.VButton removeAll
protected com.google.gwt.event.shared.HandlerRegistration addAllHandlerRegistration
protected com.google.gwt.event.shared.HandlerRegistration removeAllHandlerRegistration
public void setEnabled(boolean enabled)
setEnabled
in interface com.google.gwt.user.client.ui.HasEnabled
setEnabled
in class com.vaadin.client.ui.VTwinColSelect
public void setReadOnly(boolean readOnly)
setReadOnly
in class com.vaadin.client.ui.VTwinColSelect
protected com.vaadin.client.ui.VTwinColSelect.DoubleClickListBox createOptionsBox()
createOptionsBox
in class com.vaadin.client.ui.VTwinColSelect
protected com.vaadin.client.ui.VTwinColSelect.DoubleClickListBox createSelectionsBox()
createSelectionsBox
in class com.vaadin.client.ui.VTwinColSelect
public void setItems(java.util.List<elemental.json.JsonObject> items)
setItems
in interface com.vaadin.client.connectors.AbstractMultiSelectConnector.MultiSelectWidget
setItems
in class com.vaadin.client.ui.VTwinColSelect
protected void updateListBox(java.util.List<elemental.json.JsonObject> items, com.google.gwt.user.client.ui.ListBox listBox, java.util.function.BiConsumer<com.google.gwt.user.client.ui.ListBox,java.util.List<elemental.json.JsonObject>> updateTask)
protected void updateListBoxItems(com.google.gwt.user.client.ui.ListBox listBox, java.util.List<elemental.json.JsonObject> options)
protected void moveSelectedItemsLeftToRight()
moveSelectedItemsLeftToRight
in class com.vaadin.client.ui.VTwinColSelect
protected void moveSelectedItemsRightToLeft()
moveSelectedItemsRightToLeft
in class com.vaadin.client.ui.VTwinColSelect
protected static java.util.Set<java.lang.String> moveSelectedItems(com.google.gwt.user.client.ui.ListBox source, com.google.gwt.user.client.ui.ListBox target)
public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick
in interface com.google.gwt.event.dom.client.ClickHandler
onClick
in class com.vaadin.client.ui.VTwinColSelect
public void onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event)
onDoubleClick
in interface com.google.gwt.event.dom.client.DoubleClickHandler
onDoubleClick
in class com.vaadin.client.ui.VTwinColSelect
protected void addAll()
protected void removeAll()
public boolean isAddAllBtnEnabled()
public void setAddAllBtnEnabled(boolean addAllBtnEnabled)
public void setReorderable(boolean reorderable)
public boolean isReorderable()
protected void afterUpdatesOptionsBox(java.util.List<elemental.json.JsonObject> items)
afterUpdatesOptionsBox
in class com.vaadin.client.ui.VTwinColSelect
protected void afterUpdatesSelectionsBox(java.util.List<elemental.json.JsonObject> selection)
afterUpdatesSelectionsBox
in class com.vaadin.client.ui.VTwinColSelect
protected void enableAddAllBtn()
protected void disableAddAllBtn()
protected void updateAddAllBtnEnabled()
protected void updateListBoxReadOnly()