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


Java SubmitEvent类代码示例

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


SubmitEvent类属于com.google.gwt.user.client.ui.FormPanel包,在下文中一共展示了SubmitEvent类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onSearchSubmit

import com.google.gwt.user.client.ui.FormPanel.SubmitEvent; //导入依赖的package包/类
@UiHandler("frmSearch")
void onSearchSubmit (SubmitEvent event) {
	if (isValid()) {
		PageTypeHelper.show(PageType.SearchPostsPageType,
				txtQuery.getValue());
		txtQuery.setValue("");
	} else {
		showErrors();
	}

	event.cancel();
}
 
开发者ID:billy1380,项目名称:blogwt,代码行数:13,代码来源:SearchPart.java

示例2: SearchBoxViewGwtImpl

import com.google.gwt.user.client.ui.FormPanel.SubmitEvent; //导入依赖的package包/类
public SearchBoxViewGwtImpl() {

		FormPanel formPanel = new FormPanel("");
		formPanel.addSubmitHandler(new SubmitHandler() {

			@Override
			public void onSubmit(SubmitEvent event) {
				event.cancel();

			}
		});
		MSearchBox searchBox = new MSearchBox();
		formPanel.setWidget(searchBox);
		scrollPanel.setWidget(formPanel);
	}
 
开发者ID:qafedev,项目名称:qafe-platform,代码行数:16,代码来源:SearchBoxViewGwtImpl.java

示例3: onSubmit

import com.google.gwt.user.client.ui.FormPanel.SubmitEvent; //导入依赖的package包/类
/**
 * @see com.google.gwt.user.client.ui.FormPanel.SubmitHandler#onSubmit(com.google.gwt.user.client.ui.FormPanel.SubmitEvent)
 */
@Override
public void onSubmit(SubmitEvent event) {
    dialog.hide(false);
    notification = notificationService.startProgressNotification(
            i18n.format("add-deployment-submit.adding-deployment"), //$NON-NLS-1$
            i18n.format("add-deployment-submit.adding-deployment-msg")); //$NON-NLS-1$
}
 
开发者ID:Governance,项目名称:dtgov,代码行数:11,代码来源:AddDeploymentFormSubmitHandler.java

示例4: onFormSubmit

import com.google.gwt.user.client.ui.FormPanel.SubmitEvent; //导入依赖的package包/类
@UiHandler("frmForm")
void onFormSubmit (SubmitEvent se) {
	if (isValid()) {
		loading();

		Form form = new Form();
		form.name = name;

		// add fields to form
		final int count = pnlFields.getWidgetCount();
		Widget current;
		Field field;

		for (int i = 0; i < count; i++) {
			current = pnlFields.getWidget(i);
			field = null;

			if (current instanceof FormField) {
				field = new Field().name(((FormField) current).name())
						.value(((FormField) current).value());
				if (form.fields == null) {
					form.fields = new ArrayList<Field>();
				}

				form.fields.add(field);

				if (current instanceof TextBoxPart) {
					field.type(FieldTypeType.FieldTypeTypeText);
				} else if (current instanceof TextAreaPart) {
					field.type(FieldTypeType.FieldTypeTypeLongText);
				} else if (current instanceof ListBoxPart) {
					field.type(FieldTypeType.FieldTypeTypeSingleOption);
				} else if (current instanceof ReCaptchaPart) {
					field.type(FieldTypeType.FieldTypeTypeCaptcha);
				}
			}
		}

		FormController.get().submitForm(form);
	}

	se.cancel();
}
 
开发者ID:billy1380,项目名称:blogwt,代码行数:44,代码来源:FormPart.java

示例5: onFileFormSubmitComplete

import com.google.gwt.user.client.ui.FormPanel.SubmitEvent; //导入依赖的package包/类
@UiHandler("answerForm")
public void onFileFormSubmitComplete(SubmitEvent event)
{
	this.fireEvent(new FormSubmitEvent(this));
}
 
开发者ID:jkonert,项目名称:socom,代码行数:6,代码来源:InfluenceAnswerFreeAudioView.java

示例6: onFileFormSubmitComplete

import com.google.gwt.user.client.ui.FormPanel.SubmitEvent; //导入依赖的package包/类
@UiHandler("answerForm")
public void onFileFormSubmitComplete(SubmitEvent event) {
	this.fireEvent(new FormSubmitEvent(this));
}
 
开发者ID:jkonert,项目名称:socom,代码行数:5,代码来源:InfluenceAnswerFreeImageView.java


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