Package com.jgoodies.forms.builder

Examples of com.jgoodies.forms.builder.PanelBuilder


   * @return panel
   */
  private JPanel buildArticlePanel() {

    FormLayout layout = new FormLayout("170dlu,3dlu,p", "120dlu:grow");
    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    CellConstraints cc = new CellConstraints();
    builder.add(new JScrollPane(treeTableArticles), cc.xy(1, 1));
    builder.add(buildArticleButtons(), cc.xy(3, 1));
    collapsiblePaneArticle.add(builder.getPanel(), BorderLayout.CENTER);
    return collapsiblePaneArticle;
  }
View Full Code Here


   */
  @Override
  protected JComponent buildEditPanel(WindowInterface window) {
    FormLayout layout = new FormLayout("10dlu,p,3dlu,100dlu,10dlu",
        "10dlu,p,3dlu,p,3dlu,p,5dlu");
    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Navn:", cc.xy(2, 2));
    builder.add(textFieldName, cc.xy(4, 2));
    builder.addLabel("Verdi:", cc.xy(2, 4));
    builder.add(textFieldValue, cc.xy(4, 4));
    builder.add(ButtonBarFactory.buildCenteredBar(buttonCancel),
        cc.xyw(2, 6, 3));

    return new IconFeedbackPanel(validationResultModel, builder.getPanel());
  }
View Full Code Here

        window.setName("ArticleTypeView");
        initComponents(window);

        FormLayout layout = new FormLayout("10dlu,120dlu,3dlu,p,10dlu",
                "10dlu,p,3dlu,100dlu,5dlu,p,3dlu");
        PanelBuilder builder = new PanelBuilder(layout);
        CellConstraints cc = new CellConstraints();
        builder.addLabel("Artikler", cc.xy(2, 2));
        builder.add(new JScrollPane(listArticles), cc.xy(2, 4));
        if (addButton) {
            builder.add(buttonAddArticle, cc.xy(4, 4));
        }
        builder.add(ButtonBarFactory.buildCenteredBar(buttonOk, buttonCancel),
                cc.xyw(2, 6, 3));
        return builder.getPanel();
    }
View Full Code Here

  }

  private JPanel buildDetailPanel() {
    FormLayout layout = new FormLayout("p,3dlu,70dlu,3dlu,p,3dlu,60dlu",
        "p,3dlu,p");
    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Registert av:", cc.xy(1, 1));
    builder.add(textFieldRegisteredBy, cc.xy(3, 1));
    builder.addLabel("Dato:", cc.xy(5, 1));
    builder.add(dateChooserRegistrationDate, cc.xy(7, 1));
    builder.addLabel("Avdeling for hendelse/ulykke:", cc.xyw(1, 3, 3));
    builder.add(comboBoxJobFunction, cc.xyw(5, 3, 3));

    return builder.getPanel();
  }
View Full Code Here

  }

  private JPanel buildDateTimePanel() {
    FormLayout layout = new FormLayout(
        "60dlu,3dlu,p,3dlu,40dlu,10dlu,3dlu,p,3dlu,p", "p,3dlu,p");
    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Dato/klokkeslett for hendelse/ulykke:",
        cc.xyw(1, 1, 6));
    builder.addLabel("Ferdig dato", cc.xy(8, 1));
    builder.addLabel("Status", cc.xy(10, 1));
    builder.add(dateChooserAccidentDate, cc.xy(1, 3));
    builder.addLabel("/", cc.xy(3, 3));

    builder.add(textFieldTime, cc.xy(5, 3));
    builder.add(dateChooserDoneDate, cc.xy(8, 3));
    builder.add(comboBoxStatus, cc.xy(10, 3));

    return builder.getPanel();
  }
View Full Code Here

  }

  private JPanel buildCheckBoxPanel() {
    FormLayout layout = new FormLayout("p,3dlu,fill:70dlu",
        "p,3dlu,p,3dlu,p");
    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    CellConstraints cc = new CellConstraints();

    builder.add(checkBoxLeader, cc.xyw(1, 1, 3));
    builder.add(checkBoxPolice, cc.xy(1, 3));
    builder.add(checkBoxSocialSecurity, cc.xy(1, 5));

    if (!search) {
      builder.add(labelLink, cc.xy(3, 5));
    }

    return builder.getPanel();
  }
View Full Code Here

    }

    public final JPanel buildPanel(final WindowInterface window) {
        initComponents(window);
        FormLayout layout = new FormLayout("10dlu,350dlu:grow,1dlu", "10dlu,200dlu:grow,3dlu,p");
        PanelBuilder builder = new PanelBuilder(layout);
        CellConstraints cc = new CellConstraints();

        builder.add(new JScrollPane(tableOrderLines), cc.xy(2, 2));
        builder.add(ButtonBarFactory.buildCenteredBar(buttonCancel), cc
                .xy(2, 4));

        return builder.getPanel();
    }
View Full Code Here

    return builder.getPanel();
  }

  private JPanel buildResponsiblePanel() {
    FormLayout layout = new FormLayout("p,3dlu,p", "p");
    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Saksbehandler:", cc.xy(1, 1));
    builder.add(comboBoxResponsible, cc.xy(3, 1));

    return builder.getPanel();
  }
View Full Code Here

  protected final JComponent buildEditPanel(final WindowInterface window) {
    FormLayout layout = new FormLayout(
        "10dlu,300dlu:grow,10dlu",
        "10dlu,p,3dlu,p,3dlu,fill:p:grow,3dlu,p,3dlu,p,3dlu,fill:50dlu:grow,3dlu,p,3dlu,fill:50dlu:grow,3dlu,p,3dlu,fill:50dlu:grow,3dlu,p,3dlu,p,5dlu,"
            + "p");
    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    CellConstraints cc = new CellConstraints();

    builder.add(buildDetailPanel(), cc.xy(2, 2));

    // builder.add(radioButtonPersonalInjury, cc.xy(2, 4));
    // builder.add(radioButtonNotPersonalInjury, cc.xy(2, 6));
    builder.add(buildAccidentTypePanel(), cc.xy(2, 4));
    if (!search) {
      builder.add(buildParticipantsPanel(), cc.xy(2, 6));
    }

    builder.add(buildDateTimePanel(), cc.xy(2, 8));
    builder.addLabel("Beskrivelse av hendelse/ulykke:", cc.xy(2, 10));
    builder.add(new JScrollPane(textAreaDescription), cc.xy(2, 12));
    builder.addLabel("�rsak til hendelse/ulykke:", cc.xy(2, 14));
    builder.add(new JScrollPane(textAreaCause), cc.xy(2, 16));

    builder.addLabel("Beskrivelse av tiltak:", cc.xy(2, 18));
    builder.add(new JScrollPane(textAreaPreventiveActionComment),
        cc.xy(2, 20));

    builder.add(buildResponsiblePanel(), cc.xy(2, 22));

    builder.add(buildCheckBoxPanel(), cc.xy(2, 24));

    if (search) {
      builder.add(
          ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
          cc.xy(2, 26));
    } else {
      builder.add(ButtonBarFactory.buildCenteredBar(buttonPrint,
          buttonSave, buttonCancel), cc.xy(2, 26));
    }

    return new IconFeedbackPanel(validationResultModel, builder.getPanel());
  }
View Full Code Here

  }

  private JPanel buildAccidentTypePanel() {
    FormLayout layout = new FormLayout("p,40dlu,p,3dlu,30dlu", "p,3dlu,p");

    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    CellConstraints cc = new CellConstraints();

    builder.add(radioButtonPersonalInjury, cc.xy(1, 1));
    builder.addLabel("Antall frav�rsdager:", cc.xy(3, 1));
    builder.add(textFieldAbsentDays, cc.xy(5, 1));
    builder.add(radioButtonNotPersonalInjury, cc.xy(1, 3));

    return builder.getPanel();
  }
View Full Code Here

TOP

Related Classes of com.jgoodies.forms.builder.PanelBuilder

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.