/** * Sets the total number of columns. * * If the new number of columns is greater than the old, (new-old) * blank columns will be appended to the end. If the new number of * columns is less than the old, then (old-new) columns will be removed * from the end which will DELETE ALL DATE IN DELETED COLUMNS. * * @param count the new column count. */ public void setColCount(int count) { setExtension(new ColCount(count)); } }
/** * Gets the total number of columns. * * This refers to the hard bound on columns. It is possible that your * spreadsheet has many empty columns, all of which are counted in * this count. * * Column positions 1 to getColCount() are valid. */ public int getColCount() { return getExtension(ColCount.class).getCount(); } }
/** * Declares any extensions. */ public void declareExtensions(ExtensionProfile extProfile) { extProfile.declare(WorksheetEntry.class, RowCount.getDefaultDescription()); extProfile.declare(WorksheetEntry.class, ColCount.getDefaultDescription()); }
/** * Declares any extensions. */ public void declareExtensions(ExtensionProfile extProfile) { extProfile.declare(WorksheetEntry.class, RowCount.getDefaultDescription()); extProfile.declare(WorksheetEntry.class, ColCount.getDefaultDescription()); }
/** * Sets the total number of columns. * * If the new number of columns is greater than the old, (new-old) * blank columns will be appended to the end. If the new number of * columns is less than the old, then (old-new) columns will be removed * from the end which will DELETE ALL DATE IN DELETED COLUMNS. * * @param count the new column count. */ public void setColCount(int count) { setExtension(new ColCount(count)); } }
/** Declares relevant extensions into the extension profile. */ public void declareExtensions(ExtensionProfile extProfile) { extProfile.declare(CellFeed.class, RowCount.getDefaultDescription()); extProfile.declare(CellFeed.class, ColCount.getDefaultDescription()); super.declareExtensions(extProfile); BatchUtils.declareExtensions(extProfile); }
/** * Gets the total number of columns. * * This refers to the hard bound on columns. It is possible that your * spreadsheet has many empty columns, all of which are counted in * this count. * * Column positions 1 to getColCount() are valid. */ public int getColCount() { return getExtension(ColCount.class).getCount(); } }
/** * Constructs a new entry with the given row count and column count * @param rowCount the number of rows in the worksheet * @param colCount the number of columns in a worksheet */ public WorksheetEntry(int rowCount, int colCount) { getCategories().add(CATEGORY); addExtension(new RowCount(rowCount)); addExtension(new ColCount(colCount)); }
/** Declares relevant extensions into the extension profile. */ public void declareExtensions(ExtensionProfile extProfile) { extProfile.declare(CellFeed.class, RowCount.getDefaultDescription()); extProfile.declare(CellFeed.class, ColCount.getDefaultDescription()); super.declareExtensions(extProfile); BatchUtils.declareExtensions(extProfile); }
/** * Gets the total number of columns. * * This refers to the hard bound on columns. It is possible that your * spreadsheet has many empty columns, all of which are counted in * this count. * * Column positions 1 to getColCount() are valid. */ public int getColCount() { ColCount count = getExtension(ColCount.class); if (count != null) { return count.getCount(); } else { return 0; } }
/** * Constructs a new entry with the given row count and column count * @param rowCount the number of rows in the worksheet * @param colCount the number of columns in a worksheet */ public WorksheetEntry(int rowCount, int colCount) { getCategories().add(CATEGORY); addExtension(new RowCount(rowCount)); addExtension(new ColCount(colCount)); }
/** * Gets the total number of columns. * * This refers to the hard bound on columns. It is possible that your * spreadsheet has many empty columns, all of which are counted in * this count. * * Column positions 1 to getColCount() are valid. */ public int getColCount() { ColCount count = getExtension(ColCount.class); if (count != null) { return count.getCount(); } else { return 0; } }