本文整理匯總了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);