Package com.projity.pm.graphic.spreadsheet.editor

Examples of com.projity.pm.graphic.spreadsheet.editor.RateEditor


          else
            tc.setCellRenderer(new SpreadSheetCellRendererAdapter(new SimpleRenderer()));
          tc.setCellEditor(new SpreadSheetCellEditorAdapter(new SpinEditor(field)));
        } else if (field.isRate()) {
          tc.setCellRenderer(new SpreadSheetCellRendererAdapter(new RateRenderer()));
          tc.setCellEditor(new SpreadSheetCellEditorAdapter(new RateEditor(null, field.isMoney(),field.isPercent(),true)));
        } else if (field.isMoney()) {
          tc.setCellRenderer(new SpreadSheetCellRendererAdapter(new SimpleRenderer()));
          tc.setCellEditor(new SpreadSheetCellEditorAdapter(new MoneyEditor()));
        } else if (field.isPercent()) {
          tc.setCellRenderer(new SpreadSheetCellRendererAdapter(new PercentRenderer()));
View Full Code Here


      if (entry != null) {
        Field field = ((SpreadSheetModel)getModel()).getFieldInColumn(column+1);
        if (field == AssignmentEntry.getRateField()) {
          if (entry.getTimeUnitLabel() != null) {
            boolean labor = ((AssignmentEntry)entry).getResource().isLabor();
            editor = new RateEditor(entry.getTimeUnitLabel(),field.isMoney(),labor && field.isPercent(),labor);
          }
        }
      }
      if (editor == null)
        editor =  super.getCellEditor(row, column);
View Full Code Here

TOP

Related Classes of com.projity.pm.graphic.spreadsheet.editor.RateEditor

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.