当前位置: 首页>>代码示例>>Java>>正文


Java Presentable类代码示例

本文整理汇总了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));
}
 
开发者ID:GwtDomino,项目名称:domino,代码行数:9,代码来源:PresentersCollector.java

示例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);
}
 
开发者ID:GwtDomino,项目名称:domino,代码行数:16,代码来源:RegisterPresentersMethodWriter.java

示例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();
        }
    });
}
 
开发者ID:GwtDomino,项目名称:domino,代码行数:10,代码来源:PresenterRegistrationModuleConfiguration.java

示例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();
        }
    });
}
 
开发者ID:GwtDomino,项目名称:domino,代码行数:16,代码来源:PresentersRegistrationsModuleConfiguration.java

示例5: getRequestPresenter

import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
protected Presentable getRequestPresenter() {
    return clientApp.getPresentersRepository().getPresenter(getPresenterName());
}
 
开发者ID:GwtDomino,项目名称:domino,代码行数:4,代码来源:BaseRequest.java

示例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);
}
 
开发者ID:GwtDomino,项目名称:domino,代码行数:7,代码来源:InMemoryPresentersRepository.java

示例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);
}
 
开发者ID:GwtDomino,项目名称:domino,代码行数:7,代码来源:TestInMemoryPresenterRepository.java

示例8: make

import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
@Override
protected Presentable make() {
    return getPresenter();
}
 
开发者ID:GwtDomino,项目名称:domino,代码行数:5,代码来源:TestInMemoryPresenterRepository.java

示例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;
}
 
开发者ID:GwtDomino,项目名称:domino,代码行数:6,代码来源:DominoTestClient.java

示例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;
}
 
开发者ID:GwtDomino,项目名称:domino,代码行数:6,代码来源:DominoTestClient.java

示例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;
}
 
开发者ID:GwtDomino,项目名称:domino,代码行数:6,代码来源:DominoTestClient.java

示例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());
}
 
开发者ID:GwtDomino,项目名称:domino,代码行数:5,代码来源:PresenterCommandProcessor.java

示例13: replacePresenter

import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
CanCustomizeClient replacePresenter(Class<? extends Presentable> original, Presentable replacement, ReplacePresenterHandler handler); 
开发者ID:GwtDomino,项目名称:domino,代码行数:2,代码来源:CanUseModule.java

示例14: replacePresenter

import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
CanCustomizeClient replacePresenter(Class<? extends Presentable> original, Presentable replacement); 
开发者ID:GwtDomino,项目名称:domino,代码行数:2,代码来源:CanCustomizeClient.java

示例15: replaceView

import com.progressoft.brix.domino.api.client.mvp.presenter.Presentable; //导入依赖的package包/类
CanCustomizeClient replaceView(Class<? extends Presentable> presenter, View view); 
开发者ID:GwtDomino,项目名称:domino,代码行数:2,代码来源:CanCustomizeClient.java


注:本文中的com.progressoft.brix.domino.api.client.mvp.presenter.Presentable类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。