Class JmixTreeTableWidget
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
com.vaadin.v7.client.ui.VTreeTable
io.jmix.ui.widget.client.treetable.JmixTreeTableWidget
- 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>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected classNested classes/interfaces inherited from class com.vaadin.v7.client.ui.VTreeTable
com.vaadin.v7.client.ui.VTreeTable.PendingNavigationEvent, com.vaadin.v7.client.ui.VTreeTable.VTreeTableScrollBodyNested 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.VScrollTableDropHandlerNested 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.DebugIdImplEnabledNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel
com.google.gwt.user.client.ui.InsertPanel.ForIsWidgetNested classes/interfaces inherited from interface io.jmix.ui.widget.client.tableshared.TableWidget
TableWidget.AfterBodyUpdateListener -
Field Summary
FieldsFields inherited from class com.vaadin.v7.client.ui.VTreeTable
animationsEnabled, colIndexOfHierarchy, collapsedRowKey, collapseRequest, focusParentResponsePending, pendingNavigationEvents, scrollBodyFields 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, scrollBodyPanel, scrollLeft, selectedRowKeys, selectFirstItemInNextRender, selectionChanged, selectionRangeStart, selectLastItemInNextRender, serverCacheFirst, serverCacheLast, showColFooters, showColHeaders, showRowHeaders, sizeNeedsInit, sortAscending, sortColumn, STYLENAME, tabIndex, tFoot, tHead, totalRows, visibleColOrder, visibleColumnActionIndexFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected TableAggregationRowprotected com.vaadin.v7.client.ui.VScrollTable.VScrollTableBodyprotected com.vaadin.v7.client.ui.VScrollTable.TableHeadvoidintgetColKeyByIndex(int index) intgetColWidth(String colKey) protected intcom.vaadin.v7.client.ui.VScrollTable.TableHeadgetHead()protected com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody.VScrollTableRowgetNextRowToFocus(com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow currentRow, int offset) com.google.gwt.user.client.ui.WidgetgetOwner()List<com.google.gwt.user.client.ui.Widget>com.vaadin.v7.client.ui.VScrollTable.RowRequestHandlercom.vaadin.client.ui.ShortcutActionHandlerString[]booleanhandleBodyContextMenu(int left, int top) protected voidbooleanvoidinitializeRows(com.vaadin.client.UIDL uidl, com.vaadin.client.UIDL rowData) protected booleanprotected booleanbooleanisCustomColumn(int colIndex) booleanbooleanisGenericRow(com.google.gwt.user.client.ui.Widget rowWidget) booleanbooleanprotected booleanneedToSelectFocused(com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow currentRow) voidonBlur(com.google.gwt.event.dom.client.BlurEvent event) voidonBrowserEvent(com.google.gwt.user.client.Event event) protected voidonDetach()voidonFocus(com.google.gwt.event.dom.client.FocusEvent event) voidonScroll(com.google.gwt.event.dom.client.ScrollEvent event) protected voidprotected voidreassignHeaderCellWidth(int colIndex, com.vaadin.v7.client.ui.VScrollTable.HeaderCell hcell, int minWidth) voidvoidrequestFocus(String itemKey, String columnKey) voidvoidsetAggregationRowVisible(boolean visible) voidsetColWidth(int colIndex, int w, boolean isDefinedWidth) voidsetEnabled(boolean enabled) voidsetPresentationsMenu(com.google.gwt.user.client.ui.Widget presentationsMenu) voidsetShortcutActionHandler(com.vaadin.client.ui.ShortcutActionHandler handler) voidprotected voidshowEmptyState(boolean show) protected voidtoggleScrollBarSpacer(boolean willHaveScrollbar) Adds right padding for header and aggregation row (if visible) to compensate table body vertical scroll bar.protected voidupdateAggregationRow(com.vaadin.client.UIDL uidl) voidupdateBody(com.vaadin.client.UIDL uidl, int firstRow, int reqRows) voidupdateColumnProperties(com.vaadin.client.UIDL uidl) voidupdateRowsInBody(com.vaadin.client.UIDL partialRowUpdates) voidvoidMethods inherited from class com.vaadin.v7.client.ui.VTreeTable
addAndRemoveRows, buildCaptionHtmlSnippet, getHierarchyColumnIndex, handleNavigation, reOrderColumn, sendSelectedRows, setStyleName, updateTotalRowsMethods inherited from class com.vaadin.v7.client.ui.VScrollTable
calcFirstRowInViewPort, cancelScrollingVelocityTimer, checkColumnForUpdateWidth, createTableFooter, deselectAll, discardRowsOutsideCacheWindow, enableLazyScroller, focus, focusRowFromBody, getActionCaption, getActionIcon, getActions, getChildMeasurementHint, getClient, getColIndexByKey, getDropHandler, getFocusedRow, getNavigationDownKey, getNavigationEndKey, getNavigationLeftKey, getNavigationPageDownKey, getNavigationPageUpKey, getNavigationRightKey, getNavigationSelectKey, getNavigationStartKey, getNavigationUpKey, getPaintableId, getRenderedRowByKey, getSubPartElement, getSubPartName, getTotalRows, getVisibleColsCount, getWidgetForPaintable, hideScrollPositionAnnotation, init, isAggregationEditable, isCollapsedColumn, isFocusable, isLazyScrollerActive, isMultiSelectModeDefault, isMultiSelectModeSimple, isScrollPositionVisible, isSelectable, isShowBrowserContextMenu, isSingleSelectMode, isWorkPending, lazyRevertFocusToRow, measureRowHeightOffset, onAttach, onUnregister, resizeSortedColumnForSortIndicator, selectFirstRenderedRowInViewPort, selectLastRenderedRowInViewPort, selectSelectedRows, sendColumnWidthUpdates, sendSelectedRows, setCacheRateFromUIDL, setChildMeasurementHint, setHeight, setProperTabIndex, setRowFocus, setStylePrimaryName, setTotalRows, setVisible, sizeInit, startScrollingVelocityTimer, triggerLazyColumnAdjustment, updateActionMap, updateDragMode, updateFirstVisibleAndScrollIfNeeded, updateFooterColumns, updateHeaderColumns, updateHeight, updateMaxIndent, updatePageLength, updatePageLength, updateSelectionProperties, updateSortingProperties, updateWidth, willHaveScrollbarsMethods inherited from class com.google.gwt.user.client.ui.FlowPanel
add, clear, insert, insertMethods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeMethods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, doAttachChildren, doDetachChildren, orphan, removeMethods 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, unsinkEventsMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.user.client.ui.HasWidgets
add, clear, iterator, removeMethods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, removeMethods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndexMethods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
addMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface io.jmix.ui.widget.client.tableshared.TableWidget
getClient, getPaintableId, getRenderedRowByKey, getStylePrimaryName
-
Field Details
-
_delegate
-
-
Constructor Details
-
JmixTreeTableWidget
protected JmixTreeTableWidget()
-
-
Method Details
-
scheduleLayoutForChildWidgets
public void scheduleLayoutForChildWidgets()- Overrides:
scheduleLayoutForChildWidgetsin classcom.vaadin.v7.client.ui.VScrollTable
-
handleBodyContextMenu
public boolean handleBodyContextMenu(int left, int top) - Overrides:
handleBodyContextMenuin classcom.vaadin.v7.client.ui.VScrollTable
-
createScrollBody
protected com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody createScrollBody()- Overrides:
createScrollBodyin classcom.vaadin.v7.client.ui.VTreeTable
-
getDynamicBodyHeight
protected int getDynamicBodyHeight()- Overrides:
getDynamicBodyHeightin classcom.vaadin.v7.client.ui.VScrollTable
-
isUseSimpleModeForTouchDevice
public boolean isUseSimpleModeForTouchDevice()- Overrides:
isUseSimpleModeForTouchDevicein classcom.vaadin.v7.client.ui.VScrollTable
-
isAllowSingleSelectToggle
protected boolean isAllowSingleSelectToggle()- Overrides:
isAllowSingleSelectTogglein classcom.vaadin.v7.client.ui.VScrollTable
-
onFocus
public void onFocus(com.google.gwt.event.dom.client.FocusEvent event) - Specified by:
onFocusin interfacecom.google.gwt.event.dom.client.FocusHandler- Overrides:
onFocusin classcom.vaadin.v7.client.ui.VScrollTable
-
onBlur
public void onBlur(com.google.gwt.event.dom.client.BlurEvent event) - Specified by:
onBlurin interfacecom.google.gwt.event.dom.client.BlurHandler- Overrides:
onBlurin classcom.vaadin.v7.client.ui.VScrollTable
-
onBrowserEvent
public void onBrowserEvent(com.google.gwt.user.client.Event event) - Specified by:
onBrowserEventin interfacecom.google.gwt.user.client.EventListener- Overrides:
onBrowserEventin classcom.vaadin.v7.client.ui.VTreeTable
-
onDetach
protected void onDetach()- Overrides:
onDetachin classcom.vaadin.v7.client.ui.VScrollTable
-
setShortcutActionHandler
public void setShortcutActionHandler(com.vaadin.client.ui.ShortcutActionHandler handler) -
getShortcutActionHandler
public com.vaadin.client.ui.ShortcutActionHandler getShortcutActionHandler()- Specified by:
getShortcutActionHandlerin interfacecom.vaadin.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner
-
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:
getNextRowToFocusin classcom.vaadin.v7.client.ui.VScrollTable
-
needToSelectFocused
protected boolean needToSelectFocused(com.vaadin.v7.client.ui.VScrollTable.VScrollTableBody.VScrollTableRow currentRow) - Overrides:
needToSelectFocusedin classcom.vaadin.v7.client.ui.VScrollTable
-
getHead
public com.vaadin.v7.client.ui.VScrollTable.TableHead getHead()- Specified by:
getHeadin interfaceTableWidget
-
getVisibleColOrder
- Specified by:
getVisibleColOrderin interfaceTableWidget
-
getColKeyByIndex
- Specified by:
getColKeyByIndexin interfaceTableWidget- Overrides:
getColKeyByIndexin classcom.vaadin.v7.client.ui.VScrollTable
-
getColWidth
- Specified by:
getColWidthin interfaceTableWidget- Overrides:
getColWidthin classcom.vaadin.v7.client.ui.VScrollTable
-
setColWidth
public void setColWidth(int colIndex, int w, boolean isDefinedWidth) - Specified by:
setColWidthin interfaceTableWidget- Overrides:
setColWidthin classcom.vaadin.v7.client.ui.VScrollTable
-
isTextSelectionEnabled
public boolean isTextSelectionEnabled()- Specified by:
isTextSelectionEnabledin interfaceTableWidget
-
getRenderedRows
- Specified by:
getRenderedRowsin interfaceTableWidget
-
getAdditionalRowsHeight
public int getAdditionalRowsHeight()- Overrides:
getAdditionalRowsHeightin classcom.vaadin.v7.client.ui.VScrollTable
-
createTableHead
protected com.vaadin.v7.client.ui.VScrollTable.TableHead createTableHead()- Overrides:
createTableHeadin classcom.vaadin.v7.client.ui.VScrollTable
-
setPresentationsMenu
public void setPresentationsMenu(com.google.gwt.user.client.ui.Widget presentationsMenu) -
updateTextSelection
public void updateTextSelection() -
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:
onScrollin interfacecom.google.gwt.event.dom.client.ScrollHandler- Overrides:
onScrollin classcom.vaadin.v7.client.ui.VScrollTable
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfacecom.google.gwt.user.client.ui.HasEnabled
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfacecom.google.gwt.user.client.ui.HasEnabled
-
getSortDescendingLabel
- Specified by:
getSortDescendingLabelin interfaceTableWidget
-
getSortAscendingLabel
- Specified by:
getSortAscendingLabelin interfaceTableWidget
-
getSortResetLabel
- Specified by:
getSortResetLabelin interfaceTableWidget
-
getOwner
public com.google.gwt.user.client.ui.Widget getOwner()- Specified by:
getOwnerin interfaceTableWidget
-
getRowRequestHandler
public com.vaadin.v7.client.ui.VScrollTable.RowRequestHandler getRowRequestHandler()- Specified by:
getRowRequestHandlerin interfaceTableWidget
-
forceReassignColumnWidths
public void forceReassignColumnWidths()- Overrides:
forceReassignColumnWidthsin classcom.vaadin.v7.client.ui.VScrollTable
-
reassignHeaderCellWidth
protected void reassignHeaderCellWidth(int colIndex, com.vaadin.v7.client.ui.VScrollTable.HeaderCell hcell, int minWidth) - Overrides:
reassignHeaderCellWidthin classcom.vaadin.v7.client.ui.VScrollTable
-
reassignAggregationColumnWidths
protected void reassignAggregationColumnWidths() -
isCustomColumn
public boolean isCustomColumn(int colIndex) - Specified by:
isCustomColumnin interfaceTableWidget
-
isGenericRow
public boolean isGenericRow(com.google.gwt.user.client.ui.Widget rowWidget) - Specified by:
isGenericRowin interfaceTableWidget
-
requestFocus
-
showCustomPopup
public void showCustomPopup() -
isColumnCollapsingEnabled
protected boolean isColumnCollapsingEnabled()- Overrides:
isColumnCollapsingEnabledin classcom.vaadin.v7.client.ui.VScrollTable
-
updateColumnProperties
public void updateColumnProperties(com.vaadin.client.UIDL uidl) - Overrides:
updateColumnPropertiesin classcom.vaadin.v7.client.ui.VScrollTable
-
updateTableBodyScroll
public void updateTableBodyScroll() -
updateBody
public void updateBody(com.vaadin.client.UIDL uidl, int firstRow, int reqRows) - Overrides:
updateBodyin classcom.vaadin.v7.client.ui.VScrollTable
-
initializeRows
public void initializeRows(com.vaadin.client.UIDL uidl, com.vaadin.client.UIDL rowData) - Overrides:
initializeRowsin classcom.vaadin.v7.client.ui.VScrollTable
-
updateRowsInBody
public void updateRowsInBody(com.vaadin.client.UIDL partialRowUpdates) - Overrides:
updateRowsInBodyin classcom.vaadin.v7.client.ui.VScrollTable
-
handleUpdateBodyRows
protected void handleUpdateBodyRows() -
hasVerticalScrollbar
public boolean hasVerticalScrollbar()- Specified by:
hasVerticalScrollbarin interfaceTableWidget
-