當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。