com.github.thorbenkuck.keller.mvp.Presenter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of keller-mvp Show documentation
Show all versions of keller-mvp Show documentation
Keller is a universal base-package
The newest version!
package com.github.thorbenkuck.keller.mvp;
public interface Presenter {
/**
* May be called in the factory creation
*/
default void instantiate(T t) {
try {
t.instantiate();
setView(t);
} catch (InstantiationException e) {
errorInViewInstantiation(e);
}
}
default void onClose() {}
default void errorInViewInstantiation(InstantiationException e) {
e.printStackTrace();
}
void setView(T t);
T getView();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy