public interface ElementCase extends CellElementCase, FloatElementCase, ElementGetter, XMLable
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
FIT |
static CalculatorKey |
KEY |
static java.lang.String |
PAPER_HEIGHT |
static java.lang.String |
PAPER_WHDTH |
static int |
TOOLBAR_HEIGHT |
static java.lang.String |
WEB_PAGE |
static java.lang.String |
XML_TAG |
限定符和类型 | 方法和说明 |
---|---|
void |
addColumnPrivilegeControl(int column,
java.lang.String selectedRole)
设置列权限
|
void |
addRowPrivilegeControl(int row,
java.lang.String selectedRole)
设置行权限
|
ColumnRowPrivilegeControl |
getColumnPrivilegeControl(int column)
获取列权限
|
DynamicUnitList |
getColumnWidthList_DEC()
获取列宽
|
DynamicUnitList |
getRowHeightList_DEC()
获取行高
|
ColumnRowPrivilegeControl |
getRowPrivilegeControl(int row)
获取列权限
|
void |
prepare2ShrinkRealWidthOrHeight4Cell(CellElement cur_ce,
int mode)
计算单元格的真实大小
hugh:通过接口处理单元格实际高度,比如html,toimage,形态接口处理之后的真实单元格大小与原来直接计算的并不一样,需要调整
|
void |
removeColumnPrivilegeControl(int column,
java.lang.String selectedRole)
删除列权限
|
void |
removeRowPrivilegeControl(int row,
java.lang.String selectedRole)
删除行权限
|
void |
setColumnWidth(int column,
UNIT newValue)
setColumnWidth
|
void |
setReportPageAttr(ReportPageAttrProvider reportPageAttr)
Sets report page attributes.
|
void |
setRowHeight(int row,
UNIT newValue)
setRowHeight
|
void |
shrinkTOFitColumnWidthForCellElement(CellElement cellElement)
根据单元格内容自动调整行宽
|
void |
shrinkToFitPaper(Calculator calculator)
调整结果报表以适应不同的宽高
|
void |
shrinkTOFitRowHeightForCellElement(CellElement cellElement)
根据单元格内容自动调整行高
|
getCellElement, getCellValue, getColumn, insertColumn, insertRow, intersect, merge, removeAllCellElements, removeCellElement, removeColumn, removeRow, setCellValue
addFloatElement, bringFloatElementForward, bringFloatElementToFront, getFloatElement, removeAllFloatElements, removeFloatElement, removeFloatElement, sendFloatElementBackward, sendFloatElementToBack
getReportPageAttr
cellIterator, getColumnCount, getColumnWidth, getRow, getRowCount, getRowHeight
floatIterator
readXML
clone
static final CalculatorKey KEY
static final java.lang.String XML_TAG
static final java.lang.String FIT
static final java.lang.String WEB_PAGE
static final java.lang.String PAPER_WHDTH
static final java.lang.String PAPER_HEIGHT
static final int TOOLBAR_HEIGHT
void setReportPageAttr(ReportPageAttrProvider reportPageAttr)
void shrinkTOFitRowHeightForCellElement(CellElement cellElement)
cellElement
- 指定单元格void shrinkTOFitColumnWidthForCellElement(CellElement cellElement)
cellElement
- 指定单元格DynamicUnitList getRowHeightList_DEC()
DynamicUnitList getColumnWidthList_DEC()
void setColumnWidth(int column, UNIT newValue)
setColumnWidth
在接口中 CellElementCase
column
- 指定索引newValue
- 新值void setRowHeight(int row, UNIT newValue)
setRowHeight
在接口中 CellElementCase
row
- 指定索引newValue
- 新值void addRowPrivilegeControl(int row, java.lang.String selectedRole)
row
- 指定行selectedRole
- 选中的角色void addColumnPrivilegeControl(int column, java.lang.String selectedRole)
column
- 指定列selectedRole
- 选中的角色void removeColumnPrivilegeControl(int column, java.lang.String selectedRole)
column
- 指定列selectedRole
- 选中的角色void removeRowPrivilegeControl(int row, java.lang.String selectedRole)
row
- 指定行selectedRole
- 选中的角色ColumnRowPrivilegeControl getRowPrivilegeControl(int row)
ColumnRowPrivilegeControl getColumnPrivilegeControl(int column)
void shrinkToFitPaper(Calculator calculator)
calculator
- 算子void prepare2ShrinkRealWidthOrHeight4Cell(CellElement cur_ce, int mode)
cur_ce
- 单元格mode
- 自动调整的模式