Package io.jmix.ui.widget.client.table
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
Modifier and TypeClassDescriptionprotected 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 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected TableAggregationRow
protected com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody
protected com.vaadin.v7.client.ui.VScrollTable.TableHead
void
int
getColKeyByIndex
(int index) int
getColWidth
(String colKey) protected int
com.vaadin.v7.client.ui.VScrollTable.TableHead
getHead()
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
getOwner()
List<com.google.gwt.user.client.ui.Widget>
com.vaadin.v7.client.ui.VScrollTable.RowRequestHandler
com.vaadin.client.ui.ShortcutActionHandler
String[]
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
onDetach()
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
sizeInit()
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
-
_delegate
-
-
Constructor Details
-
JmixScrollTableWidget
protected JmixScrollTableWidget()
-
-
Method Details
-
sizeInit
public void sizeInit()- Overrides:
sizeInit
in classcom.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 classcom.vaadin.v7.client.ui.VScrollTable
-
needToSelectFocused
protected boolean needToSelectFocused(com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow currentRow) - Overrides:
needToSelectFocused
in classcom.vaadin.v7.client.ui.VScrollTable
-
scheduleLayoutForChildWidgets
public void scheduleLayoutForChildWidgets()- Overrides:
scheduleLayoutForChildWidgets
in classcom.vaadin.v7.client.ui.VScrollTable
-
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event) - Specified by:
onBrowserEvent
in interfacecom.google.gwt.user.client.EventListener
- Overrides:
onBrowserEvent
in classcom.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 interfacecom.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 classcom.vaadin.v7.client.ui.VScrollTable
-
handleBodyContextMenu
public boolean handleBodyContextMenu(int left, int top) - Overrides:
handleBodyContextMenu
in classcom.vaadin.v7.client.ui.VScrollTable
-
isShowBrowserContextMenu
protected boolean isShowBrowserContextMenu(com.google.gwt.user.client.Event event) - Overrides:
isShowBrowserContextMenu
in classcom.vaadin.v7.client.ui.VScrollTable
-
onFocus
public void onFocus(com.google.gwt.event.dom.client.FocusEvent event) - Specified by:
onFocus
in interfacecom.google.gwt.event.dom.client.FocusHandler
- Overrides:
onFocus
in classcom.vaadin.v7.client.ui.VScrollTable
-
onBlur
public void onBlur(com.google.gwt.event.dom.client.BlurEvent event) - Specified by:
onBlur
in interfacecom.google.gwt.event.dom.client.BlurHandler
- Overrides:
onBlur
in classcom.vaadin.v7.client.ui.VScrollTable
-
isAggregationEditable
protected boolean isAggregationEditable()- Overrides:
isAggregationEditable
in classcom.vaadin.v7.client.ui.VScrollTable
-
getDynamicBodyHeight
protected int getDynamicBodyHeight()- Overrides:
getDynamicBodyHeight
in classcom.vaadin.v7.client.ui.VScrollTable
-
isUseSimpleModeForTouchDevice
public boolean isUseSimpleModeForTouchDevice()- Overrides:
isUseSimpleModeForTouchDevice
in classcom.vaadin.v7.client.ui.VScrollTable
-
isAllowSingleSelectToggle
protected boolean isAllowSingleSelectToggle()- Overrides:
isAllowSingleSelectToggle
in classcom.vaadin.v7.client.ui.VScrollTable
-
getHead
public com.vaadin.v7.client.ui.VScrollTable.TableHead getHead()- Specified by:
getHead
in interfaceTableWidget
-
getVisibleColOrder
- Specified by:
getVisibleColOrder
in interfaceTableWidget
-
getColKeyByIndex
- Specified by:
getColKeyByIndex
in interfaceTableWidget
- Overrides:
getColKeyByIndex
in classcom.vaadin.v7.client.ui.VScrollTable
-
getColWidth
- Specified by:
getColWidth
in interfaceTableWidget
- Overrides:
getColWidth
in classcom.vaadin.v7.client.ui.VScrollTable
-
setColWidth
public void setColWidth(int colIndex, int w, boolean isDefinedWidth) - Specified by:
setColWidth
in interfaceTableWidget
- Overrides:
setColWidth
in classcom.vaadin.v7.client.ui.VScrollTable
-
isTextSelectionEnabled
public boolean isTextSelectionEnabled()- Specified by:
isTextSelectionEnabled
in interfaceTableWidget
-
getRenderedRows
- Specified by:
getRenderedRows
in interfaceTableWidget
-
forceReassignColumnWidths
public void forceReassignColumnWidths()- Overrides:
forceReassignColumnWidths
in classcom.vaadin.v7.client.ui.VScrollTable
-
reassignHeaderCellWidth
protected void reassignHeaderCellWidth(int colIndex, com.vaadin.v7.client.ui.VScrollTable.HeaderCell hcell, int minWidth) - Overrides:
reassignHeaderCellWidth
in classcom.vaadin.v7.client.ui.VScrollTable
-
reassignAggregationColumnWidths
protected void reassignAggregationColumnWidths() -
isCustomColumn
public boolean isCustomColumn(int colIndex) - Specified by:
isCustomColumn
in interfaceTableWidget
-
isGenericRow
public boolean isGenericRow(com.google.gwt.user.client.ui.Widget rowWidget) - Specified by:
isGenericRow
in interfaceTableWidget
-
getAdditionalRowsHeight
public int getAdditionalRowsHeight()- Overrides:
getAdditionalRowsHeight
in classcom.vaadin.v7.client.ui.VScrollTable
-
createTableHead
protected com.vaadin.v7.client.ui.VScrollTable.TableHead createTableHead()- Overrides:
createTableHead
in classcom.vaadin.v7.client.ui.VScrollTable
-
updateTextSelection
public void updateTextSelection() -
onDetach
protected void onDetach()- Overrides:
onDetach
in classcom.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
-
onScroll
public void onScroll(com.google.gwt.event.dom.client.ScrollEvent event) - Specified by:
onScroll
in interfacecom.google.gwt.event.dom.client.ScrollHandler
- Overrides:
onScroll
in classcom.vaadin.v7.client.ui.VScrollTable
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfacecom.google.gwt.user.client.ui.HasEnabled
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfacecom.google.gwt.user.client.ui.HasEnabled
-
getSortDescendingLabel
- Specified by:
getSortDescendingLabel
in interfaceTableWidget
-
getSortAscendingLabel
- Specified by:
getSortAscendingLabel
in interfaceTableWidget
-
getSortResetLabel
- Specified by:
getSortResetLabel
in interfaceTableWidget
-
getOwner
public com.google.gwt.user.client.ui.Widget getOwner()- Specified by:
getOwner
in interfaceTableWidget
-
getRowRequestHandler
public com.vaadin.v7.client.ui.VScrollTable.RowRequestHandler getRowRequestHandler()- Specified by:
getRowRequestHandler
in interfaceTableWidget
-
requestFocus
-
showCustomPopup
public void showCustomPopup() -
isColumnCollapsingEnabled
protected boolean isColumnCollapsingEnabled()- Overrides:
isColumnCollapsingEnabled
in classcom.vaadin.v7.client.ui.VScrollTable
-
updateColumnProperties
public void updateColumnProperties(com.vaadin.client.UIDL uidl) - Overrides:
updateColumnProperties
in classcom.vaadin.v7.client.ui.VScrollTable
-
updateBody
public void updateBody(com.vaadin.client.UIDL uidl, int firstRow, int reqRows) - Overrides:
updateBody
in classcom.vaadin.v7.client.ui.VScrollTable
-
updateRowsInBody
public void updateRowsInBody(com.vaadin.client.UIDL partialRowUpdates) - Overrides:
updateRowsInBody
in classcom.vaadin.v7.client.ui.VScrollTable
-
initializeRows
public void initializeRows(com.vaadin.client.UIDL uidl, com.vaadin.client.UIDL rowData) - Overrides:
initializeRows
in classcom.vaadin.v7.client.ui.VScrollTable
-
handleUpdateBodyRows
protected void handleUpdateBodyRows() -
reOrderColumn
- Overrides:
reOrderColumn
in classcom.vaadin.v7.client.ui.VScrollTable
-
hasVerticalScrollbar
public boolean hasVerticalScrollbar()- Specified by:
hasVerticalScrollbar
in interfaceTableWidget
-