Examples of Form


Examples of org.molgenis.ui.Form

{
  @Test
  public void test1() throws RenderException
  {
    // compose
    Form f = new Form()
    .add(new StringInput("name"))
    .add(new Button("helloWorld").setLabel("Say hello").setIcon(Icon.SEARCH));

    // render
    BaseTheme r = new BootstrapTheme();
View Full Code Here

Examples of org.objectweb.speedo.pobjects.inheritance.filterOutOfPK.single.Form

      forms.add(purchaseForm2);
   
      Iterator it = forms.iterator();
      nbToRetrieve = 0;
      while (it.hasNext()) {
        Form f = (Form) it.next();
        if (f.getContactDetails().getPhoneNumber().equals(phone))
          nbToRetrieve++;
      }
      //  make persistent all the forms
      pm.currentTransaction().begin();
      pm.makePersistentAll(forms);
View Full Code Here

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

        sb.append("accesskey=\"").append(accessKey).append("\" ");
      }
      if (flexiformlink) {
        //no target if flexi form link! because target is set on
        //post action of form
        Form theForm = (Form)link.getInternalAttachedObject();
        sb.append("href=\"javascript:");
        sb.append(FormJSHelper.getJSFnCallFor(theForm, elementId, 1));
        sb.append("\" ");
      } else {
        sb.append("href=\"");
View Full Code Here

Examples of org.openmrs.Form

   
    for(Encounter enc: encounters)
    {
      if(enc.getForm() != null)
      {
        Form encForm = enc.getForm();
        HtmlForm htmlForm = HtmlFormEntryUtil.getService().getHtmlFormByForm(encForm);
        if(htmlForm != null && htmlForm.getId().equals(formId) && dateToCheck.compareTo(enc.getEncounterDatetime()) == 0)
        {
          duplicate = true;
        }
View Full Code Here

Examples of org.openntf.domino.Form

   *
   * @see org.openntf.domino.ext.Document#getForm()
   */
  @Override
  public Form getForm() {
    Form result = null;
    if (!getFormName().isEmpty()) {
      result = getParentDatabase().getForm(getFormName());
    }
    return result;
  }
View Full Code Here

Examples of org.openqa.jetty.html.Form

        page.attribute("vlink","#606CC0");
        page.attribute("alink","#606CC0");

        page.add(new Block(Block.Bold).add(new Font(3,true).add(getServletInfo())));
        page.add(Break.rule);
        Form form=new Form(request.getContextPath()+
                           request.getServletPath()+
                           "?A=exit");
        form.method("GET");
        form.add(new Input(Input.Submit,"A","Exit All Servers"));
        page.add(form);
        page.add(Break.rule);
        page.add(new Heading(3,"Components:"));

        List sList=new List(List.Ordered);
View Full Code Here

Examples of org.openswing.swing.form.client.Form

          c = c.getParent();
        }
        if (c != null) {
          functionCode = ( (Form) c).getFunctionId();
        }
        final Form form = (Form)c;

        // set domain in combo box...
        ClientApplet applet = ( (ApplicationClientFacade) MDIFrame.getInstance().getClientFacade()).getMainClass();
        ButtonCompanyAuthorizations bca = applet.getAuthorizations().getCompanyBa();
        final ArrayList companiesList = bca.getCompaniesList(functionCode);
        Domain domain = new Domain("DOMAIN_" + functionCode);
        for (int i = 0; i < companiesList.size(); i++) {
          if (applet.getAuthorizations().getCompanyBa().isInsertEnabled(
              functionCode,companiesList.get(i).toString()
          ))
            domain.addDomainPair(companiesList.get(i),companiesList.get(i).toString());
        }
        super.setDomain(domain);

        if (applet.getAuthorizations().isOneCompany()) {
          new Thread() {
            public void run() {
              yield();

              CompaniesComboControl.this.getParent().remove(CompaniesComboControl.this);
              if (getLinkLabel() != null) {
                getLinkLabel().getParent().remove(getLinkLabel());
              }

              if (form!=null) {
                try {
                  if (form.getVOModel().getValueObject() == null) {
                    form.getVOModel().setValueObject((ValueObject)form.getVOModel().getValueObjectType().newInstance());
                  }
                }
                catch (Throwable ex1) {
                  ex1.printStackTrace();
                }
                if (companiesList.size()>0)
                  form.getVOModel().setValue(getAttributeName(),companiesList.get(0));
                try {
                  form.unbind(CompaniesComboControl.this);
                }
                catch (Exception ex) {
                  ex.printStackTrace();
                }
              }
View Full Code Here

Examples of org.pdfclown.documents.interaction.forms.Form

    {throw new RuntimeException(filePath + " file access error.",e);}

    Document document = file.getDocument();

    // 2. Get the acroform!
    Form form = document.getForm();
    if(form == null)
    {System.out.println("\nNo acroform available (AcroForm dictionary not found).");}
    else
    {
      System.out.println("\nIterating through the fields collection...\n");
 
      // 3. Showing the acroform fields...
      HashMap<String,Integer> objCounters = new HashMap<String,Integer>();
      for(Field field : form.getFields().values())
      {
        System.out.println("* Field '" + field.getFullName() + "' (" + field.getBaseObject() + ")");
 
        String typeName = field.getClass().getSimpleName();
        System.out.println("    Type: " + typeName);
        System.out.println("    Value: " + field.getValue());
        System.out.println("    Data: " + field.getBaseDataObject().toString());

        int widgetIndex = 0;
        for(Widget widget : field.getWidgets())
        {
          System.out.println("    Widget " + (++widgetIndex) + ":");
          Page widgetPage = widget.getPage();
          System.out.println("      Page: " + (widgetPage == null ? "undefined" : (widgetPage.getIndex() + 1) + " (" + widgetPage.getBaseObject() + ")"));
   
          Rectangle2D widgetBox = widget.getBox();
          System.out.println("      Coordinates: {x:" + Math.round(widgetBox.getX()) + "; y:" + Math.round(widgetBox.getY()) + "; width:" + Math.round(widgetBox.getWidth()) + "; height:" + Math.round(widgetBox.getHeight()) + "}");
        }

        objCounters.put(typeName, (objCounters.containsKey(typeName) ? objCounters.get(typeName) : 0) + 1);
      }
 
      int fieldCount = form.getFields().size();
      if(fieldCount == 0)
      {System.out.println("No field available.");}
      else
      {
        System.out.println("\nFields partial counts (grouped by type):");
View Full Code Here

Examples of org.restlet.client.data.Form

     *            The matrix parameter name.
     * @return The first value of the matrix parameter.
     */
    public String getMatrixValue(String name) {
        String result = null;
        Form matrix = getMatrix();

        if (matrix != null) {
            result = matrix.getFirstValue(name);
        }

        return result;
    }
View Full Code Here

Examples of org.restlet.data.Form

        response.setStatus(Status.CLIENT_ERROR_METHOD_NOT_ALLOWED);
      }
    }

    private void handlePost(Request request, Response response) {
      Form params = new Form(request.getEntity());
      String key = params.getFirstValue(SHUTDOWN_KEY_PARAM);
      if (key != null && key.equals(getShutdownKey())) {
        response.setStatus(SUCCESS_ACCEPTED);
        logger.info("Server shutting down");
        scheduleShutdown();
      }
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.