/** * Sets the total number of rows. * * If the new number of rows is greater than the old, (new-old) * blank rows will be appended to the end. If the new number of * rows is less than the old, then (old-new) rows will be removed * from the end which will DELETE ALL DATE IN DELETED ROWS. * * @param count the new row count. */ public void setRowCount(int count) { setExtension(new RowCount(count)); }
/** * Gets the total number of rows in the spreadsheet. * * This refers to the hard bound on rows. It is possible that your * spreadsheet has many, many empty rows, all of which are counted in * this count. * * Column positions 1 to getRowCount() are valid. */ public int getRowCount() { return getExtension(RowCount.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 rows. * * If the new number of rows is greater than the old, (new-old) * blank rows will be appended to the end. If the new number of * rows is less than the old, then (old-new) rows will be removed * from the end which will DELETE ALL DATE IN DELETED ROWS. * * @param count the new row count. */ public void setRowCount(int count) { setExtension(new RowCount(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 rows in the spreadsheet. * * This refers to the hard bound on rows. It is possible that your * spreadsheet has many, many empty rows, all of which are counted in * this count. * * Column positions 1 to getRowCount() are valid. */ public int getRowCount() { return getExtension(RowCount.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 rows. * * This refers to the hard bound on rows. It is possible that your * spreadsheet has many, many empty rows, all of which are counted in * this count. * * Column positions 1 to getRowCount() are valid. */ public int getRowCount() { RowCount count = getExtension(RowCount.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 rows. * * This refers to the hard bound on rows. It is possible that your * spreadsheet has many, many empty rows, all of which are counted in * this count. * * Column positions 1 to getRowCount() are valid. */ public int getRowCount() { RowCount count = getExtension(RowCount.class); if (count != null) { return count.getCount(); } else { return 0; } }