本文整理汇总了Java中com.google.gwt.user.client.ui.AcceptsOneWidget类的典型用法代码示例。如果您正苦于以下问题:Java AcceptsOneWidget类的具体用法?Java AcceptsOneWidget怎么用?Java AcceptsOneWidget使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AcceptsOneWidget类属于com.google.gwt.user.client.ui包,在下文中一共展示了AcceptsOneWidget类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: go
import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入依赖的package包/类
@Override
public void go(AcceptsOneWidget container) {
container.setWidget(view);
String currentThemeId = preferencesManager.getValue(PREF_IDE_GENERAL_THEME);
if (currentThemeId == null || currentThemeId.isEmpty()) {
currentThemeId = themeAgent.getCurrentThemeId();
}
view.setThemes(themeAgent.getThemes(), currentThemeId);
view.setAskBeforeClosingTab(
Boolean.parseBoolean(preferencesManager.getValue(PREF_IDE_GENERAL_TAB_CLOSING)));
}
示例2: testGo
import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入依赖的package包/类
@Test
public void testGo() throws Exception {
AcceptsOneWidget container = Mockito.mock(AcceptsOneWidget.class);
pagePresenter.go(container);
verify(appContext).getWorkspace();
verify(container).setWidget(eq(pageView));
verify(configuration, atLeastOnce()).getHost();
verify(configuration, atLeastOnce()).getPort();
verify(configuration, atLeastOnce()).getConnectionProperties();
verify(pageView).setHost(eq(HOST));
verify(pageView).setPort(eq(PORT));
verify(pageView).setBinaryPath(nullable(String.class));
verify(pageView).setDevHost(eq(false));
verify(pageView).setPortEnableState(eq(true));
verify(pageView).setHostEnableState(eq(true));
}
示例3: start
import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入依赖的package包/类
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
view = clientFactory.getSeattleView();
dbService = clientFactory.getDbService();
analytics = clientFactory.getAnalytics();
view.setPresenter(this);
localStorage = Storage.getLocalStorageIfSupported();
buildStationList();
getCameras();
timer = new Timer() {
@Override
public void run() {
getFlowData();
timer = null;
}
};
timer.schedule(250);
if (Consts.ANALYTICS_ENABLED) {
analytics.trackView("/Seattle");
}
panel.setWidget(view);
}
示例4: start
import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入依赖的package包/类
@Override
public void start(AcceptsOneWidget panel, final EventBus eventBus) {
view = clientFactory.getCameraView();
this.eventBus = eventBus;
analytics = clientFactory.getAnalytics();
view.setPresenter(this);
Place place = clientFactory.getPlaceController().getWhere();
if (place instanceof CameraPlace) {
CameraPlace cameraPlace = (CameraPlace) place;
cameraId = cameraPlace.getId();
cameraItem = cameraPlace.getCameraItem();
view.showProgressIndicator();
view.renderCameraImage(cameraItem.getUrl());
}
if (Consts.ANALYTICS_ENABLED) {
analytics.trackView("/Camera/" + cameraId);
}
panel.setWidget(view);
}
示例5: start
import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入依赖的package包/类
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
view = clientFactory.getTacomaView();
dbService = clientFactory.getDbService();
analytics = clientFactory.getAnalytics();
view.setPresenter(this);
localStorage = Storage.getLocalStorageIfSupported();
buildStationList();
getCameras();
getFlowData();
if (Consts.ANALYTICS_ENABLED) {
analytics.trackView("/Tacoma");
}
panel.setWidget(view);
}
示例6: testGo
import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入依赖的package包/类
@Test
public void testGo() throws Exception {
AcceptsOneWidget container = Mockito.mock(AcceptsOneWidget.class);
presenter.go(container);
verify(container).setWidget(eq(view));
verify(view).setWorkingDirectory(eq(WORK_DIR));
verify(view).setGwtModule(eq(GWT_MODULE));
verify(view).setCodeServerAddress(eq(CODE_SERVER_ADDRESS));
}
示例7: start
import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入依赖的package包/类
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
ImportPresenter importPresenter = presenterFactory.getImportPresenter();
importPresenter.bind();
switch (importPlace.getType()) {
case CONTENT:
importPresenter.importFolder();
break;
case EDIT_ITEMS:
importPresenter.updateImportedObjects(importPlace.getBatchId());
break;
case EDIT_PARENT:
importPresenter.selectParent(importPlace.getBatchId());
break;
default: // HISTORY
importPresenter.selectBatchFromHistory();
break;
}
panel.setWidget(importPresenter.getUI());
}
示例8: start
import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入依赖的package包/类
@Override
public void start(AcceptsOneWidget containerWidget, EventBus eventBus) {
this.eventBus = eventBus;
ActionsMenuBar view = init(name);
containerWidget.setWidget(view.asWidget());
}
示例9: start
import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入依赖的package包/类
@Override
public void start(AcceptsOneWidget containerWidget, EventBus eventBus) {
this.eventBus = eventBus;
view = clientFactory.getInteractiveDownloadDataView();
view.setName(name);
view.setPresenter(this);
containerWidget.setWidget(view.asWidget());
init();
// Get the grid and generate dependent widgets
AsyncCallback gridCallback = onGotGrid;
Util.getRPCService().getGrid(dsID, varID, gridCallback);
}
示例10: start
import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入依赖的package包/类
@Override
public void start(AcceptsOneWidget containerWidget, EventBus eventBus) {
this.eventBus = eventBus;
OutputControlPanel view = init(name);
containerWidget.setWidget(view.asWidget());
}
示例11: start
import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入依赖的package包/类
@Override
public void start(final AcceptsOneWidget containerWidget, EventBus eventBus) {
if (place.getLectureId() == null || place.getCourseId() == null) {
Places.goHome();
return;
}
LectureView.get().init(place);
LectureView.get().show(containerWidget);
}
示例12: start
import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入依赖的package包/类
@Override
public void start(final AcceptsOneWidget containerWidget, EventBus eventBus) {
if (place.getCourseId() == null) {
Places.goHome();
return;
}
CourseView.get().init(place);
CourseView.get().show(containerWidget);
}
示例13: start
import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入依赖的package包/类
@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
view = clientFactory.getAnalyticsView();
view.setPresenter(this);
panel.setWidget(view.asWidget());
}
示例14: start
import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入依赖的package包/类
@Override
public void start(AcceptsOneWidget acceptsOneWidget, EventBus eventBus) {
setView(App.getClientFactory().getNavView());
super.start(acceptsOneWidget, eventBus);
listenForListChanges();
App.getNoteListService().refreshNoteLists(new AppCallback<ListResponse<NoteList>>() {
@Override
public void handleSuccess(ListResponse<NoteList> result) {
getView().populateLists(result.list);
}
});
}
示例15: pageShouldBeInitialized
import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入依赖的package包/类
@Test
public void pageShouldBeInitialized() throws Exception {
AcceptsOneWidget container = mock(AcceptsOneWidget.class);
presenter.resetFrom(command);
presenter.setFieldStateActionDelegate(fieldStateDelegate);
presenter.go(container);
verify(container).setWidget(view);
verify(view).setMainClass(MAIN_CLASS_PATH);
verify(view).setCommandLine(COMMAND_LINE);
verify(fieldStateDelegate).updatePreviewURLState(false);
}