Class JmixScrollTableWidget

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.FlowPanel
com.vaadin.v7.client.ui.VScrollTable
io.jmix.ui.widget.client.table.JmixScrollTableWidget
All Implemented Interfaces:
com.google.gwt.event.dom.client.BlurHandler, com.google.gwt.event.dom.client.FocusHandler, com.google.gwt.event.dom.client.ScrollHandler, 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.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.InsertPanel, com.google.gwt.user.client.ui.InsertPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, com.vaadin.client.DeferredWorker, com.vaadin.client.Focusable, com.vaadin.client.ui.ActionOwner, com.vaadin.client.ui.dd.VHasDropHandler, com.vaadin.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner, com.vaadin.client.ui.SubPartAware, TableWidget, Iterable<com.google.gwt.user.client.ui.Widget>
Direct Known Subclasses:
JmixGroupTableWidget

public class JmixScrollTableWidget extends com.vaadin.v7.client.ui.VScrollTable implements TableWidget
  • Nested Class Summary

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

    Nested classes/interfaces inherited from class com.vaadin.v7.client.ui.VScrollTable

    com.vaadin.v7.client.ui.VScrollTable.ContextMenuDetails, com.vaadin.v7.client.ui.VScrollTable.FocusableScrollContextPanel, com.vaadin.v7.client.ui.VScrollTable.FooterCell, com.vaadin.v7.client.ui.VScrollTable.HeaderCell, com.vaadin.v7.client.ui.VScrollTable.RowHeadersFooterCell, com.vaadin.v7.client.ui.VScrollTable.RowHeadersHeaderCell, com.vaadin.v7.client.ui.VScrollTable.RowRequestHandler, com.vaadin.v7.client.ui.VScrollTable.SelectMode, com.vaadin.v7.client.ui.VScrollTable.TableFooter, com.vaadin.v7.client.ui.VScrollTable.TableHead, com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody, com.vaadin.v7.client.ui.VScrollTable.VScrollTableDropHandler

    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

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

    com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget

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

    com.google.gwt.user.client.ui.InsertPanel.ForIsWidget

    Nested classes/interfaces inherited from interface io.jmix.ui.widget.client.tableshared.TableWidget

    TableWidget.AfterBodyUpdateListener
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from class com.vaadin.v7.client.ui.VScrollTable

    ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, bodyActionKeys, cacheRate, client, collapsedColumns, collapsibleMenuContent, columnOrder, contextMenu, dropHandler, enabled, firstvisible, focusedRow, focusFirstItemInNextRender, focusLastItemInNextRender, headerChangedDuringUpdate, hideColumnControlAfterClick, immediate, initializedAndAttached, lastRenderedHeight, multiselectPending, nullSelectionAllowed, pageLength, paintableId, postponeSanityCheckForLastRendered, recalcWidths, rendering, rowRequestHandler, scrollBody, scrollBodyPanel, scrollLeft, selectedRowKeys, selectFirstItemInNextRender, selectionChanged, selectionRangeStart, selectLastItemInNextRender, serverCacheFirst, serverCacheLast, showColFooters, showColHeaders, showRowHeaders, sizeNeedsInit, sortAscending, sortColumn, STYLENAME, tabIndex, tFoot, tHead, totalRows, visibleColOrder, visibleColumnActionIndex

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    protected com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody
     
    protected com.vaadin.v7.client.ui.VScrollTable.TableHead
     
    void
     
    int
     
    getColKeyByIndex(int index)
     
    protected int
     
    int
     
    protected int
     
    com.vaadin.v7.client.ui.VScrollTable.TableHead
     
    protected com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow
    getNextRowToFocus(com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow currentRow, int offset)
     
    com.google.gwt.user.client.ui.Widget
     
    List<com.google.gwt.user.client.ui.Widget>
     
    com.vaadin.v7.client.ui.VScrollTable.RowRequestHandler
     
    com.vaadin.client.ui.ShortcutActionHandler
     
     
     
     
     
    boolean
    handleBodyContextMenu(int left, int top)
     
    protected void
     
    boolean
     
    void
    initializeRows(com.vaadin.client.UIDL uidl, com.vaadin.client.UIDL rowData)
     
    protected boolean
     
    protected boolean
     
    protected boolean
     
    boolean
    isCustomColumn(int colIndex)
     
    boolean
     
    boolean
    isGenericRow(com.google.gwt.user.client.ui.Widget rowWidget)
     
    protected boolean
    isShowBrowserContextMenu(com.google.gwt.user.client.Event event)
     
    boolean
     
    boolean
     
    protected boolean
    needToSelectFocused(com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow currentRow)
     
    void
    onBlur(com.google.gwt.event.dom.client.BlurEvent event)
     
    void
    onBrowserEvent(com.google.gwt.user.client.Event event)
     
    protected void
     
    void
    onFocus(com.google.gwt.event.dom.client.FocusEvent event)
     
    void
    onScroll(com.google.gwt.event.dom.client.ScrollEvent event)
     
    protected void
     
    protected void
    reassignHeaderCellWidth(int colIndex, com.vaadin.v7.client.ui.VScrollTable.HeaderCell hcell, int minWidth)
     
    void
     
    protected void
    reOrderColumn(String columnKey, int newIndex)
     
    void
    requestFocus(String itemKey, String columnKey)
     
    void
     
    void
    setAggregationRowVisible(boolean visible)
     
    void
    setColWidth(int colIndex, int w, boolean isDefinedWidth)
     
    void
    setEnabled(boolean enabled)
     
    void
    setPresentationsMenu(com.google.gwt.user.client.ui.Widget presentationsMenu)
     
    void
    setShortcutActionHandler(com.vaadin.client.ui.ShortcutActionHandler handler)
     
    void
     
    protected void
    showEmptyState(boolean show)
     
    void
     
    protected void
    toggleScrollBarSpacer(boolean willHaveScrollbar)
    Adds right padding for header and aggregation row (if visible) to compensate table body vertical scroll bar.
    protected void
    updateAggregationRow(com.vaadin.client.UIDL uidl)
     
    void
    updateBody(com.vaadin.client.UIDL uidl, int firstRow, int reqRows)
     
    void
    updateColumnProperties(com.vaadin.client.UIDL uidl)
     
    void
    updateRowsInBody(com.vaadin.client.UIDL partialRowUpdates)
     
    void
     

    Methods inherited from class com.vaadin.v7.client.ui.VScrollTable

    addAndRemoveRows, buildCaptionHtmlSnippet, calcFirstRowInViewPort, cancelScrollingVelocityTimer, checkColumnForUpdateWidth, createTableFooter, deselectAll, discardRowsOutsideCacheWindow, enableLazyScroller, focus, focusRowFromBody, getActionCaption, getActionIcon, getActions, getChildMeasurementHint, getClient, getColIndexByKey, getDropHandler, getFocusedRow, getHierarchyColumnIndex, getNavigationDownKey, getNavigationEndKey, getNavigationLeftKey, getNavigationPageDownKey, getNavigationPageUpKey, getNavigationRightKey, getNavigationSelectKey, getNavigationStartKey, getNavigationUpKey, getPaintableId, getRenderedRowByKey, getSubPartElement, getSubPartName, getTotalRows, getVisibleColsCount, getWidgetForPaintable, handleNavigation, hideScrollPositionAnnotation, init, isCollapsedColumn, isFocusable, isLazyScrollerActive, isMultiSelectModeDefault, isMultiSelectModeSimple, isScrollPositionVisible, isSelectable, isSingleSelectMode, isWorkPending, lazyRevertFocusToRow, measureRowHeightOffset, onAttach, onUnregister, resizeSortedColumnForSortIndicator, selectFirstRenderedRowInViewPort, selectLastRenderedRowInViewPort, selectSelectedRows, sendColumnWidthUpdates, sendSelectedRows, sendSelectedRows, setCacheRateFromUIDL, setChildMeasurementHint, setHeight, setProperTabIndex, setRowFocus, setStyleName, setStylePrimaryName, setTotalRows, setVisible, startScrollingVelocityTimer, triggerLazyColumnAdjustment, updateActionMap, updateDragMode, updateFirstVisibleAndScrollIfNeeded, updateFooterColumns, updateHeaderColumns, updateHeight, updateMaxIndent, updatePageLength, updatePageLength, updateSelectionProperties, updateSortingProperties, updateTotalRows, updateWidth, willHaveScrollbars

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

    add, clear, insert, insert

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

    add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove

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

    add, adopt, doAttachChildren, doDetachChildren, orphan, remove

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

    addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, 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, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setWidth, sinkBitlessEvent, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.gwt.user.client.ui.HasWidgets

    add, clear, iterator, remove

    Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel

    getWidget, getWidgetCount, getWidgetIndex, remove

    Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget

    getWidgetIndex

    Methods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget

    add

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface io.jmix.ui.widget.client.tableshared.TableWidget

    getClient, getPaintableId, getRenderedRowByKey, getStylePrimaryName
  • Field Details

  • Constructor Details

    • JmixScrollTableWidget

      protected JmixScrollTableWidget()
  • Method Details

    • sizeInit

      public void sizeInit()
      Overrides:
      sizeInit in class com.vaadin.v7.client.ui.VScrollTable
    • toggleScrollBarSpacer

      protected void toggleScrollBarSpacer(boolean willHaveScrollbar)
      Adds right padding for header and aggregation row (if visible) to compensate table body vertical scroll bar.
      Parameters:
      willHaveScrollbar - defines whether table body will have scroll bar
    • getNextRowToFocus

      protected com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow getNextRowToFocus(com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow currentRow, int offset)
      Overrides:
      getNextRowToFocus in class com.vaadin.v7.client.ui.VScrollTable
    • needToSelectFocused

      protected boolean needToSelectFocused(com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow currentRow)
      Overrides:
      needToSelectFocused in class com.vaadin.v7.client.ui.VScrollTable
    • scheduleLayoutForChildWidgets

      public void scheduleLayoutForChildWidgets()
      Overrides:
      scheduleLayoutForChildWidgets in class com.vaadin.v7.client.ui.VScrollTable
    • onBrowserEvent

      public void onBrowserEvent(com.google.gwt.user.client.Event event)
      Specified by:
      onBrowserEvent in interface com.google.gwt.user.client.EventListener
      Overrides:
      onBrowserEvent in class com.google.gwt.user.client.ui.Widget
    • setShortcutActionHandler

      public void setShortcutActionHandler(com.vaadin.client.ui.ShortcutActionHandler handler)
    • getShortcutActionHandler

      public com.vaadin.client.ui.ShortcutActionHandler getShortcutActionHandler()
      Specified by:
      getShortcutActionHandler in interface com.vaadin.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner
    • setPresentationsMenu

      public void setPresentationsMenu(com.google.gwt.user.client.ui.Widget presentationsMenu)
    • createScrollBody

      protected com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody createScrollBody()
      Overrides:
      createScrollBody in class com.vaadin.v7.client.ui.VScrollTable
    • handleBodyContextMenu

      public boolean handleBodyContextMenu(int left, int top)
      Overrides:
      handleBodyContextMenu in class com.vaadin.v7.client.ui.VScrollTable
    • isShowBrowserContextMenu

      protected boolean isShowBrowserContextMenu(com.google.gwt.user.client.Event event)
      Overrides:
      isShowBrowserContextMenu in class com.vaadin.v7.client.ui.VScrollTable
    • onFocus

      public void onFocus(com.google.gwt.event.dom.client.FocusEvent event)
      Specified by:
      onFocus in interface com.google.gwt.event.dom.client.FocusHandler
      Overrides:
      onFocus in class com.vaadin.v7.client.ui.VScrollTable
    • onBlur

      public void onBlur(com.google.gwt.event.dom.client.BlurEvent event)
      Specified by:
      onBlur in interface com.google.gwt.event.dom.client.BlurHandler
      Overrides:
      onBlur in class com.vaadin.v7.client.ui.VScrollTable
    • isAggregationEditable

      protected boolean isAggregationEditable()
      Overrides:
      isAggregationEditable in class com.vaadin.v7.client.ui.VScrollTable
    • getDynamicBodyHeight

      protected int getDynamicBodyHeight()
      Overrides:
      getDynamicBodyHeight in class com.vaadin.v7.client.ui.VScrollTable
    • isUseSimpleModeForTouchDevice

      public boolean isUseSimpleModeForTouchDevice()
      Overrides:
      isUseSimpleModeForTouchDevice in class com.vaadin.v7.client.ui.VScrollTable
    • isAllowSingleSelectToggle

      protected boolean isAllowSingleSelectToggle()
      Overrides:
      isAllowSingleSelectToggle in class com.vaadin.v7.client.ui.VScrollTable
    • getHead

      public com.vaadin.v7.client.ui.VScrollTable.TableHead getHead()
      Specified by:
      getHead in interface TableWidget
    • getVisibleColOrder

      public String[] getVisibleColOrder()
      Specified by:
      getVisibleColOrder in interface TableWidget
    • getColKeyByIndex

      public String getColKeyByIndex(int index)
      Specified by:
      getColKeyByIndex in interface TableWidget
      Overrides:
      getColKeyByIndex in class com.vaadin.v7.client.ui.VScrollTable
    • getColWidth

      public int getColWidth(String colKey)
      Specified by:
      getColWidth in interface TableWidget
      Overrides:
      getColWidth in class com.vaadin.v7.client.ui.VScrollTable
    • setColWidth

      public void setColWidth(int colIndex, int w, boolean isDefinedWidth)
      Specified by:
      setColWidth in interface TableWidget
      Overrides:
      setColWidth in class com.vaadin.v7.client.ui.VScrollTable
    • isTextSelectionEnabled

      public boolean isTextSelectionEnabled()
      Specified by:
      isTextSelectionEnabled in interface TableWidget
    • getRenderedRows

      public List<com.google.gwt.user.client.ui.Widget> getRenderedRows()
      Specified by:
      getRenderedRows in interface TableWidget
    • forceReassignColumnWidths

      public void forceReassignColumnWidths()
      Overrides:
      forceReassignColumnWidths in class com.vaadin.v7.client.ui.VScrollTable
    • reassignHeaderCellWidth

      protected void reassignHeaderCellWidth(int colIndex, com.vaadin.v7.client.ui.VScrollTable.HeaderCell hcell, int minWidth)
      Overrides:
      reassignHeaderCellWidth in class com.vaadin.v7.client.ui.VScrollTable
    • reassignAggregationColumnWidths

      protected void reassignAggregationColumnWidths()
    • isCustomColumn

      public boolean isCustomColumn(int colIndex)
      Specified by:
      isCustomColumn in interface TableWidget
    • isGenericRow

      public boolean isGenericRow(com.google.gwt.user.client.ui.Widget rowWidget)
      Specified by:
      isGenericRow in interface TableWidget
    • getAdditionalRowsHeight

      public int getAdditionalRowsHeight()
      Overrides:
      getAdditionalRowsHeight in class com.vaadin.v7.client.ui.VScrollTable
    • createTableHead

      protected com.vaadin.v7.client.ui.VScrollTable.TableHead createTableHead()
      Overrides:
      createTableHead in class com.vaadin.v7.client.ui.VScrollTable
    • updateTextSelection

      public void updateTextSelection()
    • onDetach

      protected void onDetach()
      Overrides:
      onDetach in class com.vaadin.v7.client.ui.VScrollTable
    • updateAggregationRow

      protected void updateAggregationRow(com.vaadin.client.UIDL uidl)
    • setAggregationRowVisible

      public void setAggregationRowVisible(boolean visible)
    • showEmptyState

      protected void showEmptyState(boolean show)
    • createAggregationRow

      protected TableAggregationRow createAggregationRow()
    • onScroll

      public void onScroll(com.google.gwt.event.dom.client.ScrollEvent event)
      Specified by:
      onScroll in interface com.google.gwt.event.dom.client.ScrollHandler
      Overrides:
      onScroll in class com.vaadin.v7.client.ui.VScrollTable
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface com.google.gwt.user.client.ui.HasEnabled
    • setEnabled

      public void setEnabled(boolean enabled)
      Specified by:
      setEnabled in interface com.google.gwt.user.client.ui.HasEnabled
    • getSortDescendingLabel

      public String getSortDescendingLabel()
      Specified by:
      getSortDescendingLabel in interface TableWidget
    • getSortAscendingLabel

      public String getSortAscendingLabel()
      Specified by:
      getSortAscendingLabel in interface TableWidget
    • getSortResetLabel

      public String getSortResetLabel()
      Specified by:
      getSortResetLabel in interface TableWidget
    • getOwner

      public com.google.gwt.user.client.ui.Widget getOwner()
      Specified by:
      getOwner in interface TableWidget
    • getRowRequestHandler

      public com.vaadin.v7.client.ui.VScrollTable.RowRequestHandler getRowRequestHandler()
      Specified by:
      getRowRequestHandler in interface TableWidget
    • requestFocus

      public void requestFocus(String itemKey, String columnKey)
    • showCustomPopup

      public void showCustomPopup()
    • isColumnCollapsingEnabled

      protected boolean isColumnCollapsingEnabled()
      Overrides:
      isColumnCollapsingEnabled in class com.vaadin.v7.client.ui.VScrollTable
    • updateColumnProperties

      public void updateColumnProperties(com.vaadin.client.UIDL uidl)
      Overrides:
      updateColumnProperties in class com.vaadin.v7.client.ui.VScrollTable
    • updateBody

      public void updateBody(com.vaadin.client.UIDL uidl, int firstRow, int reqRows)
      Overrides:
      updateBody in class com.vaadin.v7.client.ui.VScrollTable
    • updateRowsInBody

      public void updateRowsInBody(com.vaadin.client.UIDL partialRowUpdates)
      Overrides:
      updateRowsInBody in class com.vaadin.v7.client.ui.VScrollTable
    • initializeRows

      public void initializeRows(com.vaadin.client.UIDL uidl, com.vaadin.client.UIDL rowData)
      Overrides:
      initializeRows in class com.vaadin.v7.client.ui.VScrollTable
    • handleUpdateBodyRows

      protected void handleUpdateBodyRows()
    • addAfterBodyUpdateListener

      public void addAfterBodyUpdateListener(TableWidget.AfterBodyUpdateListener listener)
      Specified by:
      addAfterBodyUpdateListener in interface TableWidget
    • removeAfterBodyUpdateListener

      public void removeAfterBodyUpdateListener(TableWidget.AfterBodyUpdateListener listener)
      Specified by:
      removeAfterBodyUpdateListener in interface TableWidget
    • reOrderColumn

      protected void reOrderColumn(String columnKey, int newIndex)
      Overrides:
      reOrderColumn in class com.vaadin.v7.client.ui.VScrollTable
    • hasVerticalScrollbar

      public boolean hasVerticalScrollbar()
      Specified by:
      hasVerticalScrollbar in interface TableWidget
    • getColumnsCount

      protected int getColumnsCount()