本文整理汇总了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();
}
示例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);
}
示例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$
}
示例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();
}
示例5: onFileFormSubmitComplete
import com.google.gwt.user.client.ui.FormPanel.SubmitEvent; //导入依赖的package包/类
@UiHandler("answerForm")
public void onFileFormSubmitComplete(SubmitEvent event)
{
this.fireEvent(new FormSubmitEvent(this));
}
示例6: onFileFormSubmitComplete
import com.google.gwt.user.client.ui.FormPanel.SubmitEvent; //导入依赖的package包/类
@UiHandler("answerForm")
public void onFileFormSubmitComplete(SubmitEvent event) {
this.fireEvent(new FormSubmitEvent(this));
}