public class TemplateElementCaseBlockImplement extends ElementCaseBlockImplement implements TemplateElementCase, TemplateBlock
cellcase, floatElementList, INIT_COLUMN_NUMBER, reportPageAttr, XML_TAG
FIT, KEY, PAPER_HEIGHT, PAPER_WHDTH, TOOLBAR_HEIGHT, WEB_PAGE, XML_TAG
构造器和说明 |
---|
TemplateElementCaseBlockImplement(CellElementCaseCreator creator) |
限定符和类型 | 方法和说明 |
---|---|
void |
addCellElement(TemplateCellElement cell)
添加单元格
|
void |
addCellElement(TemplateCellElement cell,
boolean override)
添加单元格
|
void |
addPropertyListener(PropertyChangeListener l)
添加属性表监听
|
SheetExecutor |
createExecutor(TemplateReport report,
java.util.Map parameterMap,
BlockSequenceExecutor bExecuter)
创建当前对象计算器
|
void |
firePropertyChange()
触发属性表改变事件
|
int[] |
getHorizontalLine()
获取当前块在水平方向上需要绘制的线
|
TemplateCellElement |
getTemplateCellElement(int column,
int row)
Gets the Cell at the specified position(column, row).
|
int[] |
getVerticalLine()
获取当前块在垂直方向上需要绘制的线
报表块需要画出行列线, 图表块暂时没需求, 以后可以画出一些轴的对齐线
返回的线已经加上了当前块的起点坐标
|
boolean |
removeCellElement(TemplateCellElement cell)
移除单元格
|
TemplateCellElement |
removeTemplateCellElement(int column,
int row)
移除单元格
|
void |
setBlockAttr(PolyBlockAttr blockAttr)
设置块的属性
|
void |
setBounds(UnitRectangle bounds,
PolyWorkSheet sheet)
调整块的大小与位置, 调整后, 动态改变sheet内其他的块的位置
|
createDefaultCellElementCase, getBlockAttr, getBlockName, getBounds, isCells, resetRowAndColumnLength, setBlockName, setBounds
__mod_column_row, addCellElement, addCellElement, addColumnPrivilegeControl, addFloatElement, addRowPrivilegeControl, bringFloatElementForward, bringFloatElementToFront, cacheCellElement, cellIterator, clone, cloneWithoutCellCase, cloneWithoutCellCase, equals, floatIterator, getCellCase, getCellElement, getCellTableDataSet, getCellValue, getColumn, getColumnCount, getColumnPrivilegeControl, getColumnWidth, getColumnWidthList_DEC, getFloatElement, getReportPageAttr, getRow, getRowCount, getRowHeight, getRowHeightList_DEC, getRowPrivilegeControl, insertColumn, insertRow, intersect, merge, prepare2ShrinkRealWidthOrHeight4Cell, readXML, recalculateCellCase, releaseCellElementCache, removeAllCellElements, removeAllFloatElements, removeCellElement, removeCellElement, removeColumn, removeColumnPrivilegeControl, removeFloatElement, removeFloatElement, removeRow, removeRowPrivilegeControl, sendFloatElementBackward, sendFloatElementToBack, setCellCase, setCellValue, setColumnWidth, setColumnWidthList_DEC, setReportPageAttr, setRowHeight, setRowHeightList_DEC, shrinkTOFitColumnWidthForCellElement, shrinkToFitPaper, shrinkTOFitRowHeightForCellElement, writeCommonXML, writeReportPageAttrXML, writeXML
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addColumnPrivilegeControl, addRowPrivilegeControl, getColumnPrivilegeControl, getColumnWidthList_DEC, getRowHeightList_DEC, getRowPrivilegeControl, prepare2ShrinkRealWidthOrHeight4Cell, removeColumnPrivilegeControl, removeRowPrivilegeControl, setColumnWidth, setReportPageAttr, setRowHeight, shrinkTOFitColumnWidthForCellElement, shrinkToFitPaper, shrinkTOFitRowHeightForCellElement
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
getBlockAttr, getBlockName, getBounds, isCells, setBlockName, setBounds
readXML
clone
public TemplateElementCaseBlockImplement(CellElementCaseCreator creator)
public void addCellElement(TemplateCellElement cell)
addCellElement
在接口中 TemplateElementCase
cell
- 指定单元格public void addCellElement(TemplateCellElement cell, boolean override)
addCellElement
在接口中 TemplateElementCase
cell
- 指定单元格override
- 是否覆盖public TemplateCellElement getTemplateCellElement(int column, int row)
TemplateElementCase
getTemplateCellElement
在接口中 TemplateElementCase
column
- the column.row
- the row.public boolean removeCellElement(TemplateCellElement cell)
removeCellElement
在接口中 TemplateElementCase
cell
- 指定单元格public TemplateCellElement removeTemplateCellElement(int column, int row)
removeTemplateCellElement
在接口中 TemplateElementCase
column
- 列row
- 行public SheetExecutor createExecutor(TemplateReport report, java.util.Map parameterMap, BlockSequenceExecutor bExecuter)
createExecutor
在接口中 TemplateBlock
report
- 报表parameterMap
- 参数mapbExecuter
- 块计算序列public void setBlockAttr(PolyBlockAttr blockAttr)
TemplateBlock
setBlockAttr
在接口中 TemplateBlock
public void setBounds(UnitRectangle bounds, PolyWorkSheet sheet)
TemplateBlock
setBounds
在接口中 TemplateBlock
bounds
- 新的大小位置sheet
- 块所在的sheetpublic void addPropertyListener(PropertyChangeListener l)
addPropertyListener
在接口中 OB
l
- 监听器public void firePropertyChange()
firePropertyChange
在接口中 OB
public int[] getVerticalLine()
TemplateBlock
getVerticalLine
在接口中 TemplateBlock
public int[] getHorizontalLine()
TemplateBlock
getHorizontalLine
在接口中 TemplateBlock