info.magnolia.ui.admincentral.shellapp.pulse.item.list
Class AbstractPulseListPresenter<T,L extends PulseListPresenter.Listener>

java.lang.Object
  extended by info.magnolia.ui.admincentral.shellapp.pulse.item.list.AbstractPulseListPresenter<T,L>
Type Parameters:
T - typed parameter for the items.
L - typed listener used to call back to the parent presenter.
All Implemented Interfaces:
PulseDetailPresenter.Listener, PulseListPresenter<L>, PulseListView.Listener
Direct Known Subclasses:
MessagesListPresenter, TasksListPresenter

public abstract class AbstractPulseListPresenter<T,L extends PulseListPresenter.Listener>
extends Object
implements PulseListPresenter<L>, PulseDetailPresenter.Listener, PulseListView.Listener

Abstract presenter for items displayed in pulse.


Nested Class Summary
 
Nested classes/interfaces inherited from interface info.magnolia.ui.admincentral.shellapp.pulse.item.list.PulseListPresenter
PulseListPresenter.Listener
 
Field Summary
protected  AbstractPulseListContainer<T> container
           
protected  L listener
           
 
Constructor Summary
protected AbstractPulseListPresenter(AbstractPulseListContainer<T> container)
           
 
Method Summary
 void filterByItemCategory(PulseItemCategory category)
           
 Collection<?> getGroup(Object itemId)
          Return list of child items.
 Object getParent(Object itemId)
          Return parent itemId for an item.
 void setGrouping(boolean checked)
           
 void setListener(L listener)
           
 void showList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.magnolia.ui.admincentral.shellapp.pulse.item.list.PulseListPresenter
openItem, start
 
Methods inherited from interface info.magnolia.ui.admincentral.shellapp.pulse.item.detail.PulseDetailPresenter.Listener
updateDetailView
 
Methods inherited from interface info.magnolia.ui.admincentral.shellapp.pulse.item.list.PulseListView.Listener
deleteItems, onItemClicked
 

Field Detail

container

protected AbstractPulseListContainer<T> container

listener

protected L extends PulseListPresenter.Listener listener
Constructor Detail

AbstractPulseListPresenter

protected AbstractPulseListPresenter(AbstractPulseListContainer<T> container)
Method Detail

setListener

public void setListener(L listener)
Specified by:
setListener in interface PulseListPresenter<L extends PulseListPresenter.Listener>

showList

public void showList()
Specified by:
showList in interface PulseDetailPresenter.Listener

getParent

public Object getParent(Object itemId)
Return parent itemId for an item.

Specified by:
getParent in interface PulseListView.Listener

getGroup

public Collection<?> getGroup(Object itemId)
Return list of child items.

Specified by:
getGroup in interface PulseListView.Listener

setGrouping

public void setGrouping(boolean checked)
Specified by:
setGrouping in interface PulseListView.Listener

filterByItemCategory

public void filterByItemCategory(PulseItemCategory category)
Specified by:
filterByItemCategory in interface PulseListView.Listener


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.