Class JmixSingleListSelectWidget

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.VListSelect
io.jmix.ui.widget.client.listselect.JmixAbstractListSelectWidget
io.jmix.ui.widget.client.listselect.single.JmixSingleListSelectWidget
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, 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

public class JmixSingleListSelectWidget extends JmixAbstractListSelectWidget
  • Nested Class Summary

    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
    static final String
     
    protected boolean
     
    protected boolean
     

    Fields inherited from class io.jmix.ui.widget.client.listselect.JmixAbstractListSelectWidget

    doubleClickListener

    Fields inherited from class com.vaadin.client.ui.VListSelect

    container, select

    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
    boolean
     
    protected void
    manageNullItem(boolean nullOptionVisible)
     
    void
    setDoubleClickListener(Consumer<Integer> doubleClickListener)
     
    void
    setItems(List<elemental.json.JsonObject> items)
     
    void
    setNullOptionVisible(boolean nullOptionVisible)
     

    Methods inherited from class io.jmix.ui.widget.client.listselect.JmixAbstractListSelectWidget

    getDoubleClickListener, selectionEvent

    Methods inherited from class com.vaadin.client.ui.VListSelect

    addSelectionChangeListener, focus, getRows, getSelectedItemKeys, getSelectedItems, getTabIndex, isEnabled, isReadOnly, setEnabled, setHeight, setReadOnly, setRows, setStylePrimaryName, setTabIndex, setWidth, updateEnabledState

    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, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • NULL_ITEM_KEY

      public static final String NULL_ITEM_KEY
      See Also:
    • nullOptionVisible

      protected boolean nullOptionVisible
    • nullOptionSelected

      protected boolean nullOptionSelected
  • Constructor Details

    • JmixSingleListSelectWidget

      public JmixSingleListSelectWidget()
  • Method Details

    • setDoubleClickListener

      public void setDoubleClickListener(Consumer<Integer> doubleClickListener)
      Overrides:
      setDoubleClickListener in class JmixAbstractListSelectWidget
    • 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.VListSelect
    • isNullOptionVisible

      public boolean isNullOptionVisible()
    • setNullOptionVisible

      public void setNullOptionVisible(boolean nullOptionVisible)
    • manageNullItem

      protected void manageNullItem(boolean nullOptionVisible)