- 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> voidnotifyModel(String method, D data)<D> voidnotifyModel(String method, D data, Class type)<D> voidnotifyView(String method, D data)<D> voidnotifyView(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:
notifyViewin interfaceIModelListener- Throws:
NoSuchMethodExceptionSecurityExceptionIllegalAccessExceptionIllegalArgumentExceptionInvocationTargetException
-
notifyView
public <D> void notifyView(String method, D data) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
- Specified by:
notifyViewin interfaceIModelListener- Parameters:
method- The name of the method to notify on the view.data- The data to send to the view's method.- Throws:
IllegalAccessExceptionIllegalArgumentExceptionInvocationTargetExceptionNoSuchMethodExceptionSecurityException
-
notifyModel
public <D> void notifyModel(String method, D data, Class type) throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException
- Specified by:
notifyModelin interfaceIViewListener- Throws:
NoSuchMethodExceptionSecurityExceptionIllegalAccessExceptionIllegalArgumentExceptionInvocationTargetException
-
notifyModel
public <D> void notifyModel(String method, D data) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
- Specified by:
notifyModelin interfaceIViewListener- Parameters:
method- The name of the method to notify on the model.data- The data to send to the model's method.- Throws:
IllegalAccessExceptionIllegalArgumentExceptionInvocationTargetExceptionNoSuchMethodExceptionSecurityException
-
-