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


Java AcceptsOneWidget.setWidget方法代码示例

本文整理汇总了Java中com.google.gwt.user.client.ui.AcceptsOneWidget.setWidget方法的典型用法代码示例。如果您正苦于以下问题:Java AcceptsOneWidget.setWidget方法的具体用法?Java AcceptsOneWidget.setWidget怎么用?Java AcceptsOneWidget.setWidget使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.gwt.user.client.ui.AcceptsOneWidget的用法示例。


在下文中一共展示了AcceptsOneWidget.setWidget方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: 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

示例2: go

import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入方法依赖的package包/类
@Override
public void go(AcceptsOneWidget container) {
  container.setWidget(view);

  view.setHost(editedConfiguration.getHost());
  view.setPort(editedConfiguration.getPort());
  view.setBinaryPath(getBinaryPath(editedConfiguration));

  boolean devHost =
      "localhost".equals(editedConfiguration.getHost()) && editedConfiguration.getPort() <= 0;
  view.setDevHost(devHost);
  view.setPortEnableState(!devHost);
  view.setHostEnableState(!devHost);

  List<MachineImpl> machines = getMachines();
  if (!machines.isEmpty()) {
    setHosts(machines);
  }
}
 
开发者ID:eclipse,项目名称:che,代码行数:20,代码来源:GdbConfigurationPagePresenter.java

示例3: 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

示例4: 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

示例5: 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

示例6: 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

示例7: start

import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入方法依赖的package包/类
@Override
public void start(AcceptsOneWidget containerWidget, final EventBus eventBus) {

    registrations.add(filterView.getDemoProjectsFeatureFilter().addValueChangeHandler(
            new AnalyticValueChangeHandler(Utils.constants.featuresFilter(),filterView.getDemoProjectsFeatureFilter())));

    registrations.add(filterView.getDemoProjectsSdkLanguageFilter().addValueChangeHandler(
            new AnalyticValueChangeHandler(Utils.constants.sdkLanguagesFilter(),filterView.getDemoProjectsSdkLanguageFilter())));

    registrations.add(filterView.getDemoProjectsPlatformFilter().addValueChangeHandler(
            new AnalyticValueChangeHandler(Utils.constants.platformsFilter(),filterView.getDemoProjectsPlatformFilter())));

    registrations.add(filterView.getComplexitiesFilter().addValueChangeHandler(
            new AnalyticValueChangeHandler(Utils.constants.complexity(),filterView.getComplexitiesFilter())
    ));


    registrations.add(filterView.addProjectFilterHandler(new ProjectFilterEventHandler() {
        @Override
        public void onProjectFilter(ProjectFilterEvent event) {
            clientFactory.getPlaceController().goTo(new MainPlace());
            eventBus.fireEvent(event);
        }
    }));
    this.filterView.reset();
    Sandbox.getSandboxService().getFilterData(new BusyAsyncCallback<FilterData>() {
        
        @Override
        public void onSuccessImpl(FilterData result) {
            filterView.setFilterData(result);
        }
        
        @Override
        public void onFailureImpl(Throwable caught) {
            String message = Utils.getErrorMessage(caught);
            Analytics.sendException(message);
        }
    });
    containerWidget.setWidget(filterView.asWidget());
}
 
开发者ID:kaaproject,项目名称:sandbox-frame,代码行数:41,代码来源:LeftPanelActivity.java

示例8: go

import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入方法依赖的package包/类
@Override
public void go(final AcceptsOneWidget container) {
  FlowPanel preferencesContainer = view.getEditorPreferencesContainer();
  editorPreferenceSections.forEach(
      section -> {
        SimplePanel sectionPanel = new SimplePanel();
        section.go(sectionPanel);
        preferencesContainer.add(sectionPanel);
      });
  container.setWidget(view);
}
 
开发者ID:eclipse,项目名称:che,代码行数:12,代码来源:EditorPreferencePresenter.java

示例9: go

import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override
public void go(AcceptsOneWidget container) {
  container.setWidget(view);

  view.setName(name);
  view.setEmail(email);
}
 
开发者ID:eclipse,项目名称:che,代码行数:9,代码来源:CommitterPreferencePresenter.java

示例10: go

import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入方法依赖的package包/类
@Override
public void go(AcceptsOneWidget container) {
  container.setWidget(view);

  view.setWorkingDirectory(editedCommandModel.getWorkingDirectory());
  view.setGwtModule(editedCommandModel.getGwtModule());
  view.setCodeServerAddress(editedCommandModel.getCodeServerAddress());
}
 
开发者ID:eclipse,项目名称:che,代码行数:9,代码来源:GwtCommandPagePresenter.java

示例11: start

import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入方法依赖的package包/类
@Override
public void start(AcceptsOneWidget panel, final EventBus eventBus) {
	view = clientFactory.getSettingsView();
	this.eventBus = eventBus;
	analytics = clientFactory.getAnalytics();
	view.setPresenter(this);

       if (Consts.ANALYTICS_ENABLED) {
           analytics.trackView("/Settings");
       }

	panel.setWidget(view);

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

示例12: go

import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入方法依赖的package包/类
@Override
public void go(@NotNull AcceptsOneWidget container) {
  container.setWidget(view);

  if (Strings.isNullOrEmpty(dataObject.getName())
      && Strings.isNullOrEmpty(dataObject.getSource().getLocation())) {
    ignoreChanges = true;

    view.unmarkURL();
    view.unmarkName();
    view.setURLErrorMessage(null);
  }

  view.setProjectName(dataObject.getName());
  view.setProjectDescription(dataObject.getDescription());
  view.setProjectUrl(dataObject.getSource().getLocation());

  view.setKeepDirectoryChecked(false);
  view.setBranchChecked(false);
  view.setDirectoryName("");
  view.setBranchName("");
  view.enableDirectoryNameField(false);
  view.enableBranchNameField(false);
  view.highlightDirectoryNameField(false);

  view.setInputsEnableState(true);
  view.focusInUrlInput();

  ignoreChanges = false;
}
 
开发者ID:eclipse,项目名称:che,代码行数:31,代码来源:GitImporterPagePresenter.java

示例13: go

import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入方法依赖的package包/类
@Override
public void go(AcceptsOneWidget container) {
  container.setWidget(view);

  final String host = editedConfiguration.getHost();

  view.setHost(host);
  view.setPort(editedConfiguration.getPort());
  view.setDevHost("localhost".equals(host));

  setPortsList();
}
 
开发者ID:eclipse,项目名称:che,代码行数:13,代码来源:JavaDebugConfigurationPagePresenter.java

示例14: go

import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入方法依赖的package包/类
@Override
public void go(AcceptsOneWidget container) {
  container.setWidget(view);
  view.setDelegate(new SchemaUrlChangedDelegate(dataObject));
}
 
开发者ID:eclipse,项目名称:che-archetypes,代码行数:6,代码来源:SchemaUrlWizardPage.java

示例15: go

import com.google.gwt.user.client.ui.AcceptsOneWidget; //导入方法依赖的package包/类
@Override
public void go(AcceptsOneWidget container) {
  container.setWidget(view);
  view.setCompilerVersion(DEFAULT_CCC_COMPILER_VERSION);
  setAttribute(COMPILER_VERSION_ATRIBUTE, DEFAULT_CCC_COMPILER_VERSION);
}
 
开发者ID:eclipse,项目名称:che-archetypes,代码行数:7,代码来源:SamplePagePresenter.java


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