本文整理汇总了Java中com.lowagie.text.Table.deleteAllRows方法的典型用法代码示例。如果您正苦于以下问题:Java Table.deleteAllRows方法的具体用法?Java Table.deleteAllRows怎么用?Java Table.deleteAllRows使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.lowagie.text.Table
的用法示例。
在下文中一共展示了Table.deleteAllRows方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: PdfTable
import com.lowagie.text.Table; //导入方法依赖的package包/类
/**
* Constructs a <CODE>PdfTable</CODE>-object.
*
* @param table a <CODE>Table</CODE>
* @param left the left border on the page
* @param right the right border on the page
* @param top the start position of the top of the table
* @param supportUpdateRowAdditions
* if true, table rows will be deleted after building the PdfTable table,
* in order to preserve memory and detect future row additions
*/
PdfTable(Table table, float left, float right, float top, boolean supportUpdateRowAdditions) {
// constructs a Rectangle (the bottomvalue will be changed afterwards)
super(left, top, right, top);
this.table = table;
table.complete();
// copying the attributes from class Table
cloneNonPositionParameters(table);
this.columns = table.columns();
positions = table.getWidths(left, right - left);
// initialisation of some parameters
setLeft(positions[0]);
setRight(positions[positions.length - 1]);
headercells = new ArrayList();
cells = new ArrayList();
updateRowAdditionsInternal();
if (supportUpdateRowAdditions) {
table.deleteAllRows();
}
}