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


Java AcceptsOneWidget类代码示例

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

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

示例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);

}
 
开发者ID:waynedyck,项目名称:mgwt-traffic-flow,代码行数:31,代码来源:SeattleActivity.java

示例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);

}
 
开发者ID:waynedyck,项目名称:mgwt-traffic-flow,代码行数:26,代码来源:CameraActivity.java

示例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);

}
 
开发者ID:waynedyck,项目名称:mgwt-traffic-flow,代码行数:21,代码来源:TacomaActivity.java

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

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

示例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());
}
 
开发者ID:NOAA-PMEL,项目名称:LAS,代码行数:8,代码来源:ActionsMenuBarActivity.java

示例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);
}
 
开发者ID:NOAA-PMEL,项目名称:LAS,代码行数:14,代码来源:InteractiveDownloadDataViewActivity.java

示例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());
}
 
开发者ID:NOAA-PMEL,项目名称:LAS,代码行数:8,代码来源:OutputControlPanelActivity.java

示例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);
	
}
 
开发者ID:vsite-hr,项目名称:mentor,代码行数:13,代码来源:LectureActivity.java

示例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);
	
}
 
开发者ID:vsite-hr,项目名称:mentor,代码行数:13,代码来源:CourseActivity.java

示例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());

}
 
开发者ID:WSDOT,项目名称:social-analytics,代码行数:8,代码来源:AnalyticsActivity.java

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

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


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