- java.lang.Object
-
- ilusr.core.mvpbase.PresenterBase
-
- All Implemented Interfaces:
IModelListener
,IViewListener
public class PresenterBase extends Object implements IViewListener, IModelListener
- Author:
- Jeff Riggle
-
-
Constructor Summary
Constructors Constructor Description PresenterBase(IView view, IModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <D> void
notifyModel(String method, D data)
<D> void
notifyModel(String method, D data, Class type)
<D> void
notifyView(String method, D data)
<D> void
notifyView(String method, D data, Class type)
-
-
-
Method Detail
-
notifyView
public <D> void notifyView(String method, D data, Class type) throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException
- Specified by:
notifyView
in interfaceIModelListener
- Throws:
NoSuchMethodException
SecurityException
IllegalAccessException
IllegalArgumentException
InvocationTargetException
-
notifyView
public <D> void notifyView(String method, D data) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
- Specified by:
notifyView
in interfaceIModelListener
- Parameters:
method
- The name of the method to notify on the view.data
- The data to send to the view's method.- Throws:
IllegalAccessException
IllegalArgumentException
InvocationTargetException
NoSuchMethodException
SecurityException
-
notifyModel
public <D> void notifyModel(String method, D data, Class type) throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException
- Specified by:
notifyModel
in interfaceIViewListener
- Throws:
NoSuchMethodException
SecurityException
IllegalAccessException
IllegalArgumentException
InvocationTargetException
-
notifyModel
public <D> void notifyModel(String method, D data) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
- Specified by:
notifyModel
in interfaceIViewListener
- Parameters:
method
- The name of the method to notify on the model.data
- The data to send to the model's method.- Throws:
IllegalAccessException
IllegalArgumentException
InvocationTargetException
NoSuchMethodException
SecurityException
-
-