本文整理汇总了Java中com.progressoft.brix.domino.api.client.mvp.presenter.Presentable类的典型用法代码示例。如果您正苦于以下问题:Java Presentable类的具体用法?Java Presentable怎么用?Java Presentable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Presentable类属于com.progressoft.brix.domino.api.client.mvp.presenter包,在下文中一共展示了Presentable类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addPresenter
import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
private boolean addPresenter(ProcessorElement p) {
if(!p.isImplementsInterface(Presentable.class)){
messager.printMessage(Diagnostic.Kind.ERROR, "Not implementing presentable interface", p.getElement());
throw new NotImplementingPresentableInterfaceException();
}
return presenters.add(p.fullQualifiedNoneGenericName() + ":" +
getPresentableInterface(p));
}
示例2: registerItem
import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
@Override
protected void registerItem(PresenterEntry entry, MethodSpec.Builder methodBuilder) {
MethodSpec makeMethod = MethodSpec.methodBuilder("make")
.addModifiers(Modifier.PROTECTED)
.addAnnotation(Override.class)
.returns(Presentable.class)
.addStatement("return new $T()", ClassName.bestGuess(entry.impl))
.build();
TypeSpec lazyLoaderType = TypeSpec.anonymousClassBuilder("$T.class.getCanonicalName(), $T.class.getCanonicalName()"
, ClassName.bestGuess(entry.name), ClassName.bestGuess(entry.impl))
.superclass(LazyPresenterLoader.class)
.addMethod(makeMethod)
.build();
methodBuilder.addStatement("registry.registerPresenter($L)", lazyLoaderType);
}
示例3: registerPresenters
import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
@Override
public void registerPresenters(PresenterRegistry registry) {
registry.registerPresenter(new LazyPresenterLoader(PresenterInterface.class.getCanonicalName(), DefaultAnnotatedClassWithPresenter.class.getCanonicalName()) {
@Override
protected Presentable make() {
return new DefaultAnnotatedClassWithPresenter();
}
});
}
示例4: registerPresenters
import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
@Override
public void registerPresenters(PresenterRegistry registry) {
registry.registerPresenter(new LazyPresenterLoader(FirstPresenterInterface.class.getCanonicalName(), FirstAnnotatedClassWithPresenter.class.getCanonicalName()) {
@Override
protected Presentable make() {
return new FirstAnnotatedClassWithPresenter();
}
});
registry.registerPresenter(new LazyPresenterLoader(SecondPresenterInterface.class.getCanonicalName(), SecondAnnotatedClassWithPresenter.class.getCanonicalName()) {
@Override
protected Presentable make() {
return new SecondAnnotatedClassWithPresenter();
}
});
}
示例5: getRequestPresenter
import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
protected Presentable getRequestPresenter() {
return clientApp.getPresentersRepository().getPresenter(getPresenterName());
}
示例6: getPresenter
import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
@Override
public Presentable getPresenter(String presenterName) {
if (isRegisteredPresenter(presenterName))
return presenters.get(presenterName).getPresenter();
throw new PresenterNotFoundException(presenterName);
}
示例7: getPresenter
import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
@Override
public Presentable getPresenter(String presenterName) {
if (replacedPresenters.containsKey(presenterName))
return replacedPresenters.get(presenterName).getPresenter();
return super.getPresenter(presenterName);
}
示例8: make
import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
@Override
protected Presentable make() {
return getPresenter();
}
示例9: replacePresenter
import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
@Override
public CanCustomizeClient replacePresenter(Class<? extends Presentable> original, Presentable presentable) {
presentersReplacements.put(original.getCanonicalName(), presentable);
return this;
}
示例10: replaceView
import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
@Override
public CanCustomizeClient replaceView(Class<? extends Presentable> presenter, View view) {
viewsReplacements.put(presenter.getCanonicalName(), view);
return this;
}
示例11: viewOf
import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
@Override
public CanCustomizeClient viewOf(Class<? extends Presentable> presenter, ViewHandler handler) {
this.viewsOf.add(new ViewOf(presenter.getCanonicalName(), handler));
return this;
}
示例12: isPresentableInterface
import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
private boolean isPresentableInterface(TypeMirror implementedInterface) {
return typeUtils.isAssignable(implementedInterface,
elementUtils.getTypeElement(Presentable.class.getCanonicalName()).asType());
}
示例13: replacePresenter
import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
CanCustomizeClient replacePresenter(Class<? extends Presentable> original, Presentable replacement, ReplacePresenterHandler handler);
示例14: replacePresenter
import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
CanCustomizeClient replacePresenter(Class<? extends Presentable> original, Presentable replacement);
示例15: replaceView
import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
CanCustomizeClient replaceView(Class<? extends Presentable> presenter, View view);