Package org.springframework.richclient.form.builder

Examples of org.springframework.richclient.form.builder.TableFormBuilder


    }

    @Override
    protected JComponent createFormControl() {
            JPanel panel = new JPanel(new FormLayout("fill:default:grow","default, 4dlu, default, 4dlu, 30dlu:grow"));
            TableFormBuilder builder = new TableFormBuilder(getBindingFactory());
            builder.add("regExp");
            builder.row();
            builder.add("convertToUppercase");
            CellConstraints cc = new CellConstraints();
            panel.add(builder.getForm(), cc.xy(1,1));
            panel.add(createBuildBindingCommand().createButton(), cc.xy(1,3));
            panel.add(childPanel, cc.xy(1,5));
            return panel;
    }
View Full Code Here


                this.pattern = pattern;
                this.upperCaseOnly = upperCaseOnly;
            }

            protected JComponent createFormControl() {
                TableFormBuilder builder = new TableFormBuilder(getBindingFactory());
                TextComponentBinder binder = new TextComponentBinder();
                binder.setDocumentFactory(new RegExDocumentFactory(pattern, upperCaseOnly));
                builder.add(binder.bind(getFormModel(), "value", Collections.emptyMap()), "rowSpec=fill:default:grow");
                return builder.getForm();
            }
View Full Code Here

      super(FormModelHelper.createFormModel(new ChildPOJO(), "child"), "child");
    }

    @Override
    protected JComponent createFormControl() {
      TableFormBuilder builder = new TableFormBuilder(getBindingFactory());
      builder.add("childName");
      builder.row();
      builder.add("childDescription");
      return builder.getForm();
    }
View Full Code Here

        // Now put the two forms into a split pane
        JSplitPane splitter = new JSplitPane( JSplitPane.VERTICAL_SPLIT );
        configureSplitter(splitter, panel, getDetailForm().getControl());

        final SwingBindingFactory sbf = (SwingBindingFactory) getBindingFactory();
        TableFormBuilder formBuilder = new TableFormBuilder( sbf );
        formBuilder.getLayoutBuilder().cell( splitter, "align=default,default rowSpec=fill:default:g" );

        updateControlsForState();

        return formBuilder.getForm();
    }
View Full Code Here

        super(formModel, ID);
    }
 
  protected JComponent createFormControl(){

        TableFormBuilder formBuilder = new TableFormBuilder(getBindingFactory());
        textArea = formBuilder.add("queryString")[0];
        return formBuilder.getForm();
  }
View Full Code Here

    public OwnerGeneralForm(FormModel formModel) {
        super(formModel, GENERAL_FORM_PAGE);
    }

    protected JComponent createFormControl() {
        TableFormBuilder formBuilder = new TableFormBuilder(getBindingFactory());
        this.firstNameField = formBuilder.add("firstName")[1];
        formBuilder.row();
        formBuilder.add("lastName");
        return formBuilder.getForm();
    }
View Full Code Here

        super(formModel, PET_FORM_PAGE);
        getFormModel().getFieldMetadata("type").setReadOnly(!canEditType);
    }

    protected JComponent createFormControl() {
        TableFormBuilder formBuilder = new TableFormBuilder(getBindingFactory());
        formBuilder.add("type");
        formBuilder.row();
        this.nameField = formBuilder.add("name")[1];
        formBuilder.row();
        formBuilder.add("birthDate");
        return formBuilder.getForm();
    }
View Full Code Here

    public OwnerAddressForm(FormModel formModel) {
        super(formModel, ADDRESS_FORM_PAGE);
    }

    protected JComponent createFormControl() {
        TableFormBuilder formBuilder = new TableFormBuilder(getBindingFactory());
        this.address = formBuilder.add("address")[1];
        formBuilder.row();
        formBuilder.add("city");       
        return formBuilder.getForm();
    }
View Full Code Here

        super(formModel, ID);
  }
 
  protected JComponent createFormControl(){

        TableFormBuilder formBuilder = new TableFormBuilder(getBindingFactory());
        textArea = formBuilder.add("googleKeyTextInput")[1];
        return formBuilder.getForm();
  }
View Full Code Here

  }

  @Override
  @NotNull
  public final JComponent createFormControl() {
    TableFormBuilder builder = createFormBuilder();
    configureForm( builder );
    return builder.getForm();
  }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.form.builder.TableFormBuilder

Copyright © 2018 www.massapicom. 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.