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 |
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 |
addNewTableToColumn(ListTable<T> newListGrid) |
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 |
displayNotification(String text) |
protected void |
enableWidgets(com.google.gwt.user.client.ui.Widget widget,
boolean enable) |
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() |
void |
hideBusyIndicator() |
void |
init(V presenter) |
protected org.uberfire.ext.widgets.table.client.ColumnMeta<T> |
initActionsColumn() |
protected void |
initBulkActions(ExtendedPagedTable<T> extendedPagedTable) |
protected 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) |
void |
loadListTable(String key,
Consumer<ListTable<T>> readyCallback) |
void |
onResize() |
<T> void |
removeActiveFilter(ActiveFilterItem<T> filter) |
void |
removeAllActiveFilters() |
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, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringpublic 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
public void displayNotification(String text)
displayNotification 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 com.google.gwt.user.cellview.client.Column initGenericColumn(String key)
public void showBusyIndicator(String message)
showBusyIndicator in interface ListView<T extends GenericSummary,V extends AbstractMultiGridPresenter>showBusyIndicator in interface org.uberfire.ext.widgets.common.client.common.HasBusyIndicatorpublic void hideBusyIndicator()
hideBusyIndicator in interface ListView<T extends GenericSummary,V extends AbstractMultiGridPresenter>hideBusyIndicator in interface org.uberfire.ext.widgets.common.client.common.HasBusyIndicatorpublic ListTable<T> getListGrid()
getListGrid in interface ListView<T extends GenericSummary,V extends AbstractMultiGridPresenter>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)
protected 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 abstract List<ConditionalAction<T>> getConditionalActions()
protected org.uberfire.ext.widgets.table.client.ColumnMeta<T> initActionsColumn()
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.RequiresResizeCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.