Package com.jgoodies.forms.builder

Examples of com.jgoodies.forms.builder.PanelBuilder


   * @return panel
   */
  private JPanel buildDetailsPanel() {
    FormLayout layout = new FormLayout("p,3dlu,p",
        "p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,p");
    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Prosjektnr:", cc.xy(1, 1));
    builder.add(textFieldProjectNr, cc.xy(3, 1));
    builder.addLabel("Prosjektnavn:", cc.xy(1, 3));
    builder.add(textFieldName, cc.xy(3, 3));
    builder.addLabel("Prosjektleder:", cc.xy(1, 5));
    builder.add(textFieldManager, cc.xy(3, 5));
    builder.addLabel("Funksjon:", cc.xy(1, 7));
    builder.add(comboBoxFunction, cc.xy(3, 7));
    builder.addLabel("Kategori:", cc.xy(1, 9));
    builder.add(comboBoxCategory, cc.xy(3, 9));
    builder.add(checkBoxClosed, cc.xy(3, 11));

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


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

    builder.addLabel("Navn:", cc.xy(2, 2));
    builder.add(textFieldParamName, cc.xy(4, 2));
    builder.addLabel("Verdi:", cc.xy(2, 4));
    builder.add(textFieldParamValue, cc.xy(4, 4));

    builder.add(
        ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
        cc.xyw(2, 6, 3));

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

        FormLayout layout = new FormLayout(
                "10dlu,fill:p:grow",
                "10dlu,fill:p:grow,3dlu,p");
       

        PanelBuilder builder = new PanelBuilder(layout);
//        PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
        CellConstraints cc = new CellConstraints();
       
        builder.add(splitPane,cc.xy(2, 2));
        builder.add(ButtonBarFactory.buildCenteredBar(buttonPrint,
                buttonRefresh, buttonCancel), cc.xy(2,4));
        return builder.getPanel();
    }
View Full Code Here

   
    private JPanel buildRightPane(WindowInterface window){
      FormLayout layout = new FormLayout(
                "p,3dlu,p:grow",
                "15dlu,3dlu,p,3dlu,fill:140dlu:grow");
        PanelBuilder builder = new PanelBuilder(layout);
//         PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
        CellConstraints cc = new CellConstraints();
       
        builder.addLabel("Lag:", cc.xy(1, 3));
        panelTeams = buildAssemblyTeamPanel(true, yearWeek);
        panelTeamsMain.add(panelTeams, BorderLayout.CENTER);
        JScrollPane scrollPaneTeam = new JScrollPane(panelTeamsMain);
        scrollPaneTeam
                .setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
        builder.add(scrollPaneTeam, cc.xy(1, 5));
        teamVerticalScrollBar = scrollPaneTeam.getVerticalScrollBar();
        panelAssemblies = buildAssembliesWeekPanel(window, true);
        panelAssembliesMain.add(panelAssemblies, BorderLayout.CENTER);
        builder.add(panelAssembliesMain, cc.xywh(3, 1,1,5));
       
        return builder.getPanel();
    }
View Full Code Here

   
    private JPanel buildLeftPane(WindowInterface window){
      FormLayout layout = new FormLayout(
                "p:grow",
                "p,3dlu,fill:120dlu:grow,3dlu,fill:100dlu:grow");
        PanelBuilder builder = new PanelBuilder(layout);
        //PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
        CellConstraints cc = new CellConstraints();
       
        /*builder.addLabel("�r:", cc.xy(1, 1));
        builder.add(yearChooser, cc.xy(3, 1));
        builder.addLabel("Uke:", cc.xy(5, 1));
        builder.add(comboBoxWeeks, cc.xy(7, 1));
        builder.addLabel("Produktomr�de:", cc.xyw(11, 1, 1));
       
        builder.add(ButtonBarFactory.buildLeftAlignedBar(buttonSearchOrder,buttonReport), cc.xyw(1, 3, 10));
        builder.add(comboBoxProductAreaGroup, cc.xyw(11, 3, 1));
       
        builder.add(labelSearchResult, cc.xyw(1, 5, 9));*/
        builder.add(buildFilterPanel(),cc.xy(1, 1));
       
        builder.add(orderPanelView, cc.xy(1, 3));
       
        builder.add(buildDeviationPanel(window), cc.xy(1, 5));
       
       
        return builder.getPanel();
    }
View Full Code Here

  @Override
  protected JComponent buildEditPanel(WindowInterface window) {
    FormLayout layout = new FormLayout(
        "10dlu,p,3dlu,30dlu,3dlu,p,3dlu,p,3dlu,p,3dlu,20dlu,10dlu",
        "10dlu,p,3dlu,fill:50dlu,3dlu,p");
    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("�r:", cc.xy(2, 2));
    builder.add(yearChooser, cc.xy(4, 2));
    builder.addLabel("Uke:", cc.xy(6, 2));
    builder.add(comboBoxWeek, cc.xy(8, 2));
    builder.addLabel("Prosent:", cc.xy(10, 2));
    builder.add(textFieldProcent, cc.xy(12, 2));
    builder.addLabel("Kommentar:", cc.xy(2, 4));
    builder.add(new JScrollPane(textAreaComment), cc.xyw(4, 4, 9));

    builder.add(ButtonBarFactory.buildCenteredBar(buttonOk, buttonCancel),
        cc.xyw(2, 6, 11));

    return new IconFeedbackPanel(validationResultModel, builder.getPanel());

  }
View Full Code Here

    public JPanel buildConstraintPanel(WindowInterface window,boolean addEmpty) {
        initComponents(window,addEmpty);
        FormLayout layout = new FormLayout("p,3dlu,30dlu,3dlu,p:grow,3dlu,30dlu,3dlu,p,3dlu,30dlu",
                "p,3dlu,p,3dlu,p");
        PanelBuilder builder = new PanelBuilder(layout);
        // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
        CellConstraints cc = new CellConstraints();

        if (excelReportEnum.useFrom()) {
            builder.addLabel("�r:", cc.xy(1, 1));
            builder.add(yearChooser, cc.xy(3, 1));
            if (excelReportEnum.useTo()) {
                builder.addLabel("Fra uke:", cc.xy(5, 1));
                builder.addLabel("Til uke:", cc.xy(9, 1));
                builder.add(comboBoxWeekTo, cc.xy(11, 1));
            } else {
                builder.addLabel("Uke:", cc.xy(5, 1));
            }
            builder.add(comboBoxWeekFrom, cc.xy(7, 1));
        }

        if (comboBoxReportType != null) {
            builder.addLabel("Rapport:", cc.xyw(1, 3, 3));
            builder.add(comboBoxReportType, cc.xyw(5, 3, 7));
        }
        builder.addLabel("Produktomr�de:", cc.xyw(1, 5, 5));
        builder.add(comboBoxProductAreaGroup, cc.xyw(6, 5, 6));

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

    private Component buildFilterPanel() {
      FormLayout layout = new FormLayout(
                "p,3dlu,30dlu,3dlu,p,3dlu,p,3dlu,10dlu,p",
                "p,3dlu,p,3dlu,10dlu");
        PanelBuilder builder = new PanelBuilder(layout);
        //PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
        CellConstraints cc = new CellConstraints();
      builder.addLabel("�r:", cc.xy(1, 1));
        builder.add(yearChooser, cc.xy(3, 1));
        builder.addLabel("Uke:", cc.xy(5, 1));
        builder.add(comboBoxWeeks, cc.xy(7, 1));
        builder.addLabel("Produktomr�de:",cc.xy(10, 1));
        builder.add(comboBoxProductAreaGroup,cc.xy(10, 3));
        builder.add(buttonSearchOrder, cc.xyw(1, 3, 5));
        builder.add(labelWarning, cc.xyw(7, 3, 3));
        builder.add(labelSearchResult, cc.xyw(1, 5, 7));
        return builder.getPanel();
  }
View Full Code Here

    initEditEventHandling();
    FormLayout layout = new FormLayout(
        "10dlu,p,3dlu,30dlu,3dlu,50dlu,10dlu",
        "10dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,fill:30dlu,3dlu,p");

    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.xyw(4, 2, 3));
    builder.addLabel("�r:", cc.xy(2, 4));
    builder.add(yearChooser, cc.xy(4, 4));
    builder.addLabel("Uke:", cc.xy(2, 6));
    builder.add(comboBoxWeek, cc.xy(4, 6));
    builder.addLabel("Opplasting:", cc.xy(2, 8));
    builder.add(dateChooser, cc.xyw(4, 8, 3));

    builder.addLabel("Kommentar:", cc.xy(2, 10));
    builder.add(new JScrollPane(textAreaTransportComment),
        cc.xywh(4, 10, 3, 3));

    builder.add(
        ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
        cc.xyw(2, 14, 5));

    builder.appendRow(new RowSpec("5dlu"));
    return new IconFeedbackPanel(validationResultModel, builder.getPanel());
  }
View Full Code Here

        initComponents(window);

        FormLayout layout = new FormLayout("10dlu,p,3dlu,p,"
                + viewHandler.getTableWidth() + ":grow,3dlu,p,10dlu,p,3dlu,p",
                "10dlu,top:p,3dlu,top:p,top:3dlu,top:p,3dlu,top:p,120dlu:grow,5dlu,p,3dlu");
        PanelBuilder builder = new PanelBuilder(layout);
        // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
        CellConstraints cc = new CellConstraints();
        builder.add(checkBoxFilter, cc.xy(7, 2));
        builder.addLabel("Produktomr�de:", cc.xy(2, 2));
        builder.add(comboBoxProductAreaGroup, cc.xy(4, 2));
        builder.add(buildButtons(), cc.xywh(7, 4, 1, 6));
        builder.add(new JScrollPane(tableAppList), cc.xywh(2, 4, 4, 6));
        builder.add(ButtonBarFactory.buildCenteredBar(buttonRefresh,
                buttonCancel), cc.xyw(2, 11, 7));
        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.