Package com.projity.dialog.util

Examples of com.projity.dialog.util.FieldComponentMap


//    builder.append("Division:",division);
//    builder.nextLine(2);
//    builder.append("Group:",group);
    builder.nextLine(2);

    FieldComponentMap map = createMap();
    Collection extraFields = FieldDictionary.extractExtraFields(FieldDictionary.getInstance().getProjectFields(),true);
    JComponent extra = createFieldsPanel(map, extraFields);
    if (extra != null) {
      builder.add(extra,cc.xyw(builder.getColumn(), builder
          .getRow(), 3));
View Full Code Here


    return builder.getPanel();
  }
 

  private JComponent createGeneralPanel(){
    FieldComponentMap map = createMap();
    FormLayout layout = new FormLayout(
            "max(50dlu;pref), 3dlu, 90dlu 10dlu, p, 3dlu,90dlu,60dlu", // extra padding on right is for estimated field //$NON-NLS-1$
        "p, 3dlu,p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p,3dlu, p, 3dlu,p, 3dlu, fill:50dlu:grow"); //$NON-NLS-1$

    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    CellConstraints cc = new CellConstraints();
    builder.setDefaultDialogBorder();
    builder.add(createHeaderFieldsPanel(map),cc.xyw(builder.getColumn(), builder
        .getRow(), 8));
   
   
    builder.nextLine(2);
    map.appendSometimesReadOnly(builder,"Field.duration"); //$NON-NLS-1$
    map.append(builder,"Field.estimated"); //$NON-NLS-1$
    builder.nextLine(2);
    map.appendSometimesReadOnly(builder,"Field.percentComplete"); //$NON-NLS-1$
    map.append(builder,"Field.priority"); //$NON-NLS-1$
   
    builder.nextLine(2);
    map.append(builder,"Field.cost"); //$NON-NLS-1$
    map.append(builder,"Field.work"); //$NON-NLS-1$
    builder.nextLine(4);
    builder.addSeparator(Messages.getString("TaskInformationDialog.Dates")); //$NON-NLS-1$
    builder.nextLine(2);
    map.append(builder,"Field.start"); //$NON-NLS-1$
    map.append(builder,"Field.finish"); //$NON-NLS-1$
    builder.nextLine(2);
    map.append(builder,"Field.baselineStart"); //$NON-NLS-1$
    map.append(builder,"Field.baselineFinish"); //$NON-NLS-1$
    return builder.getPanel();
  }
View Full Code Here

    map.append(builder,"Field.baselineFinish"); //$NON-NLS-1$
    return builder.getPanel();
  }
 
  private JComponent createAdvancedPanel(){
    FieldComponentMap map = createMap();
    FormLayout layout = new FormLayout(
            "max(50dlu;pref), 3dlu, 90dlu, 10dlu, p, 3dlu,90dlu,30dlu", // extra padding on right is for estimated field //$NON-NLS-1$
            "p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,3dlu, fill:50dlu:grow"); //$NON-NLS-1$

    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.setDefaultDialogBorder();
    CellConstraints cc = new CellConstraints();
   
    builder.add(createHeaderFieldsPanel(map),cc.xyw(builder.getColumn(), builder
        .getRow(), 8));
    builder.nextLine(2);
    map.append(builder,"Field.wbs"); //$NON-NLS-1$
    map.append(builder,"Field.markTaskAsMilestone",3); //$NON-NLS-1$
    builder.nextLine(2);
    builder.addSeparator(Messages.getString("TaskInformationDialog.ConstrainTask")); //$NON-NLS-1$
    builder.nextLine(2);
    map.append(builder,"Field.constraintType"); //$NON-NLS-1$
    map.appendSometimesReadOnly(builder,"Field.constraintDate"); //$NON-NLS-1$
    builder.nextLine(2);
    map.append(builder,"Field.deadline"); //$NON-NLS-1$
    builder.nextLine(4);
    builder.addSeparator("  "); //$NON-NLS-1$
    builder.nextLine(2);
    map.append(builder,"Field.taskType"); //$NON-NLS-1$
    map.append(builder,"Field.effortDriven",3); //$NON-NLS-1$
    builder.nextLine(2);
    map.append(builder,"Field.taskCalendar"); //$NON-NLS-1$
    map.append(builder,"Field.ignoreResourceCalendar",3); //$NON-NLS-1$
    builder.nextLine(2);
    map.append(builder,"Field.earnedValueMethod"); //$NON-NLS-1$

    return builder.getPanel();
 
View Full Code Here

    return builder.getPanel();
 
 
  public JComponent createPredecessorsPanel() {
    FieldComponentMap map = createMap();   
    FormLayout layout = new FormLayout("p:grow","p,3dlu,p,3dlu,fill:150dlu:grow"); //$NON-NLS-1$ //$NON-NLS-2$

    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.setDefaultDialogBorder();
    CellConstraints cc = new CellConstraints();
View Full Code Here

            ,new DependencyNodeModelDataFactory()
            , 0);
    }

  public JComponent createSuccessorsPanel() {
    FieldComponentMap map = createMap();   
    FormLayout layout = new FormLayout("p:grow","p,3dlu,p,3dlu,fill:150dlu:grow"); //$NON-NLS-1$ //$NON-NLS-2$

    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.setDefaultDialogBorder();
    CellConstraints cc = new CellConstraints();
View Full Code Here

        ,new DependencyNodeModelDataFactory()
        , 0);
    }

  public JComponent createResourcesPanel() {
    FieldComponentMap map = createMap();
   
    FormLayout layout = new FormLayout("p:grow,0dlu,right:p","p,3dlu,p,3dlu,fill:150dlu:grow"); //$NON-NLS-1$ //$NON-NLS-2$

    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.setDefaultDialogBorder();
View Full Code Here

   
  }

 
  public JComponent createGeneralPanel(){
    FieldComponentMap map = createMap();

    FormLayout layout = new FormLayout(
        "p, 3dlu, 160dlu, 3dlu, p, 3dlu, p:grow", //$NON-NLS-1$
      "p,3dlu,p,3dlu,p,3dlu,p,3dlu,p,0dlu,p"); //$NON-NLS-1$
 
    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.setDefaultDialogBorder();
    CellConstraints cc = new CellConstraints();
    map.append(builder,"Field.name"); //$NON-NLS-1$
    map.append(builder,"Field.initials"); //$NON-NLS-1$
       builder.nextLine(2);
    map.append(builder,"Field.emailAddress"); //$NON-NLS-1$
    map.append(builder,"Field.group"); //$NON-NLS-1$
    builder.nextLine(2)
    map.append(builder,"Field.rbsCode"); //$NON-NLS-1$
    map.append(builder,"Field.generic"); //$NON-NLS-1$
    map.append(builder,"Field.inactive"); //$NON-NLS-1$
    builder.nextLine(2);
    map.append(builder,"Field.resourceType"); //$NON-NLS-1$
    map.appendSometimesReadOnly(builder,"Field.materialLabel"); //$NON-NLS-1$
    builder.nextLine(2);
    builder.addLabel(map.getLabel("Field.baseCalendar")+":"); //$NON-NLS-1$ //$NON-NLS-2$
    builder.nextColumn(2);
    changeWorkingTimeButton=getChangeWorkingTimeButton();
    builder.append(pairedComponents(map,"Field.baseCalendar",0,changeWorkingTimeButton)); //$NON-NLS-1$
       return builder.getPanel();
     
View Full Code Here

       return builder.getPanel();
     
  }

  public JComponent createAvailabilityPanel() {
    FieldComponentMap map = createMap();
   
    FormLayout layout = new FormLayout("p:grow","p,3dlu,p,3dlu,fill:150dlu:grow"); //$NON-NLS-1$ //$NON-NLS-2$

    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.setDefaultDialogBorder();
View Full Code Here

   
    return builder.getPanel()
  }

  public JComponent createTasksPanel() {
    FieldComponentMap map = createMap();
   
    FormLayout layout = new FormLayout("p:grow","p,3dlu,p,3dlu,fill:150dlu:grow"); //$NON-NLS-1$ //$NON-NLS-2$

    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.setDefaultDialogBorder();
View Full Code Here

    }

  JTabbedPane costTabbedPane;
 
  public JComponent createCostsPanel(){
    FieldComponentMap map = createMap();
    FormLayout layout = new FormLayout(
            "50dlu,3dlu,50dlu,3dlu,p:grow", //$NON-NLS-1$
            "p,3dlu,p,3dlu,fill:p:grow,3dlu,p,3dlu,p"); //$NON-NLS-1$
 
 
    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    builder.setDefaultDialogBorder();
    CellConstraints cc = new CellConstraints();
    builder.add(createHeaderFieldsPanel(map),cc.xyw(builder.getColumn(), builder
        .getRow(), 5));
   
    costTabbedPane= new JTabbedPane();
    CostRateTable costRateTable;
    for (int i = 0; i < 5; i++) {
      costRateTable = ((Resource)object).getCostRateTable(i);
      costTableSpreadsheets[i] = createCostTableSpreadsheet(costRateTable);
      costTableSpreadsheets[i].setPreferredScrollableViewportSize(new Dimension(500, 200));
      JScrollPane ssPane = SpreadSheet.createScrollPaneForTable(costTableSpreadsheets[i]);
      costTabbedPane.addTab(costRateTable.getName(),ssPane);
    }
    createCostTableSpreadsheets();
    builder.nextLine(2);
    builder.addSeparator(Messages.getString("Text.CostRateTables")); //$NON-NLS-1$
    builder.nextLine(2);
    builder.add(costTabbedPane,cc.xyw(builder.getColumn(), builder
        .getRow(), 5));
    builder.nextLine(2);
    map.append(builder,"Field.accrueAt"); //$NON-NLS-1$
       return builder.getPanel();
     
  }
View Full Code Here

TOP

Related Classes of com.projity.dialog.util.FieldComponentMap

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.