Class AbstractMultiGridView<T extends org.jbpm.workbench.common.model.GenericSummary,V extends AbstractMultiGridPresenter>
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- org.jbpm.workbench.common.client.list.AbstractMultiGridView<T,V>
-
- 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.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget,com.google.gwt.user.client.ui.RequiresResize,ListView<T,V>,MultiGridView<T,V>,org.uberfire.client.mvp.HasPresenter<V>,org.uberfire.client.mvp.UberView<V>,org.uberfire.ext.widgets.common.client.common.HasBusyIndicator
public abstract class AbstractMultiGridView<T extends org.jbpm.workbench.common.model.GenericSummary,V extends AbstractMultiGridPresenter> extends com.google.gwt.user.client.ui.Composite implements MultiGridView<T,V>, com.google.gwt.user.client.ui.RequiresResize
-
-
Field Summary
Fields Modifier and Type Field Description static intACTIONS_COLUMN_WIDTHprotected BlockingErroralertstatic intCHECK_COLUMN_WIDTHstatic StringCOL_ID_ACTIONSstatic StringCOL_ID_SELECTprotected elemental2.dom.HTMLDivElementcolumnprotected org.jboss.errai.ioc.client.api.ManagedInstance<ConditionalKebabActionCell>conditionalKebabActionCellstatic intERROR_COLUMN_WIDTHprotected ActiveFiltersfiltersprotected ListTable<T>listTableprotected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent>notificationprotected org.uberfire.client.mvp.PlaceManagerplaceManagerprotected org.jbpm.workbench.common.preferences.ManagePreferencespreferencesprotected Vpresenterprotected org.jboss.errai.common.client.api.Caller<org.uberfire.ext.services.shared.preferences.UserPreferencesService>userPreferencesService
-
Constructor Summary
Constructors Constructor Description AbstractMultiGridView()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <T> voidaddActiveFilter(ActiveFilterItem<T> filter)protected voidaddColumnSortHandler(ExtendedPagedTable listTable)voidaddDomainSpecifColumns(Set<String> columns)protected voidaddNewTableToColumn(ListTable<T> newListGrid)voidclearBlockingError()protected voidcontrolBulkOperations(ListTable<T> extendedPagedTable)com.google.gwt.user.cellview.client.Column<T,Number>createNumberColumn(String columnId, Function<T,Number> valueFunction)com.google.gwt.user.cellview.client.Column<T,String>createTextColumn(String columnId, Function<T,String> valueFunction)voiddisplayBlockingError(String summary, String content)voiddisplayNotification(String text)protected voidenableWidgets(com.google.gwt.user.client.ui.Widget widget, boolean enable)protected booleanexistsColumnWithSameName(org.uberfire.ext.services.shared.preferences.GridColumnPreference gridColumnPreference, List<org.uberfire.ext.widgets.table.client.ColumnMeta<T>> columns)abstract List<String>getBannedColumns()protected List<org.gwtbootstrap3.client.ui.AnchorListItem>getBulkActionsItems(ExtendedPagedTable<T> extendedPagedTable)protected abstract List<ConditionalAction<T>>getConditionalActions()abstract StringgetEmptyTableCaption()abstract List<String>getInitColumns()ListTable<T>getListGrid()StringgetSortColumn()protected booleanhasBulkActions()voidhideBusyIndicator()voidinit(V presenter)org.uberfire.ext.widgets.table.client.ColumnMeta<T>initActionsColumn()protected voidinitBulkActions(ExtendedPagedTable<T> extendedPagedTable)org.uberfire.ext.widgets.table.client.ColumnMeta<T>initChecksColumn(ListTable<T> extendedPagedTable)abstract voidinitColumns(ListTable<T> extendedPagedTable)protected com.google.gwt.user.cellview.client.ColumninitGenericColumn(String key)voidinitSelectionModel(ListTable<T> extendedPagedTable)protected booleanisColumnAdded(List<org.uberfire.ext.widgets.table.client.ColumnMeta<T>> columnMetas, String caption)BooleanisSortAscending()voidloadListTable(String key, Consumer<ListTable<T>> readyCallback)voidonResize()protected voidreloadColumnSortList()<T> voidremoveActiveFilter(ActiveFilterItem<T> filter)voidremoveAllActiveFilters()voidremoveDomainSpecifColumns()List<org.uberfire.ext.widgets.table.client.ColumnMeta<T>>renameVariables(ListTable<T> extendedPagedTable, List<org.uberfire.ext.widgets.table.client.ColumnMeta<T>> columnMetas)voidsetSaveFilterCallback(BiConsumer<String,Consumer<String>> filterNameCallback)voidsetUserPreferencesService(org.jboss.errai.common.client.api.Caller<org.uberfire.ext.services.shared.preferences.UserPreferencesService> userPreferencesService)voidshowBusyIndicator(String message)-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, 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, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
-
-
-
Field Detail
-
COL_ID_SELECT
public static final String COL_ID_SELECT
- See Also:
- Constant Field Values
-
COL_ID_ACTIONS
public static final String COL_ID_ACTIONS
- See Also:
- Constant Field Values
-
ACTIONS_COLUMN_WIDTH
public static final int ACTIONS_COLUMN_WIDTH
- See Also:
- Constant Field Values
-
CHECK_COLUMN_WIDTH
public static final int CHECK_COLUMN_WIDTH
- See Also:
- Constant Field Values
-
ERROR_COLUMN_WIDTH
public static final int ERROR_COLUMN_WIDTH
- See Also:
- Constant Field Values
-
notification
@Inject protected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notification
-
conditionalKebabActionCell
@Inject protected org.jboss.errai.ioc.client.api.ManagedInstance<ConditionalKebabActionCell> conditionalKebabActionCell
-
placeManager
@Inject protected org.uberfire.client.mvp.PlaceManager placeManager
-
preferences
@Inject protected org.jbpm.workbench.common.preferences.ManagePreferences preferences
-
userPreferencesService
protected org.jboss.errai.common.client.api.Caller<org.uberfire.ext.services.shared.preferences.UserPreferencesService> userPreferencesService
-
presenter
protected V extends AbstractMultiGridPresenter presenter
-
column
@Inject @DataField("column") protected elemental2.dom.HTMLDivElement column
-
filters
@Inject @DataField("active-filters") protected ActiveFilters filters
-
alert
@Inject @DataField("alert") protected BlockingError alert
-
-
Method Detail
-
displayNotification
public void displayNotification(String text)
- Specified by:
displayNotificationin interfaceListView<T extends org.jbpm.workbench.common.model.GenericSummary,V extends AbstractMultiGridPresenter>
-
displayBlockingError
public void displayBlockingError(String summary, String content)
- Specified by:
displayBlockingErrorin interfaceListView<T extends org.jbpm.workbench.common.model.GenericSummary,V extends AbstractMultiGridPresenter>
-
clearBlockingError
public void clearBlockingError()
- Specified by:
clearBlockingErrorin interfaceListView<T extends org.jbpm.workbench.common.model.GenericSummary,V extends AbstractMultiGridPresenter>
-
init
public void init(V presenter)
- Specified by:
initin interfaceorg.uberfire.client.mvp.HasPresenter<T extends org.jbpm.workbench.common.model.GenericSummary>
-
enableWidgets
protected void enableWidgets(com.google.gwt.user.client.ui.Widget widget, boolean enable)
-
loadListTable
public void loadListTable(String key, Consumer<ListTable<T>> readyCallback)
- Specified by:
loadListTablein interfaceMultiGridView<T extends org.jbpm.workbench.common.model.GenericSummary,V extends AbstractMultiGridPresenter>
-
addColumnSortHandler
protected void addColumnSortHandler(ExtendedPagedTable listTable)
-
initGenericColumn
protected com.google.gwt.user.cellview.client.Column initGenericColumn(String key)
-
showBusyIndicator
public void showBusyIndicator(String message)
- Specified by:
showBusyIndicatorin interfaceorg.uberfire.ext.widgets.common.client.common.HasBusyIndicator
-
hideBusyIndicator
public void hideBusyIndicator()
- Specified by:
hideBusyIndicatorin interfaceorg.uberfire.ext.widgets.common.client.common.HasBusyIndicator
-
getListGrid
public ListTable<T> getListGrid()
- Specified by:
getListGridin interfaceListView<T extends org.jbpm.workbench.common.model.GenericSummary,V extends AbstractMultiGridPresenter>
-
hasBulkActions
protected boolean hasBulkActions()
-
getEmptyTableCaption
public abstract String getEmptyTableCaption()
-
setUserPreferencesService
@Inject public void setUserPreferencesService(org.jboss.errai.common.client.api.Caller<org.uberfire.ext.services.shared.preferences.UserPreferencesService> userPreferencesService)
-
createTextColumn
public com.google.gwt.user.cellview.client.Column<T,String> createTextColumn(String columnId, Function<T,String> valueFunction)
-
initBulkActions
protected void initBulkActions(ExtendedPagedTable<T> extendedPagedTable)
-
getBulkActionsItems
protected List<org.gwtbootstrap3.client.ui.AnchorListItem> getBulkActionsItems(ExtendedPagedTable<T> extendedPagedTable)
-
createNumberColumn
public com.google.gwt.user.cellview.client.Column<T,Number> createNumberColumn(String columnId, Function<T,Number> valueFunction)
-
initChecksColumn
public org.uberfire.ext.widgets.table.client.ColumnMeta<T> initChecksColumn(ListTable<T> extendedPagedTable)
-
isColumnAdded
protected boolean isColumnAdded(List<org.uberfire.ext.widgets.table.client.ColumnMeta<T>> columnMetas, String caption)
-
existsColumnWithSameName
protected boolean existsColumnWithSameName(org.uberfire.ext.services.shared.preferences.GridColumnPreference gridColumnPreference, List<org.uberfire.ext.widgets.table.client.ColumnMeta<T>> columns)
-
getConditionalActions
protected abstract List<ConditionalAction<T>> getConditionalActions()
-
initActionsColumn
public org.uberfire.ext.widgets.table.client.ColumnMeta<T> initActionsColumn()
-
renameVariables
public List<org.uberfire.ext.widgets.table.client.ColumnMeta<T>> renameVariables(ListTable<T> extendedPagedTable, List<org.uberfire.ext.widgets.table.client.ColumnMeta<T>> columnMetas)
-
removeDomainSpecifColumns
public void removeDomainSpecifColumns()
-
setSaveFilterCallback
public void setSaveFilterCallback(BiConsumer<String,Consumer<String>> filterNameCallback)
- Specified by:
setSaveFilterCallbackin interfaceMultiGridView<T extends org.jbpm.workbench.common.model.GenericSummary,V extends AbstractMultiGridPresenter>
-
addActiveFilter
public <T> void addActiveFilter(ActiveFilterItem<T> filter)
- Specified by:
addActiveFilterin interfaceMultiGridView<T extends org.jbpm.workbench.common.model.GenericSummary,V extends AbstractMultiGridPresenter>
-
removeActiveFilter
public <T> void removeActiveFilter(ActiveFilterItem<T> filter)
- Specified by:
removeActiveFilterin interfaceMultiGridView<T extends org.jbpm.workbench.common.model.GenericSummary,V extends AbstractMultiGridPresenter>
-
removeAllActiveFilters
public void removeAllActiveFilters()
- Specified by:
removeAllActiveFiltersin interfaceMultiGridView<T extends org.jbpm.workbench.common.model.GenericSummary,V extends AbstractMultiGridPresenter>
-
onResize
public void onResize()
- Specified by:
onResizein interfacecom.google.gwt.user.client.ui.RequiresResize
-
getSortColumn
public String getSortColumn()
- Specified by:
getSortColumnin interfaceMultiGridView<T extends org.jbpm.workbench.common.model.GenericSummary,V extends AbstractMultiGridPresenter>
-
isSortAscending
public Boolean isSortAscending()
- Specified by:
isSortAscendingin interfaceMultiGridView<T extends org.jbpm.workbench.common.model.GenericSummary,V extends AbstractMultiGridPresenter>
-
reloadColumnSortList
protected void reloadColumnSortList()
-
-