Class JmixTreeGridWidget

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.google.gwt.user.client.ui.ResizeComposite
com.vaadin.client.widgets.Grid<elemental.json.JsonObject>
com.vaadin.client.widget.treegrid.TreeGrid
io.jmix.ui.widget.client.treegrid.JmixTreeGridWidget
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.Focusable, com.google.gwt.user.client.ui.HasEnabled, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, com.google.gwt.user.client.ui.RequiresResize, com.vaadin.client.DeferredWorker, com.vaadin.client.Focusable, com.vaadin.client.ui.SubPartAware, com.vaadin.client.widget.grid.selection.HasSelectionHandlers<elemental.json.JsonObject>, Iterable<com.google.gwt.user.client.ui.Widget>

public class JmixTreeGridWidget extends com.vaadin.client.widget.treegrid.TreeGrid
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected class 
     
    protected class 
     
    protected class 
     
    protected class 
     

    Nested classes/interfaces inherited from class com.vaadin.client.widget.treegrid.TreeGrid

    com.vaadin.client.widget.treegrid.TreeGrid.BodyUpdater

    Nested classes/interfaces inherited from class com.vaadin.client.widgets.Grid

    com.vaadin.client.widgets.Grid.AbstractGridKeyEvent<HANDLER extends com.vaadin.client.widget.grid.events.AbstractGridKeyEventHandler>, com.vaadin.client.widgets.Grid.AbstractGridMouseEvent<HANDLER extends com.vaadin.client.widget.grid.events.AbstractGridMouseEventHandler>, com.vaadin.client.widgets.Grid.AutoColumnWidthsRecalculator, com.vaadin.client.widgets.Grid.Column<C extends Object,T extends Object>, com.vaadin.client.widgets.Grid.ColumnHider, com.vaadin.client.widgets.Grid.Editor<T extends Object>, com.vaadin.client.widgets.Grid.EditorDomEvent<T extends Object>, com.vaadin.client.widgets.Grid.Footer, com.vaadin.client.widgets.Grid.FooterCell, com.vaadin.client.widgets.Grid.FooterRow, com.vaadin.client.widgets.Grid.GridEvent<T extends Object>, com.vaadin.client.widgets.Grid.Header, com.vaadin.client.widgets.Grid.HeaderCell, com.vaadin.client.widgets.Grid.HeaderRow, com.vaadin.client.widgets.Grid.SelectionColumn, com.vaadin.client.widgets.Grid.Sidebar, com.vaadin.client.widgets.Grid.StaticSection<ROWTYPE extends com.vaadin.client.widgets.Grid.StaticSection.StaticRow<?>>, com.vaadin.client.widgets.Grid.StaticSectionUpdater, com.vaadin.client.widgets.Grid.UserSorter

    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

    Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets

    com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    protected Map<com.vaadin.client.widgets.Grid.Column<?,elemental.json.JsonObject>,String>
     
    protected String
     
     
    protected Runnable
     
    static final String
     
    static final String
     
    static final String
     
    protected String
     

    Fields inherited from class com.vaadin.client.widgets.Grid

    cellFocusHandler

    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
    void
    addColumnId(com.vaadin.client.widgets.Grid.Column<?,elemental.json.JsonObject> column, String id)
     
    protected com.vaadin.client.widgets.Grid<elemental.json.JsonObject>.com.vaadin.client.widgets.Grid.ColumnHider
     
    protected com.vaadin.client.widgets.Grid.Editor<elemental.json.JsonObject>
     
    protected com.vaadin.client.widgets.Grid<elemental.json.JsonObject>.com.vaadin.client.widgets.Grid.SelectionColumn
    createSelectionColumn(com.vaadin.client.renderers.Renderer<Boolean> selectColumnRenderer)
     
    protected com.vaadin.client.widgets.Grid<elemental.json.JsonObject>.com.vaadin.client.widgets.Grid.UserSorter
     
    Map<com.vaadin.client.widgets.Grid.Column<?,elemental.json.JsonObject>,String>
     
     
     
     
    protected boolean
    isClickThroughEnabled(com.google.gwt.dom.client.Element e)
     
    protected boolean
    isEventHandlerShouldHandleEvent(com.google.gwt.dom.client.Element targetElement, com.vaadin.client.widgets.Grid.GridEvent<elemental.json.JsonObject> event)
     
    protected boolean
    isWidgetAllowsClickHandling(com.google.gwt.dom.client.Element targetElement, com.google.gwt.dom.client.NativeEvent nativeEvent)
     
    protected boolean
    isWidgetFocusable(com.google.gwt.user.client.ui.Widget widget)
     
    protected boolean
    isWidgetOrParentFocusable(com.google.gwt.user.client.ui.Widget widget)
     
    void
    removeColumnId(com.vaadin.client.widgets.Grid.Column<?,elemental.json.JsonObject> column)
     
    void
    setColumnIds(Map<com.vaadin.client.widgets.Grid.Column<?,elemental.json.JsonObject>,String> columnProperties)
     
    void
    setDeselectAllLabel(String deselectAllLabel)
     
    void
    setSelectAllLabel(String selectAllLabel)
     
    void
    setSelectionModel(com.vaadin.client.widget.grid.selection.SelectionModel<elemental.json.JsonObject> selectionModel)
     
    void
     
    void
    showEmptyState(boolean show)
     
    void
     

    Methods inherited from class com.vaadin.client.widget.treegrid.TreeGrid

    addBodyClickHandler, addBodyDoubleClickHandler, createBodyUpdater, focusCell, isElementInChildWidget

    Methods inherited from class com.vaadin.client.widgets.Grid

    add, addBodyKeyDownHandler, addBodyKeyPressHandler, addBodyKeyUpHandler, addBrowserEventHandler, addColumn, addColumn, addColumnReorderHandler, addColumnResizeHandler, addColumns, addColumnVisibilityChangeHandler, addDataAvailableHandler, addEnabledHandler, addFooterClickHandler, addFooterDoubleClickHandler, addFooterKeyDownHandler, addFooterKeyPressHandler, addFooterKeyUpHandler, addFooterRowAt, addHeaderClickHandler, addHeaderDoubleClickHandler, addHeaderKeyDownHandler, addHeaderKeyPressHandler, addHeaderKeyUpHandler, addHeaderRowAt, addRowHeightChangedHandler, addRowVisibilityChangeHandler, addScrollHandler, addSelectAllHandler, addSelectionAllowedHandler, addSelectionHandler, addSortHandler, addSpacerIndexChangedHandler, addSpacerVisibilityChangedHandler, appendFooterRow, appendHeaderRow, cancelEditor, clear, createAutoColumnWidthsRecalculator, createAutoScroller, createEscalator, createFooterUpdater, createHeaderUpdater, createSidebar, deselect, deselectAll, doAttachChildren, doDetachChildren, editRow, focus, getCellReference, getCellStyleGenerator, getColumn, getColumnCount, getColumnResizeMode, getColumns, getDataSource, getDefaultHeaderRow, getDetailsGenerator, getEditor, getEditorCancelCaption, getEditorHandler, getEditorSaveCaption, getEditorWidget, getEscalator, getEventCell, getFooter, getFooterRow, getFooterRowCount, getFrozenColumnCount, getHeader, getHeaderRow, getHeaderRowCount, getHeightByRows, getHeightMode, getRowStyleGenerator, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSelectionColumn, getSelectionModel, getSidebar, getSidebarMenu, getSortOrder, getSubPartElement, getSubPartName, getTabIndex, getVisibleColumns, hasSelectionColumn, isColumnReorderingAllowed, isDetailsVisible, isEditorActive, isEditorBuffered, isEditorEnabled, isEnabled, isFooterVisible, isHeaderVisible, isSelected, isSidebarOpen, isWorkPending, iterator, onAttach, onBrowserEvent, onDetach, onResize, prependFooterRow, prependHeaderRow, recalculateColumnWidths, remove, removeColumn, removeFooterRow, removeFooterRow, removeHeaderRow, removeHeaderRow, requestRefreshBody, resetSizesFromDom, resetVisibleDetails, saveEditor, scrollToEnd, scrollToRow, scrollToRow, scrollToRow, scrollToRow, scrollToStart, select, setAccessKey, setAriaRole, setCellStyleGenerator, setColumnOrder, setColumnReorderingAllowed, setColumnResizeMode, setDataSource, setDefaultHeaderRow, setDetailsGenerator, setDetailsHeight, setDetailsVisible, setEditorBuffered, setEditorCancelCaption, setEditorEnabled, setEditorHandler, setEditorSaveCaption, setEnabled, setFocus, setFooterVisible, setFrozenColumnCount, setHeaderVisible, setHeight, setHeightByRows, setHeightMode, setRowStyleGenerator, setScrollLeft, setScrollTop, setSidebarOpen, setSortOrder, setTabIndex, setWidth, sort, sort, sort

    Methods inherited from class com.google.gwt.user.client.ui.ResizeComposite

    initWidget

    Methods inherited from class com.google.gwt.user.client.ui.Composite

    claimElement, getWidget, initializeClaimedElement, isAttached, render, render, resolvePotentialElement, setWidget

    Methods inherited from class com.google.gwt.user.client.ui.Widget

    addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, 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

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Field Details

    • JMIX_ID_COLUMN_PREFIX

      public static final String JMIX_ID_COLUMN_PREFIX
      See Also:
    • JMIX_ID_COLUMN_HIDING_TOGGLE_PREFIX

      public static final String JMIX_ID_COLUMN_HIDING_TOGGLE_PREFIX
      See Also:
    • COLUMN_HIDING_TOGGLE_STYLENAME

      public static final String COLUMN_HIDING_TOGGLE_STYLENAME
      See Also:
    • MULTI_CHECK_STYLENAME

      public static final String MULTI_CHECK_STYLENAME
      See Also:
    • columnIds

      protected Map<com.vaadin.client.widgets.Grid.Column<?,elemental.json.JsonObject>,String> columnIds
    • emptyState

      protected JmixGridEmptyState emptyState
    • emptyStateLinkClickHandler

      protected Runnable emptyStateLinkClickHandler
    • selectAllLabel

      protected String selectAllLabel
    • deselectAllLabel

      protected String deselectAllLabel
  • Constructor Details

    • JmixTreeGridWidget

      public JmixTreeGridWidget()
  • Method Details

    • setSelectionModel

      public void setSelectionModel(com.vaadin.client.widget.grid.selection.SelectionModel<elemental.json.JsonObject> selectionModel)
      Overrides:
      setSelectionModel in class com.vaadin.client.widgets.Grid<elemental.json.JsonObject>
    • getColumnIds

      public Map<com.vaadin.client.widgets.Grid.Column<?,elemental.json.JsonObject>,String> getColumnIds()
    • setColumnIds

      public void setColumnIds(Map<com.vaadin.client.widgets.Grid.Column<?,elemental.json.JsonObject>,String> columnProperties)
    • addColumnId

      public void addColumnId(com.vaadin.client.widgets.Grid.Column<?,elemental.json.JsonObject> column, String id)
    • removeColumnId

      public void removeColumnId(com.vaadin.client.widgets.Grid.Column<?,elemental.json.JsonObject> column)
    • getSelectAllLabel

      public String getSelectAllLabel()
    • setSelectAllLabel

      public void setSelectAllLabel(String selectAllLabel)
    • getDeselectAllLabel

      public String getDeselectAllLabel()
    • setDeselectAllLabel

      public void setDeselectAllLabel(String deselectAllLabel)
    • updateFooterVisibility

      public void updateFooterVisibility()
    • showEmptyState

      public void showEmptyState(boolean show)
    • getEmptyState

      public JmixGridEmptyState getEmptyState()
    • createEditor

      protected com.vaadin.client.widgets.Grid.Editor<elemental.json.JsonObject> createEditor()
      Overrides:
      createEditor in class com.vaadin.client.widgets.Grid<elemental.json.JsonObject>
    • setStylePrimaryName

      public void setStylePrimaryName(String style)
      Overrides:
      setStylePrimaryName in class com.vaadin.client.widget.treegrid.TreeGrid
    • isWidgetAllowsClickHandling

      protected boolean isWidgetAllowsClickHandling(com.google.gwt.dom.client.Element targetElement, com.google.gwt.dom.client.NativeEvent nativeEvent)
      Overrides:
      isWidgetAllowsClickHandling in class com.vaadin.client.widgets.Grid<elemental.json.JsonObject>
    • isWidgetOrParentFocusable

      protected boolean isWidgetOrParentFocusable(com.google.gwt.user.client.ui.Widget widget)
    • isWidgetFocusable

      protected boolean isWidgetFocusable(com.google.gwt.user.client.ui.Widget widget)
    • isEventHandlerShouldHandleEvent

      protected boolean isEventHandlerShouldHandleEvent(com.google.gwt.dom.client.Element targetElement, com.vaadin.client.widgets.Grid.GridEvent<elemental.json.JsonObject> event)
      Overrides:
      isEventHandlerShouldHandleEvent in class com.vaadin.client.widgets.Grid<elemental.json.JsonObject>
    • isClickThroughEnabled

      protected boolean isClickThroughEnabled(com.google.gwt.dom.client.Element e)
    • createUserSorter

      protected com.vaadin.client.widgets.Grid<elemental.json.JsonObject>.com.vaadin.client.widgets.Grid.UserSorter createUserSorter()
      Overrides:
      createUserSorter in class com.vaadin.client.widgets.Grid<elemental.json.JsonObject>
    • createColumnHider

      protected com.vaadin.client.widgets.Grid<elemental.json.JsonObject>.com.vaadin.client.widgets.Grid.ColumnHider createColumnHider()
      Overrides:
      createColumnHider in class com.vaadin.client.widgets.Grid<elemental.json.JsonObject>
    • createSelectionColumn

      protected com.vaadin.client.widgets.Grid<elemental.json.JsonObject>.com.vaadin.client.widgets.Grid.SelectionColumn createSelectionColumn(com.vaadin.client.renderers.Renderer<Boolean> selectColumnRenderer)
      Overrides:
      createSelectionColumn in class com.vaadin.client.widgets.Grid<elemental.json.JsonObject>