public abstract class AbstractPulseListPresenter extends Object implements PulseListPresenter, PulseDetailPresenter.Listener, PulseListView.Listener, PulseListFooterPresenter.Listener
PulseListPresenter.Listener
Modifier and Type | Field and Description |
---|---|
protected PulseListActionExecutor |
actionExecutor |
protected AvailabilityChecker |
availabilityChecker |
protected PulseDataProvider |
dataProvider |
protected PulseListDefinition |
definition |
protected PulseListPresenter.Listener |
listener |
protected PulseListFooterPresenter |
pulseListFooterPresenter |
Modifier | Constructor and Description |
---|---|
protected |
AbstractPulseListPresenter(PulseDataProvider dataProvider,
ConfiguredPulseListDefinition definition,
AvailabilityChecker availabilityChecker,
PulseListActionExecutor pulseListActionExecutor,
PulseListFooterPresenter pulseListFooterPresenter) |
Modifier and Type | Method and Description |
---|---|
protected void |
executeAction(String actionName) |
abstract PulseItemCategory |
getCategory() |
abstract int |
getPendingItemCount() |
protected abstract Set<String> |
getSelectedItemIds() |
void |
onBulkActionTriggered(String actionId) |
void |
onDataChanged()
Reacts on data change events from the DataProvider in order to update the UI.
|
void |
onSelectionChanged(Set<Object> itemIds) |
abstract View |
openItem(String itemId) |
void |
setGrouping(boolean checked) |
void |
setListener(PulseListPresenter.Listener listener) |
void |
showList() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
start
updateDetailView
onItemClicked
protected final PulseDataProvider dataProvider
protected final AvailabilityChecker availabilityChecker
protected final PulseListActionExecutor actionExecutor
protected final PulseListFooterPresenter pulseListFooterPresenter
protected PulseListDefinition definition
protected PulseListPresenter.Listener listener
protected AbstractPulseListPresenter(PulseDataProvider dataProvider, ConfiguredPulseListDefinition definition, AvailabilityChecker availabilityChecker, PulseListActionExecutor pulseListActionExecutor, PulseListFooterPresenter pulseListFooterPresenter)
public void setListener(PulseListPresenter.Listener listener)
setListener
in interface PulseListPresenter
public void showList()
showList
in interface PulseDetailPresenter.Listener
public void setGrouping(boolean checked)
setGrouping
in interface PulseListView.Listener
public abstract PulseItemCategory getCategory()
getCategory
in interface PulseListPresenter
public abstract View openItem(String itemId) throws info.magnolia.registry.RegistrationException
openItem
in interface PulseListPresenter
info.magnolia.registry.RegistrationException
public abstract int getPendingItemCount()
getPendingItemCount
in interface PulseListPresenter
protected abstract Set<String> getSelectedItemIds()
public void onSelectionChanged(Set<Object> itemIds)
onSelectionChanged
in interface PulseListView.Listener
public void onBulkActionTriggered(String actionId)
onBulkActionTriggered
in interface PulseListFooterPresenter.Listener
protected void executeAction(String actionName)
public void onDataChanged()
PulseListView.Listener
DataProvider.refreshAll()
.onDataChanged
in interface PulseListView.Listener
Copyright © 2019 Magnolia International Ltd.. All rights reserved.