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


Java RestDispatch类代码示例

本文整理汇总了Java中com.gwtplatform.dispatch.rest.client.RestDispatch的典型用法代码示例。如果您正苦于以下问题:Java RestDispatch类的具体用法?Java RestDispatch怎么用?Java RestDispatch使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


RestDispatch类属于com.gwtplatform.dispatch.rest.client包,在下文中一共展示了RestDispatch类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ApplicationPresenter

import com.gwtplatform.dispatch.rest.client.RestDispatch; //导入依赖的package包/类
@Inject
ApplicationPresenter(EventBus eventBus,
                     MyView view,
                     MyProxy proxy,
                     RestDispatch dispatch,
                     UserService userService,
                     CurrentUser currentUser,
                     PlaceManager placeManager) {
    super(eventBus, view, proxy, RevealType.Root);

    this.dispatch = dispatch;
    this.userService = userService;
    this.currentUser = currentUser;
    this.placeManager = placeManager;

    getView().setUiHandlers(this);
}
 
开发者ID:imrabti,项目名称:gwtp-spring-security,代码行数:18,代码来源:ApplicationPresenter.java

示例2: LoginPresenter

import com.gwtplatform.dispatch.rest.client.RestDispatch; //导入依赖的package包/类
@Inject
LoginPresenter(EventBus eventBus,
               MyView view,
               MyProxy proxy,
               PlaceManager placeManager,
               RestDispatch dispatcher,
               UserService userService,
               CurrentUser currentUser) {
    super(eventBus, view, proxy, RevealType.Root);

    this.placeManager = placeManager;
    this.dispatcher = dispatcher;
    this.userService = userService;
    this.currentUser = currentUser;

    getView().setUiHandlers(this);
}
 
开发者ID:imrabti,项目名称:gwtp-spring-security,代码行数:18,代码来源:LoginPresenter.java

示例3: LogoutPresenter

import com.gwtplatform.dispatch.rest.client.RestDispatch; //导入依赖的package包/类
/**
 * constructor injecting parameters.
 */
@Inject
public LogoutPresenter(final EventBus peventBus, final MyView pview, final MyProxy pproxy,
    final RestDispatch pdispatcher, final UserRestService puserService, final Session psession) {
  super(peventBus, pview, pproxy, AbstractBasePagePresenter.SLOT_MAIN_CONTENT);
  this.dispatcher = pdispatcher;
  this.userService = puserService;
  this.session = psession;
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators-example,代码行数:12,代码来源:LogoutPresenter.java

示例4: SepaPresenter

import com.gwtplatform.dispatch.rest.client.RestDispatch; //导入依赖的package包/类
/**
 * constructor injecting parameters.
 */
@Inject
public SepaPresenter(final EventBus peventBus, final MyView pview, final MyProxy pproxy,
    final SepaConstants pconstants, final RestDispatch pdispatcher,
    final SepaRestService psepaService, final Session psession) {
  super(peventBus, pview, pproxy, AbstractBasePagePresenter.SLOT_MAIN_CONTENT);
  this.constants = pconstants;
  this.dispatcher = pdispatcher;
  this.sepaService = psepaService;
  this.session = psession;
  this.sepaData = new SepaData();
  this.sepaData.setCountryCode(CountryEnum.valueOf(pconstants.defaultCountry()));
  this.getView().setPresenter(this);
  this.getView().fillForm(this.sepaData);
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators-example,代码行数:18,代码来源:SepaPresenter.java

示例5: LoginPresenter

import com.gwtplatform.dispatch.rest.client.RestDispatch; //导入依赖的package包/类
/**
 * presenter with injected parameters.
 */
@Inject
public LoginPresenter(final EventBus peventBus, final MyView pview, final MyProxy pproxy,
    final RestDispatch pdispatcher, final UserRestService puserService, final Session psession) {
  super(peventBus, pview, pproxy, AbstractBasePagePresenter.SLOT_MAIN_CONTENT);
  this.dispatcher = pdispatcher;
  this.userService = puserService;
  this.session = psession;
  this.loginData = new LoginData();
  this.getView().setPresenter(this);
  this.getView().fillForm(this.loginData);
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators-example,代码行数:15,代码来源:LoginPresenter.java

示例6: PhoneNumberPresenter

import com.gwtplatform.dispatch.rest.client.RestDispatch; //导入依赖的package包/类
/**
 * constructor injecting parameters.
 */
@Inject
public PhoneNumberPresenter(final EventBus peventBus, final MyView pview, final MyProxy pproxy,
    final PhoneNumberConstants pconstants, final RestDispatch pdispatcher,
    final PhoneRestService pphoneNumberService, final Session psession) {
  super(peventBus, pview, pproxy, AbstractBasePagePresenter.SLOT_MAIN_CONTENT);
  this.constants = pconstants;
  this.dispatcher = pdispatcher;
  this.session = psession;
  this.phoneNumberService = pphoneNumberService;
  this.phoneNumberData = new PhoneNumberData();
  this.phoneNumberData.setCountryCode(CountryEnum.valueOf(pconstants.defaultCountry()));
  this.getView().setPresenter(this);
  this.getView().fillForm(this.phoneNumberData);
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators-example,代码行数:18,代码来源:PhoneNumberPresenter.java

示例7: EmailPresenter

import com.gwtplatform.dispatch.rest.client.RestDispatch; //导入依赖的package包/类
/**
 * constructor injecting parameters.
 */
@Inject
public EmailPresenter(final EventBus peventBus, final MyView pview, final MyProxy pproxy,
    final EmailConstants pconstants, final RestDispatch pdispatcher,
    final EmailListRestService pemailListService, final Session psession) {
  super(peventBus, pview, pproxy, AbstractBasePagePresenter.SLOT_MAIN_CONTENT);
  this.dispatcher = pdispatcher;
  this.emailListService = pemailListService;
  this.constants = pconstants;
  this.session = psession;
  this.emailListData = new EmailListData();
  this.getView().setPresenter(this);
  this.getView().fillForm(this.emailListData);
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators-example,代码行数:17,代码来源:EmailPresenter.java

示例8: AddressPresenter

import com.gwtplatform.dispatch.rest.client.RestDispatch; //导入依赖的package包/类
/**
 * constructor injecting parameters.
 */
@Inject
public AddressPresenter(final EventBus peventBus, final MyView pview, final MyProxy pproxy,
    final AddressConstants pconstants, final RestDispatch pdispatcher,
    final PostalAddressRestService ppostalAddressService, final Session psession) {
  super(peventBus, pview, pproxy, AbstractBasePagePresenter.SLOT_MAIN_CONTENT);
  this.dispatcher = pdispatcher;
  this.postalAddressService = ppostalAddressService;
  this.constants = pconstants;
  this.session = psession;
  this.addressData = new PostalAddressData();
  this.addressData.setCountryCode(CountryEnum.valueOf(pconstants.defaultCountry()));
  this.getView().setPresenter(this);
  this.getView().fillForm(this.addressData);
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators-example,代码行数:18,代码来源:AddressPresenter.java

示例9: PersonPresenter

import com.gwtplatform.dispatch.rest.client.RestDispatch; //导入依赖的package包/类
/**
 * constructor injecting parameters.
 */
@Inject
public PersonPresenter(final EventBus peventBus, final MyView pview, final MyProxy pproxy,
    final PlaceManager pplaceManager, final PersonConstants pconstants,
    final RestDispatch pdispatcher, final PersonRestService ppersonService,
    final Session psession) {
  super(peventBus, pview, pproxy, AbstractBasePagePresenter.SLOT_MAIN_CONTENT);
  this.placeManager = pplaceManager;
  this.constants = pconstants;
  this.dispatcher = pdispatcher;
  this.personService = ppersonService;
  this.session = psession;
  this.getView().setPresenter(this);
  this.fillForm(new Person(), null);
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators-example,代码行数:18,代码来源:PersonPresenter.java

示例10: BootstrapperImpl

import com.gwtplatform.dispatch.rest.client.RestDispatch; //导入依赖的package包/类
@Inject
BootstrapperImpl(PlaceManager placeManager,
                 CurrentUser currentUser,
                 RestDispatch dispatcher,
                 UserService userService,
                 @UnauthorizedPlace String unauthorizedPlace) {
    this.currentUser = currentUser;
    this.dispatcher = dispatcher;
    this.userService = userService;
    this.unauthorizedPlace = unauthorizedPlace;
    this.placeManager = placeManager;
}
 
开发者ID:imrabti,项目名称:gwtp-spring-security,代码行数:13,代码来源:BootstrapperImpl.java

示例11: CurrentSession

import com.gwtplatform.dispatch.rest.client.RestDispatch; //导入依赖的package包/类
/**
 * constructor with injected parameters.
 *
 * @param peventBus event bus
 */
@Inject
public CurrentSession(final EventBus peventBus, final RestDispatch pdispatcher,
    final UserRestService puserService) {
  super(peventBus, pdispatcher, puserService);
}
 
开发者ID:ManfredTremmel,项目名称:gwt-bean-validators-example,代码行数:11,代码来源:CurrentSession.java

示例12: getRestDispatch

import com.gwtplatform.dispatch.rest.client.RestDispatch; //导入依赖的package包/类
RestDispatch getRestDispatch(); 
开发者ID:nmorel,项目名称:gwt-jackson,代码行数:2,代码来源:HelloGinjector.java


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