Package com.projity.pm.graphic.spreadsheet

Examples of com.projity.pm.graphic.spreadsheet.SpreadSheetColumnModel


  public final SpreadSheetFieldArray getFieldArrayWithWidths(ArrayList fieldArray) {
    if (fieldArray == null)
      fieldArray =   getFieldArray();
    // the widths don't work now anyway, and someone had a crash due to code below
    SpreadSheetColumnModel cols = (SpreadSheetColumnModel)getColumnModel();
    ArrayList<Integer> colWidths=new ArrayList<Integer>(cols.getColumnCount());
    colWidths.add(-1); //id column ignored
    for (int i=0; i < cols.getColumnCount(); i++)
      colWidths.add(cols.getColumn(i).getWidth());
    ((SpreadSheetFieldArray)fieldArray).setWidths(colWidths);
    return (SpreadSheetFieldArray) fieldArray;
  }
View Full Code Here

TOP

Related Classes of com.projity.pm.graphic.spreadsheet.SpreadSheetColumnModel

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.