本文整理汇总了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());
}
示例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);
}
}
示例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());
}
示例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);
}
示例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());
}
示例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());
}
示例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());
}
示例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);
}
示例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);
}
示例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());
}
示例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);
}
示例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;
}
示例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();
}
示例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));
}
示例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);
}