Examples of FormEvent


Examples of com.extjs.gxt.ui.client.event.FormEvent

  /**
   * Submits the form.
   */
  public void submit() {
    if (fireEvent(Events.BeforeSubmit, new FormEvent(this))) {
      impl.submit(form.dom, iframe);
    }
  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.event.FormEvent

      return false;
    }
  }

  private boolean onFormSubmitImpl() {
    return fireEvent(Events.BeforeSubmit, new FormEvent(this));
  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.event.FormEvent

  }

  private void onFrameLoadImpl() {
    DeferredCommand.addCommand(new Command() {
      public void execute() {
        fireEvent(Events.Submit, new FormEvent(FormPanel.this, impl.getContents(iframe)));
      }
    });
  }
View Full Code Here

Examples of javax.faces.event.FormEvent

    protected String processPath(HttpServletRequest request,
                                 HttpServletResponse response)
        throws IOException {

        // Handle non-Faces requests in the usual way
        FormEvent event = (FormEvent)
            request.getAttribute(Constants.FORM_EVENT_KEY);
        if (event == null) {
            return (super.processPath(request, response));
        }

        // Calculate the path from the form name
        return (event.getFormName());

    }
View Full Code Here

Examples of javax.faces.event.FormEvent

                                   ActionForm form,
                                   ActionMapping mapping)
        throws ServletException {

        // Are we processing a Faces request?
        FormEvent event = (FormEvent)
            request.getAttribute(Constants.FORM_EVENT_KEY);

        // Handle non-Faces requests in the usual way
        if (event == null) {
            super.processPopulate(request, response, form, mapping);
            return;
        }

        // Faces requests require no processing for form bean population
        // so we need only check for the cancellation command name
        if ("cancel".equals(event.getCommandName())) {
            request.setAttribute(Globals.CANCEL_KEY, Boolean.TRUE);
        }

    }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.FormEvent

        this.flc.setDirty(true);
      } else if (event instanceof FormEvent) {
        /*
         * evaluate inner form events
         */
        FormEvent fe = (FormEvent) event;
        FormItem fiSrc = fe.getFormItemSource();
        //
        formInnerEvent(ureq, fiSrc, fe);
        // no need to set container dirty, up to controller code if something is dirty
      }
    }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.FormEvent

  }

  @Override
  protected void event(UserRequest ureq, Controller source, Event event) {
    if (event instanceof FormEvent) {
      FormEvent fe = (FormEvent) event;
      FormItem sourceItem = fe.getFormItemSource();
      String compName = sourceItem.getName();
      if (columnAddRow.contains(compName)) {
        // add link clicked
        int clickPos = ((Integer) sourceItem.getUserObject()).intValue();
        addRowAt(clickPos + 1);
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.FormEvent

    this.component.setEnabled(isEnabled());
  }
 
  @Override
  public void dispatchFormRequest(UserRequest ureq) {
    getRootForm().fireFormEvent(ureq, new FormEvent(Event.DONE_EVENT, this, FormEvent.ONCLICK));
  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.FormEvent

    fireEvent(ureq, NodeEditController.NODECONFIG_CHANGED_EVENT);
  }

  protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
    if (event instanceof FormEvent) {
      FormEvent fe = (FormEvent) event;
      FormItem sourceItem = fe.getFormItemSource();
      if (source instanceof FormLink) {
        FormLink link = (FormLink)source;
        if (link.getName().equals(ADD_FIELD_LINK)) {
          if (customFields.size() < MAX_NBR_CUSTOM_FIELDS) {
            // Add new custom-field
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.FormEvent

      protected void event(UserRequest ureq, Component source, Event event) {
        if (source == cancelLink) {
          getRootForm()
              .fireFormEvent(
                  ureq,
                  new FormEvent(
                      org.olat.core.gui.components.form.Form.EVNT_FORM_CANCELLED,
                      self, -1));
        }
      }
    };
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.