com.github.thorbenkuck.keller.mvp.ViewController 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;
import com.github.thorbenkuck.keller.datatypes.interfaces.Factory;
import com.github.thorbenkuck.keller.sync.Awaiting;
import java.util.Map;
import java.util.Optional;
import java.util.function.Consumer;
public interface ViewController {
static ViewController createViewController() {
return new AsynchronousViewController(ThreadPoolCache.getExecutorService());
}
void setViewFactoryMap(final Map, Factory> factoryMap);
void addFactory(final Class extends View> clazz, final Factory viewFactory);
Awaiting openMainStage(final Class extends View> stageClass);
Awaiting openSeparateStage(final Class extends View> stageClazz);
Optional getActiveSeparateStage(final Class stageClazz);
Awaiting closeAll();
Awaiting closeAllSeparateStages();
Awaiting closeSeparateActiveStage(final Class extends View> stage);
Awaiting closeSeparateActiveStage(final View stage);
View getMainView();
void setThreadExtractor(Consumer extractor);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy