本文整理汇总了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);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
示例12: getRestDispatch
import com.gwtplatform.dispatch.rest.client.RestDispatch; //导入依赖的package包/类
RestDispatch getRestDispatch();