Java 类com.google.gwt.user.client.ui.FormPanel.SubmitHandler 实例源码

项目:qafe-platform    文件:SearchBoxViewGwtImpl.java   
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);
    }