/** * Constructor used when importing a sheet from another * spreadsheet * * @param col the column number * @param cir the column info record read in */ public ColumnInfoRecord(jxl.read.biff.ColumnInfoRecord cir, int col) { super(Type.COLINFO); column = col; width = cir.getWidth(); xfIndex = cir.getXFIndex(); outlineLevel = cir.getOutlineLevel(); collapsed = cir.getCollapsed(); }
int startcol = Math.max(0, cir.getStartColumn()); int endcol = Math.min(columnInfos.length - 1, cir.getEndColumn());
/** * Determines whether or not this cell has been hidden * * @return TRUE if this cell has been hidden, FALSE otherwise */ public boolean isHidden() { ColumnInfoRecord cir = sheet.getColumnInfo(column); if (cir != null && (cir.getWidth() == 0 || cir.getHidden())) { return true; } RowRecord rr = sheet.getRowInfo(row); if (rr != null && (rr.getRowHeight() == 0 || rr.isCollapsed())) { return true; } return false; }
for (int j = rcir.getStartColumn(); j <= rcir.getEndColumn() ; j++) cir.setHidden(rcir.getHidden()); columnFormats.add(cir);
/** * Gets the column width for the specified column * * @param col the column number * @return the column format, or the default format if no override is specified */ public CellView getColumnView(int col) { ColumnInfoRecord cir = getColumnInfo(col); CellView cv = new CellView(); if (cir != null) { cv.setDimension(cir.getWidth() / 256); //deprecated cv.setSize(cir.getWidth()); cv.setHidden(cir.getHidden()); cv.setFormat(formattingRecords.getXFRecord(cir.getXFIndex())); } else { cv.setDimension(settings.getDefaultColumnWidth()); //deprecated cv.setSize(settings.getDefaultColumnWidth() * 256); } return cv; }
/** * Determines whether or not this cell has been hidden * * @return TRUE if this cell has been hidden, FALSE otherwise */ public boolean isHidden() { ColumnInfoRecord cir = sheet.getColumnInfo(column); if (cir != null && cir.getWidth() == 0) { return true; } RowRecord rr = sheet.getRowInfo(row); if (rr != null && (rr.getRowHeight() == 0 || rr.isCollapsed())) { return true; } return false; }
columnInfos = new ColumnInfoRecord[cir.getEndColumn() + 1];
ColumnInfoRecord cir = new ColumnInfoRecord(r); columnInfosArray.add(cir);
for (int j = rcir.getStartColumn(); j <= rcir.getEndColumn() ; j++) cir.setHidden(rcir.getHidden()); columnFormats.add(cir);
/** * Gets the column width for the specified column * * @param col the column number * @return the column format, or the default format if no override is specified */ public CellView getColumnView(int col) { ColumnInfoRecord cir = getColumnInfo(col); CellView cv = new CellView(); if (cir != null) { cv.setDimension(cir.getWidth() / 256); //deprecated cv.setSize(cir.getWidth()); cv.setHidden(cir.getHidden()); cv.setFormat(formattingRecords.getXFRecord(cir.getXFIndex())); } else { cv.setDimension(settings.getDefaultColumnWidth()); //deprecated cv.setSize(settings.getDefaultColumnWidth() * 256); } return cv; }
/** * Determines whether or not this cell has been hidden * * @return TRUE if this cell has been hidden, FALSE otherwise */ public boolean isHidden() { ColumnInfoRecord cir = sheet.getColumnInfo(column); if (cir != null && cir.getWidth() == 0) { return true; } RowRecord rr = sheet.getRowInfo(row); if (rr != null && (rr.getRowHeight() == 0 || rr.isCollapsed())) { return true; } return false; }
columnInfos = new ColumnInfoRecord[cir.getEndColumn() + 1];
ColumnInfoRecord cir = new ColumnInfoRecord(r); columnInfosArray.add(cir);
/** * Constructor used when importing a sheet from another * spreadsheet * * @param col the column number * @param cir the column info record read in */ public ColumnInfoRecord(jxl.read.biff.ColumnInfoRecord cir, int col) { super(Type.COLINFO); column = col; width = cir.getWidth(); xfIndex = cir.getXFIndex(); outlineLevel = cir.getOutlineLevel(); collapsed = cir.getCollapsed(); }
for (int j = rcir.getStartColumn(); j <= rcir.getEndColumn() ; j++) cir.setHidden(rcir.getHidden()); columnFormats.add(cir);
/** * Determines whether or not this cell has been hidden * * @return TRUE if this cell has been hidden, FALSE otherwise */ public boolean isHidden() { ColumnInfoRecord cir = sheet.getColumnInfo(column); if (cir != null && (cir.getWidth() == 0 || cir.getHidden())) { return true; } RowRecord rr = sheet.getRowInfo(row); if (rr != null && (rr.getRowHeight() == 0 || rr.isCollapsed())) { return true; } return false; }
int startcol = Math.max(0, cir.getStartColumn()); int endcol = Math.min(columnInfos.length - 1, cir.getEndColumn());
/** * Determines whether or not this cell has been hidden * * @return TRUE if this cell has been hidden, FALSE otherwise */ public boolean isHidden() { ColumnInfoRecord cir = sheet.getColumnInfo(column); if (cir != null && cir.getWidth() == 0) { return true; } RowRecord rr = sheet.getRowInfo(row); if (rr != null && (rr.getRowHeight() == 0 || rr.isCollapsed())) { return true; } return false; }
/** * Constructor used when copying an existing spreadsheet * * @param col the column number * @param cir the column info record read in * @param fr the format records */ public ColumnInfoRecord(jxl.read.biff.ColumnInfoRecord cir, int col, FormattingRecords fr) { super(Type.COLINFO); column = col; width = cir.getWidth(); xfIndex = cir.getXFIndex(); style = fr.getXFRecord(xfIndex); outlineLevel = cir.getOutlineLevel(); collapsed = cir.getCollapsed(); }
for (int j = rcir.getStartColumn(); j <= rcir.getEndColumn() ; j++) cir.setHidden(rcir.getHidden()); columnFormats.add(cir);