Package com.jgoodies.forms.builder

Examples of com.jgoodies.forms.builder.PanelBuilder


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

    builder.addLabel(managerText, cc.xy(2, 2));
    builder.add(comboBoxManager, cc.xy(4, 2));
    builder.add(
        ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
        cc.xyw(2, 4, 3));

    return builder.getPanel();
  }
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");
    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Navn:", cc.xy(2, 2));
    builder.add(textFieldColliName, cc.xy(4, 2));
    builder.addLabel("Antall:", cc.xy(2, 4));
    builder.add(textFieldNumberOfCollies, cc.xy(4, 4));
    builder.add(
        ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
        cc.xyw(2, 6, 4));

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

  private JPanel buildFilterPanel() {
    FormLayout layout = new FormLayout(
        "p,3dlu,30dlu,3dlu,p,3dlu,p,3dlu,25dlu,3dlu,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.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));
    return 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));
    }
    if (excelReportEnum.useProductArea()) {
      builder.addLabel("Produktomr�de:", cc.xyw(1, 5, 5));
      builder.add(comboBoxProductArea, cc.xyw(6, 5, 6));
    }

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

  }

  private JPanel buildLeftPane(WindowInterface window) {
    FormLayout layout = new FormLayout("p:grow",
        "p,3dlu,fill:p:grow,3dlu,fill:p:grow");
    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    CellConstraints cc = new CellConstraints();

    builder.add(buildFilterPanel(), cc.xy(1, 1));

    builder.add(buildOrderPanel(window), cc.xyw(1, 3, 1));

    builder.add(buildPostShipmentPanel(window), cc.xyw(1, 5, 1));

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

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

    builder.addLabel("Transport", cc.xy(1, 1));
    builder.addLabel("#Ordre:", cc.xy(3, 1));
    builder.add(labelOrderCount, cc.xy(5, 1));
    builder.addLabel("Verdi:", cc.xy(7, 1));
    builder.add(labelValue, cc.xy(9, 1));
    builder.addLabel("Budsjett:", cc.xy(11, 1));
    builder.add(labelBudget, cc.xy(13, 1));
    builder.add(checkBoxFilterSent, cc.xy(15, 1));
    builder.add(checkBoxListView, cc.xy(16, 1));
    builder.add(buildColorInfoPanel(),cc.xyw(1, 3,16));

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

  @Override
  protected JComponent buildEditPanel(WindowInterface window) {

    FormLayout layout = new FormLayout("10dlu,p,3dlu,100dlu,3dlu,p,10dlu",
        "10dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,5dlu");
    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();

    builder.addLabel("Fornavn:", cc.xy(2, 2));
    builder.add(textFieldFirstName, cc.xy(4, 2));
    builder.addLabel("Etternavn:", cc.xy(2, 4));
    builder.add(textFieldLastName, cc.xy(4, 4));
    builder.addLabel("Telefon:", cc.xy(2, 6));
    builder.add(textFieldPhone, cc.xy(4, 6));
    builder.add(checkBoxInactive, cc.xy(2, 8));
    builder.addLabel("Type:", cc.xy(2, 10));
    builder.add(comboBoxEmployeeType, cc.xy(4, 10));

    builder.add(ButtonBarFactory.buildCenteredBar(buttonEmployeeType),
        cc.xy(6, 10));

    builder.add(
        ButtonBarFactory.buildCenteredBar(buttonSave, buttonCancel),
        cc.xyw(2, 12, 5));
    return new IconFeedbackPanel(validationResultModel, builder.getPanel());

  }
View Full Code Here

  private JPanel buildColorInfoPanel(){
    FormLayout layout = new FormLayout(
        "55dlu,3dlu,55dlu,3dlu,55dlu,3dlu,55dlu",
        "p");
   
    PanelBuilder builder = new PanelBuilder(layout);
    CellConstraints cc = new CellConstraints();

    builder.add(textFieldGreen,cc.xy(1, 1));
    builder.add(textFieldYellow,cc.xy(3, 1));
    builder.add(textFieldRed,cc.xy(5, 1));
    builder.add(textFieldGrey,cc.xy(7, 1));

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

    return builder.getPanel();
  }

  private JPanel buildRightPane(WindowInterface window) {
    FormLayout layout = new FormLayout("p:grow", "p,3dlu,fill:p:grow");
    PanelBuilder builder = new PanelBuilder(layout);
    // PanelBuilder builder = new PanelBuilder(new FormDebugPanel(),layout);
    CellConstraints cc = new CellConstraints();

    builder.add(buildInfoPanel(), cc.xy(1, 1));

    builder.add(buildTransportWeekPanel(window), cc.xy(1, 3));

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

    splitPane.setOneTouchExpandable(true);
    splitPane.setResizeWeight(0.5);

    FormLayout layout = new FormLayout("10dlu,fill:p:grow",
        "10dlu,fill:p:grow,3dlu,p,3dlu");
    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(buttonExcel, buttonSave,
        buttonRefresh, buttonCancel), cc.xy(2, 4));
    viewHandler.handleFilter();
    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.