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
    Modifier and Type
    Class
    Description
    class 
     

    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

    Fields
    Modifier and Type
    Field
    Description
    protected 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    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
     
    protected static Set<String>
    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
    setItems(List<elemental.json.JsonObject> items)
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 interface com.google.gwt.user.client.ui.HasEnabled
      Overrides:
      setEnabled in class com.vaadin.client.ui.VTwinColSelect
    • setReadOnly

      public void setReadOnly(boolean readOnly)
      Overrides:
      setReadOnly in class com.vaadin.client.ui.VTwinColSelect
    • createOptionsBox

      protected com.vaadin.client.ui.VTwinColSelect.DoubleClickListBox createOptionsBox()
      Overrides:
      createOptionsBox in class com.vaadin.client.ui.VTwinColSelect
    • createSelectionsBox

      protected com.vaadin.client.ui.VTwinColSelect.DoubleClickListBox createSelectionsBox()
      Overrides:
      createSelectionsBox in class com.vaadin.client.ui.VTwinColSelect
    • setItems

      public void setItems(List<elemental.json.JsonObject> items)
      Specified by:
      setItems in interface com.vaadin.client.connectors.AbstractMultiSelectConnector.MultiSelectWidget
      Overrides:
      setItems in class com.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 class com.vaadin.client.ui.VTwinColSelect
    • moveSelectedItemsRightToLeft

      protected void moveSelectedItemsRightToLeft()
      Overrides:
      moveSelectedItemsRightToLeft in class com.vaadin.client.ui.VTwinColSelect
    • moveSelectedItems

      protected static Set<String> moveSelectedItems(com.google.gwt.user.client.ui.ListBox source, com.google.gwt.user.client.ui.ListBox target)
    • onClick

      public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
      Specified by:
      onClick in interface com.google.gwt.event.dom.client.ClickHandler
      Overrides:
      onClick in class com.vaadin.client.ui.VTwinColSelect
    • onDoubleClick

      public void onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event)
      Specified by:
      onDoubleClick in interface com.google.gwt.event.dom.client.DoubleClickHandler
      Overrides:
      onDoubleClick in class com.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

      protected void afterUpdatesOptionsBox(List<elemental.json.JsonObject> items)
      Overrides:
      afterUpdatesOptionsBox in class com.vaadin.client.ui.VTwinColSelect
    • afterUpdatesSelectionsBox

      protected void afterUpdatesSelectionsBox(List<elemental.json.JsonObject> selection)
      Overrides:
      afterUpdatesSelectionsBox in class com.vaadin.client.ui.VTwinColSelect
    • enableAddAllBtn

      protected void enableAddAllBtn()
    • disableAddAllBtn

      protected void disableAddAllBtn()
    • updateAddAllBtnEnabled

      protected void updateAddAllBtnEnabled()
    • updateListBoxReadOnly

      protected void updateListBoxReadOnly()