public class CubaGrid<T> extends com.vaadin.ui.Grid<T> implements CubaEnhancedGrid<T>
com.vaadin.ui.Grid.AbstractGridExtension<T>, com.vaadin.ui.Grid.Column<T,V>, com.vaadin.ui.Grid.ColumnReorderEvent, com.vaadin.ui.Grid.ColumnResizeEvent, com.vaadin.ui.Grid.ColumnVisibilityChangeEvent, com.vaadin.ui.Grid.DetailsManager<T>, com.vaadin.ui.Grid.FetchItemsCallback<T>, com.vaadin.ui.Grid.GridContextClickEvent<T>, com.vaadin.ui.Grid.ItemClick<T>, com.vaadin.ui.Grid.SelectionMode
com.vaadin.ui.AbstractListing.AbstractListingExtension<T>
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
CubaEnhancedGrid.AggregationPosition
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
aggregatable |
protected CubaEnhancedGrid.AggregationPosition |
aggregationPosition |
protected java.util.Collection<java.lang.String> |
aggregationPropertyIds |
protected CubaGridEditorFieldFactory<T> |
editorFieldFactory |
protected java.lang.Runnable |
emptyStateLinkClickHandler |
protected HtmlAttributesExtension |
htmlAttributesExtension |
Constructor and Description |
---|
CubaGrid() |
Modifier and Type | Method and Description |
---|---|
void |
addAggregationPropertyId(java.lang.String propertyId) |
void |
addColumnId(java.lang.String column,
java.lang.String value) |
protected <V,P> com.vaadin.ui.Grid.Column<T,V> |
createColumn(com.vaadin.data.ValueProvider<T,V> valueProvider,
com.vaadin.data.ValueProvider<V,P> presentationProvider,
com.vaadin.ui.renderers.AbstractRenderer<? super T,? super P> renderer) |
protected com.vaadin.ui.components.grid.Editor<T> |
createEditor() |
CubaEnhancedGrid.AggregationPosition |
getAggregationPosition() |
java.util.Collection<java.lang.String> |
getAggregationPropertyIds() |
CubaEditorField<?> |
getColumnEditorField(T bean,
com.vaadin.ui.Grid.Column<T,?> column) |
java.util.Map<java.lang.String,java.lang.String> |
getColumnIds() |
CubaGridEditorFieldFactory<T> |
getCubaEditorFieldFactory() |
java.lang.String |
getDeselectAllLabel() |
java.lang.String |
getEmptyStateLinkMessage() |
java.lang.String |
getEmptyStateMessage() |
protected HtmlAttributesExtension |
getHtmlAttributesExtension() |
java.lang.Float |
getMinHeight() |
com.vaadin.server.Sizeable.Unit |
getMinHeightSizeUnit() |
java.lang.Float |
getMinWidth() |
com.vaadin.server.Sizeable.Unit |
getMinWidthSizeUnit() |
com.vaadin.shared.ui.ContentMode |
getRowDescriptionContentMode() |
java.lang.String |
getSelectAllLabel() |
protected com.haulmont.cuba.web.widgets.client.grid.CubaGridState |
getState() |
protected com.haulmont.cuba.web.widgets.client.grid.CubaGridState |
getState(boolean markAsDirty) |
boolean |
isAggregatable() |
void |
removeAggregationPropertyId(java.lang.String propertyId) |
void |
removeColumnId(java.lang.String column) |
void |
repaint() |
void |
setAggregatable(boolean aggregatable) |
void |
setAggregationPosition(CubaEnhancedGrid.AggregationPosition position) |
void |
setBeforeRefreshHandler(java.util.function.Consumer<T> beforeRefreshHandler) |
void |
setColumnIds(java.util.Map<java.lang.String,java.lang.String> ids) |
void |
setCubaEditorFieldFactory(CubaGridEditorFieldFactory<T> editorFieldFactory) |
void |
setDeselectAllLabel(java.lang.String deselectAllLabel) |
void |
setEmptyStateLinkClickHandler(java.lang.Runnable handler) |
void |
setEmptyStateLinkMessage(java.lang.String linkMessage) |
void |
setEmptyStateMessage(java.lang.String message) |
void |
setGridSelectionModel(com.vaadin.ui.components.grid.GridSelectionModel<T> model) |
void |
setMinHeight(java.lang.String minHeight) |
void |
setMinWidth(java.lang.String minWidth) |
void |
setSelectAllLabel(java.lang.String selectAllLabel) |
void |
setShowEmptyState(boolean show) |
void |
updateFooterVisibility()
CAUTION! Safari hides footer while changing predefined styles at runtime.
|
addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumnReorderListener, addColumnResizeListener, addColumnVisibilityChangeListener, addComponentColumn, addContextClickListener, addFooterRowAt, addHeaderRowAt, addItemClickListener, addSelectionListener, addSortListener, appendFooterRow, appendHeaderRow, asMultiSelect, asSingleSelect, beforeClientResponse, clearSortOrder, createSortingComparator, deselect, deselectAll, deserializeDeclarativeRepresentation, doReadDesign, doWriteDesign, fireColumnVisibilityChangeEvent, getBeanType, getBodyRowHeight, getColumn, getColumnByInternalId, getColumnResizeMode, getColumns, getCustomAttributes, getDataProvider, getDefaultHeaderRow, getDescriptionGenerator, getEditor, getFooter, getFooterRow, getFooterRowCount, getFooterRowHeight, getFrozenColumnCount, getHeader, getHeaderRow, getHeaderRowCount, getHeaderRowHeight, getHeightByRows, getHeightMode, getInternalIdForColumn, getPropertySet, getRowHeight, getSelectedItems, getSelectionModel, getSortOrder, getStyleGenerator, internalSetDataProvider, isColumnReorderingAllowed, isDetailsVisible, isFooterVisible, isHeaderVisible, isReadOnly, iterator, prependFooterRow, prependHeaderRow, readData, readItems, recalculateColumnWidths, removeAllColumns, removeColumn, removeColumn, removeFooterRow, removeFooterRow, removeHeaderRow, removeHeaderRow, scrollTo, scrollTo, scrollToEnd, scrollToStart, select, setBeanType, setBeanType, setBodyRowHeight, setColumnId, setColumnOrder, setColumnOrder, setColumnReorderingAllowed, setColumnResizeMode, setColumns, setColumns, setDataProvider, setDataProvider, setDefaultHeaderRow, setDescriptionGenerator, setDescriptionGenerator, setDetailsGenerator, setDetailsVisible, setFooterRowHeight, setFooterVisible, setFrozenColumnCount, setHeaderRowHeight, setHeaderVisible, setHeight, setHeightByRows, setHeightMode, setPropertySet, setReadOnly, setRowHeight, setSelectionMode, setSelectionModel, setSortOrder, setSortOrder, setStyleGenerator, sort, sort, sort, sort, withPropertySet, writeData
addDataGenerator, focus, getDataCommunicator, getItemCaptionGenerator, getItemIconGenerator, getTabIndex, internalGetDataProvider, internalSetDataProvider, readDesign, readItem, removeDataGenerator, serializeDeclarativeRepresentation, setItemCaptionGenerator, setItemIconGenerator, setTabIndex, writeDesign, writeItem, writeItems
addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, attach, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getCubaId, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setCubaId, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setRequiredError, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthFull, setWidthUndefined
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, addStyleNames, attach, getCaption, getCubaId, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setCubaId, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected CubaGridEditorFieldFactory<T> editorFieldFactory
protected java.lang.Runnable emptyStateLinkClickHandler
protected boolean aggregatable
protected CubaEnhancedGrid.AggregationPosition aggregationPosition
protected java.util.Collection<java.lang.String> aggregationPropertyIds
protected HtmlAttributesExtension htmlAttributesExtension
public void setGridSelectionModel(com.vaadin.ui.components.grid.GridSelectionModel<T> model)
setGridSelectionModel
in interface CubaEnhancedGrid<T>
protected com.haulmont.cuba.web.widgets.client.grid.CubaGridState getState()
getState
in class com.vaadin.ui.Grid<T>
protected com.haulmont.cuba.web.widgets.client.grid.CubaGridState getState(boolean markAsDirty)
getState
in class com.vaadin.ui.Grid<T>
public java.util.Map<java.lang.String,java.lang.String> getColumnIds()
getColumnIds
in interface CubaEnhancedGrid<T>
public void setColumnIds(java.util.Map<java.lang.String,java.lang.String> ids)
setColumnIds
in interface CubaEnhancedGrid<T>
public void addColumnId(java.lang.String column, java.lang.String value)
addColumnId
in interface CubaEnhancedGrid<T>
public void removeColumnId(java.lang.String column)
removeColumnId
in interface CubaEnhancedGrid<T>
public void repaint()
repaint
in interface CubaEnhancedGrid<T>
protected <V,P> com.vaadin.ui.Grid.Column<T,V> createColumn(com.vaadin.data.ValueProvider<T,V> valueProvider, com.vaadin.data.ValueProvider<V,P> presentationProvider, com.vaadin.ui.renderers.AbstractRenderer<? super T,? super P> renderer)
createColumn
in class com.vaadin.ui.Grid<T>
public CubaGridEditorFieldFactory<T> getCubaEditorFieldFactory()
getCubaEditorFieldFactory
in interface CubaEnhancedGrid<T>
public void setCubaEditorFieldFactory(CubaGridEditorFieldFactory<T> editorFieldFactory)
setCubaEditorFieldFactory
in interface CubaEnhancedGrid<T>
protected com.vaadin.ui.components.grid.Editor<T> createEditor()
createEditor
in class com.vaadin.ui.Grid<T>
public CubaEditorField<?> getColumnEditorField(T bean, com.vaadin.ui.Grid.Column<T,?> column)
getColumnEditorField
in interface CubaEnhancedGrid<T>
public void setBeforeRefreshHandler(java.util.function.Consumer<T> beforeRefreshHandler)
setBeforeRefreshHandler
in interface CubaEnhancedGrid<T>
public void setShowEmptyState(boolean show)
setShowEmptyState
in interface CubaEnhancedGrid<T>
public java.lang.String getEmptyStateMessage()
getEmptyStateMessage
in interface CubaEnhancedGrid<T>
public void setEmptyStateMessage(java.lang.String message)
setEmptyStateMessage
in interface CubaEnhancedGrid<T>
public java.lang.String getEmptyStateLinkMessage()
getEmptyStateLinkMessage
in interface CubaEnhancedGrid<T>
public void setEmptyStateLinkMessage(java.lang.String linkMessage)
setEmptyStateLinkMessage
in interface CubaEnhancedGrid<T>
public void setEmptyStateLinkClickHandler(java.lang.Runnable handler)
setEmptyStateLinkClickHandler
in interface CubaEnhancedGrid<T>
public void updateFooterVisibility()
CubaEnhancedGrid
updateFooterVisibility
in interface CubaEnhancedGrid<T>
public java.lang.String getSelectAllLabel()
getSelectAllLabel
in interface CubaEnhancedGrid<T>
public void setSelectAllLabel(java.lang.String selectAllLabel)
setSelectAllLabel
in interface CubaEnhancedGrid<T>
public java.lang.String getDeselectAllLabel()
getDeselectAllLabel
in interface CubaEnhancedGrid<T>
public void setDeselectAllLabel(java.lang.String deselectAllLabel)
setDeselectAllLabel
in interface CubaEnhancedGrid<T>
public boolean isAggregatable()
isAggregatable
in interface CubaEnhancedGrid<T>
public void setAggregatable(boolean aggregatable)
setAggregatable
in interface CubaEnhancedGrid<T>
public CubaEnhancedGrid.AggregationPosition getAggregationPosition()
getAggregationPosition
in interface CubaEnhancedGrid<T>
public void setAggregationPosition(CubaEnhancedGrid.AggregationPosition position)
setAggregationPosition
in interface CubaEnhancedGrid<T>
public java.util.Collection<java.lang.String> getAggregationPropertyIds()
getAggregationPropertyIds
in interface CubaEnhancedGrid<T>
public void addAggregationPropertyId(java.lang.String propertyId)
addAggregationPropertyId
in interface CubaEnhancedGrid<T>
public void removeAggregationPropertyId(java.lang.String propertyId)
removeAggregationPropertyId
in interface CubaEnhancedGrid<T>
public com.vaadin.shared.ui.ContentMode getRowDescriptionContentMode()
getRowDescriptionContentMode
in interface CubaEnhancedGrid<T>
@Nullable public java.lang.Float getMinHeight()
getMinHeight
in interface CubaEnhancedGrid<T>
@Nullable public com.vaadin.server.Sizeable.Unit getMinHeightSizeUnit()
getMinHeightSizeUnit
in interface CubaEnhancedGrid<T>
public void setMinHeight(@Nullable java.lang.String minHeight)
setMinHeight
in interface CubaEnhancedGrid<T>
@Nullable public java.lang.Float getMinWidth()
getMinWidth
in interface CubaEnhancedGrid<T>
@Nullable public com.vaadin.server.Sizeable.Unit getMinWidthSizeUnit()
getMinWidthSizeUnit
in interface CubaEnhancedGrid<T>
public void setMinWidth(@Nullable java.lang.String minWidth)
setMinWidth
in interface CubaEnhancedGrid<T>
protected HtmlAttributesExtension getHtmlAttributesExtension()