public abstract class AbstractMultiGridView<T extends GenericSummary,V extends AbstractMultiGridPresenter> extends com.google.gwt.user.client.ui.Composite implements MultiGridView<T,V>, com.google.gwt.user.client.ui.RequiresResize
Modifier and Type | Field and Description |
---|---|
static int |
ACTIONS_COLUMN_WIDTH |
protected BlockingError |
alert |
static int |
CHECK_COLUMN_WIDTH |
static String |
COL_ID_ACTIONS |
static String |
COL_ID_SELECT |
protected elemental2.dom.HTMLDivElement |
column |
protected org.jboss.errai.ioc.client.api.ManagedInstance<ConditionalKebabActionCell> |
conditionalKebabActionCell |
static int |
ERROR_COLUMN_WIDTH |
protected ActiveFilters |
filters |
protected ListTable<T> |
listTable |
protected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> |
notification |
protected org.uberfire.client.mvp.PlaceManager |
placeManager |
protected ManagePreferences |
preferences |
protected V |
presenter |
protected org.jboss.errai.common.client.api.Caller<org.uberfire.ext.services.shared.preferences.UserPreferencesService> |
userPreferencesService |
Constructor and Description |
---|
AbstractMultiGridView() |
Modifier and Type | Method and Description |
---|---|
<T> void |
addActiveFilter(ActiveFilterItem<T> filter) |
protected void |
addColumnSortHandler(ExtendedPagedTable listTable) |
void |
addDomainSpecifColumns(Set<String> columns) |
protected void |
addNewTableToColumn(ListTable<T> newListGrid) |
void |
clearBlockingError() |
protected void |
controlBulkOperations(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) |
void |
displayBlockingError(String summary,
String content) |
void |
displayNotification(String text) |
protected void |
enableWidgets(com.google.gwt.user.client.ui.Widget widget,
boolean enable) |
protected boolean |
existsColumnWithSameName(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 String |
getEmptyTableCaption() |
abstract List<String> |
getInitColumns() |
ListTable<T> |
getListGrid() |
String |
getSortColumn() |
protected boolean |
hasBulkActions() |
void |
hideBusyIndicator() |
void |
init(V presenter) |
org.uberfire.ext.widgets.table.client.ColumnMeta<T> |
initActionsColumn() |
protected void |
initBulkActions(ExtendedPagedTable<T> extendedPagedTable) |
org.uberfire.ext.widgets.table.client.ColumnMeta<T> |
initChecksColumn(ListTable<T> extendedPagedTable) |
abstract void |
initColumns(ListTable<T> extendedPagedTable) |
protected com.google.gwt.user.cellview.client.Column |
initGenericColumn(String key) |
void |
initSelectionModel(ListTable<T> extendedPagedTable) |
protected boolean |
isColumnAdded(List<org.uberfire.ext.widgets.table.client.ColumnMeta<T>> columnMetas,
String caption) |
Boolean |
isSortAscending() |
void |
loadListTable(String key,
Consumer<ListTable<T>> readyCallback) |
void |
onResize() |
protected void |
reloadColumnSortList() |
<T> void |
removeActiveFilter(ActiveFilterItem<T> filter) |
void |
removeAllActiveFilters() |
void |
removeDomainSpecifColumns() |
List<org.uberfire.ext.widgets.table.client.ColumnMeta<T>> |
renameVariables(ListTable<T> extendedPagedTable,
List<org.uberfire.ext.widgets.table.client.ColumnMeta<T>> columnMetas) |
void |
setSaveFilterCallback(BiConsumer<String,Consumer<String>> filterNameCallback) |
void |
setUserPreferencesService(org.jboss.errai.common.client.api.Caller<org.uberfire.ext.services.shared.preferences.UserPreferencesService> userPreferencesService) |
void |
showBusyIndicator(String message) |
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
public static final String COL_ID_SELECT
public static final String COL_ID_ACTIONS
public static final int ACTIONS_COLUMN_WIDTH
public static final int CHECK_COLUMN_WIDTH
public static final int ERROR_COLUMN_WIDTH
@Inject protected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notification
@Inject protected org.jboss.errai.ioc.client.api.ManagedInstance<ConditionalKebabActionCell> conditionalKebabActionCell
@Inject protected org.uberfire.client.mvp.PlaceManager placeManager
@Inject protected ManagePreferences preferences
protected org.jboss.errai.common.client.api.Caller<org.uberfire.ext.services.shared.preferences.UserPreferencesService> userPreferencesService
protected ListTable<T extends GenericSummary> listTable
protected V extends AbstractMultiGridPresenter presenter
@Inject @DataField(value="column") protected elemental2.dom.HTMLDivElement column
@Inject @DataField(value="active-filters") protected ActiveFilters filters
@Inject @DataField(value="alert") protected BlockingError alert
public void displayNotification(String text)
displayNotification
in interface ListView<T extends GenericSummary,V extends AbstractMultiGridPresenter>
public void displayBlockingError(String summary, String content)
displayBlockingError
in interface ListView<T extends GenericSummary,V extends AbstractMultiGridPresenter>
public void clearBlockingError()
clearBlockingError
in interface ListView<T extends GenericSummary,V extends AbstractMultiGridPresenter>
public void init(V presenter)
init
in interface org.uberfire.client.mvp.HasPresenter<V extends AbstractMultiGridPresenter>
protected void enableWidgets(com.google.gwt.user.client.ui.Widget widget, boolean enable)
public void loadListTable(String key, Consumer<ListTable<T>> readyCallback)
loadListTable
in interface MultiGridView<T extends GenericSummary,V extends AbstractMultiGridPresenter>
protected void addColumnSortHandler(ExtendedPagedTable listTable)
protected com.google.gwt.user.cellview.client.Column initGenericColumn(String key)
public void showBusyIndicator(String message)
showBusyIndicator
in interface org.uberfire.ext.widgets.common.client.common.HasBusyIndicator
public void hideBusyIndicator()
hideBusyIndicator
in interface org.uberfire.ext.widgets.common.client.common.HasBusyIndicator
public ListTable<T> getListGrid()
getListGrid
in interface ListView<T extends GenericSummary,V extends AbstractMultiGridPresenter>
protected boolean hasBulkActions()
public abstract String getEmptyTableCaption()
@Inject public void setUserPreferencesService(org.jboss.errai.common.client.api.Caller<org.uberfire.ext.services.shared.preferences.UserPreferencesService> userPreferencesService)
public com.google.gwt.user.cellview.client.Column<T,String> createTextColumn(String columnId, Function<T,String> valueFunction)
protected void initBulkActions(ExtendedPagedTable<T> extendedPagedTable)
protected List<org.gwtbootstrap3.client.ui.AnchorListItem> getBulkActionsItems(ExtendedPagedTable<T> extendedPagedTable)
public com.google.gwt.user.cellview.client.Column<T,Number> createNumberColumn(String columnId, Function<T,Number> valueFunction)
public org.uberfire.ext.widgets.table.client.ColumnMeta<T> initChecksColumn(ListTable<T> extendedPagedTable)
protected boolean isColumnAdded(List<org.uberfire.ext.widgets.table.client.ColumnMeta<T>> columnMetas, String caption)
protected boolean existsColumnWithSameName(org.uberfire.ext.services.shared.preferences.GridColumnPreference gridColumnPreference, List<org.uberfire.ext.widgets.table.client.ColumnMeta<T>> columns)
protected abstract List<ConditionalAction<T>> getConditionalActions()
public org.uberfire.ext.widgets.table.client.ColumnMeta<T> initActionsColumn()
public List<org.uberfire.ext.widgets.table.client.ColumnMeta<T>> renameVariables(ListTable<T> extendedPagedTable, List<org.uberfire.ext.widgets.table.client.ColumnMeta<T>> columnMetas)
public void removeDomainSpecifColumns()
public void setSaveFilterCallback(BiConsumer<String,Consumer<String>> filterNameCallback)
setSaveFilterCallback
in interface MultiGridView<T extends GenericSummary,V extends AbstractMultiGridPresenter>
public <T> void addActiveFilter(ActiveFilterItem<T> filter)
addActiveFilter
in interface MultiGridView<T extends GenericSummary,V extends AbstractMultiGridPresenter>
public <T> void removeActiveFilter(ActiveFilterItem<T> filter)
removeActiveFilter
in interface MultiGridView<T extends GenericSummary,V extends AbstractMultiGridPresenter>
public void removeAllActiveFilters()
removeAllActiveFilters
in interface MultiGridView<T extends GenericSummary,V extends AbstractMultiGridPresenter>
public void onResize()
onResize
in interface com.google.gwt.user.client.ui.RequiresResize
public String getSortColumn()
getSortColumn
in interface MultiGridView<T extends GenericSummary,V extends AbstractMultiGridPresenter>
public Boolean isSortAscending()
isSortAscending
in interface MultiGridView<T extends GenericSummary,V extends AbstractMultiGridPresenter>
protected void reloadColumnSortList()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.