Examples of FieldSet


Examples of org.apache.click.control.FieldSet

    public TabbedCayenneFormPage() {
        ((TabbedCayenneForm)form).setBackgroundColor("#eee");
        ((TabbedCayenneForm)form).setTabHeight("155px");
        ((TabbedCayenneForm)form).setTabWidth("305px");

        FieldSet clientFieldSet = new FieldSet("Client");
        ((TabbedCayenneForm)form).addTabSheet(clientFieldSet);

        QuerySelect querySelect = new QuerySelect("title", true);
        querySelect.setQueryValueLabel("titles", "value", "label");
        clientFieldSet.add(querySelect);

        clientFieldSet.add(new TextField("firstName"));
        clientFieldSet.add(new TextField("lastName"));
        clientFieldSet.add(new DateField("dateJoined"));
        clientFieldSet.add(new EmailField("email"));

        FieldSet addressFieldSet = new FieldSet("Address");
        ((TabbedCayenneForm)form).addTabSheet(addressFieldSet);

        addressFieldSet.add(new TextField("address.line1", "Line One"));
        addressFieldSet.add(new TextField("address.line2", "Line Two"));
        addressFieldSet.add(new TextField("address.suburb", "Suburb"));

        querySelect = new QuerySelect("address.state", "State", true);
        querySelect.setQueryValueLabel("states", "value", "label");
        addressFieldSet.add(querySelect);

        IntegerField postCodeField = new IntegerField("address.postCode", "Post Code");
        postCodeField.setMaxLength(5);
        postCodeField.setSize(5);
        addressFieldSet.add(postCodeField);

        // Table
        table.addColumn(new Column("id"));
        table.addColumn(new Column("name"));
View Full Code Here

Examples of org.apache.click.control.FieldSet

     * @param fieldName the name of the form field
     * @return the tab sheet number for the given field (indexed from 1)
     */
    public int getTabSheetNumber(String fieldName) {
        for (int i = 0; i < getTabSheets().size(); i++) {
            FieldSet fieldSet = (FieldSet) getTabSheets().get(i);
            if (fieldSet.getFields().containsKey(fieldName)) {
                return i + 1;
            }
        }
        return 1;
    }
View Full Code Here

Examples of org.apache.click.control.FieldSet

     * @param fieldName the name of the form field
     * @return the tab sheet number for the given field (indexed from 1)
     */
    public int getTabSheetNumber(String fieldName) {
        for (int i = 0; i < getTabSheets().size(); i++) {
            FieldSet fieldSet = (FieldSet) getTabSheets().get(i);
            if (fieldSet.getFields().containsKey(fieldName)) {
                return i + 1;
            }
        }
        return 1;
    }
View Full Code Here

Examples of org.apache.click.control.FieldSet

     * @param fieldName the name of the form field
     * @return the tab sheet number for the given field (indexed from 1)
     */
    public int getTabSheetNumber(String fieldName) {
        for (int i = 0; i < getTabSheets().size(); i++) {
            FieldSet fieldSet = (FieldSet) getTabSheets().get(i);
            if (fieldSet.getFields().containsKey(fieldName)) {
                return i + 1;
            }
        }
        return 1;
    }
View Full Code Here

Examples of org.apache.flink.api.common.operators.util.FieldSet

   *
   * @param sourceField the position in the source record(s) from the first input
   * @param destinationField the position in the destination record(s)
   */
  public void addForwardedField1(int sourceField, int destinationField) {
    FieldSet old = this.forwardedFields1.get(sourceField);
    if (old == null) {
      old = FieldSet.EMPTY_SET;
    }
   
    FieldSet fs = old.addField(destinationField);
    this.forwardedFields1.put(sourceField, fs);
  }
View Full Code Here

Examples of org.gwtoolbox.widget.client.panel.fieldset.FieldSet

        VerticalPanel main = new VerticalPanel();
        main.setWidth("100px");
        addGap(main, "20px");

        FieldSet fieldSet = new FieldSet("Simple FieldSet", new Label("The content"));
        fieldSet.setWidth("100%");
        main.add(fieldSet);
        addGap(main, "20px");

        fieldSet = new FieldSet("Collapsable FieldSet", true, new Label("The content"));
        fieldSet.setWidth("100%");
        main.add(fieldSet);
        addGap(main, "20px");

        fieldSet = new FieldSet("Checkable FieldSet", true, new Label("The content"));
        fieldSet.setWidth("100%");
        fieldSet.setCollapser(new CheckboxCollapser());
        main.add(fieldSet);
        addGap(main, "20px");

        SimplePanel sp = new SimplePanel();
        sp.setWidget(main);
View Full Code Here

Examples of org.gwtoolbox.widget.client.panel.fieldset.FieldSet

            }
            panel.add(fieldRow);
            first = false;
        }
        String groupName = group.getName();
        return groupName == null ? panel : new FieldSet(groupName, panel);
    }
View Full Code Here

Examples of org.gwtoolbox.widget.client.panel.fieldset.FieldSet

        Grid grid = new Grid(3, group.getKeys().size());
        int row = 0;
        for (String key : group.getKeys()) {
            addFieldRow(fields.getField(key), grid, row++);
        }
        return new FieldSet(group.getName(), group.isOptional(), grid);
    }
View Full Code Here

Examples of org.springframework.batch.item.file.transform.FieldSet

  }
 
  @Test
  public void testCustomerAdd() throws Exception{
    String customerAddLine = "AFDASFDASFDFSA";
    FieldSet fs = compositeTokenizer.tokenize(customerAddLine);
    assertEquals(customerFieldSet, fs);
    assertEquals(customerAddLine, customerTokenizer.getTokenizedLine());
  }
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.