public abstract class AbstractPolyECBlock extends AbstractElementCase implements TemplateBlock, TemplateElementCase
cellcase, floatElementList, INIT_COLUMN_NUMBER, reportPageAttr, XML_TAG
FIT, KEY, PAPER_HEIGHT, PAPER_WHDTH, TOOLBAR_HEIGHT, WEB_PAGE, XML_TAG
构造器和说明 |
---|
AbstractPolyECBlock() |
限定符和类型 | 方法和说明 |
---|---|
void |
addCellElement(TemplateCellElement cell)
添加指定的单元格
|
void |
addCellElement(TemplateCellElement cell,
boolean override)
添加指定的单元格
|
void |
addPropertyListener(PropertyChangeListener l)
添加单元格属性表监听事件
|
java.lang.Object |
clone() |
void |
cloneWithoutCellCase(ResultECBlock resBlock)
克隆除单元格之外的部分
|
void |
copyTo(AbstractPolyECBlock toBlock)
将当前block的一些属性复制给指定的block
|
protected CellElement |
createDefaultCellElementCase() |
SheetExecutor |
createExecutor(TemplateReport report,
java.util.Map parameterMap,
BlockSequenceExecutor bExecuter)
创建sheet计算器
|
protected abstract SheetExecutor |
createSheetExecutor(TemplateReport report,
AbstractPolyECBlock block,
java.util.Map parameterMap,
BlockSequenceExecutor bExecuter) |
boolean |
equals(java.lang.Object o)
判断是否相等
|
void |
firePropertyChange()
触发属性改变事件
|
PolyBlockAttr |
getBlockAttr()
get block attribute
|
java.lang.String |
getBlockName()
get blockName
|
UnitRectangle |
getBounds()
get bounds
|
TemplateCellElement |
getTemplateCellElement(int column,
int row)
get template cell element (column, row)
|
PolyWorkSheet |
getWorksheet() |
void |
insertColumn(int columnIndex)
插入列
|
void |
insertRow(int rowIndex)
插入行
|
boolean |
isCells()
已过时。
|
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
reCalculateBlockSize()
给定块高度或宽度后需要对行列宽进行一些调整
|
boolean |
removeCellElement(TemplateCellElement cell)
移除指定的单元格
|
void |
removeColumn(int columnIndex)
删除列
|
void |
removeRow(int rowIndex)
移除行
|
TemplateCellElement |
removeTemplateCellElement(int column,
int row)
移除指定的单元格
|
void |
setBlockAttr(PolyBlockAttr blockAttr)
set blockAttr
|
void |
setBlockName(java.lang.String blockName)
set blockName
|
void |
setBounds(UnitRectangle bounds)
set bounds
|
void |
setBounds(UnitRectangle bounds,
PolyWorkSheet sheet)
调整块的大小与位置, 调整后, 动态改变sheet内其他的块的位置
|
void |
setColumnWidth(int column,
UNIT newValue)
设置列宽
|
void |
setRowHeight(int row,
UNIT newValue)
设置行高
|
void |
setWorksheet(PolyWorkSheet worksheet) |
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
__mod_column_row, addCellElement, addCellElement, addColumnPrivilegeControl, addFloatElement, addRowPrivilegeControl, bringFloatElementForward, bringFloatElementToFront, cacheCellElement, cellIterator, cloneWithoutCellCase, cloneWithoutCellCase, floatIterator, getCellCase, getCellElement, getCellTableDataSet, getCellValue, getColumn, getColumnCount, getColumnPrivilegeControl, getColumnWidth, getColumnWidthList_DEC, getFloatElement, getReportPageAttr, getRow, getRowCount, getRowHeight, getRowHeightList_DEC, getRowPrivilegeControl, intersect, merge, prepare2ShrinkRealWidthOrHeight4Cell, recalculateCellCase, releaseCellElementCache, removeAllCellElements, removeAllFloatElements, removeCellElement, removeCellElement, removeColumnPrivilegeControl, removeFloatElement, removeFloatElement, removeRowPrivilegeControl, sendFloatElementBackward, sendFloatElementToBack, setCellCase, setCellValue, setColumnWidthList_DEC, setReportPageAttr, setRowHeightList_DEC, shrinkTOFitColumnWidthForCellElement, shrinkToFitPaper, shrinkTOFitRowHeightForCellElement, writeCommonXML, writeReportPageAttrXML
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHorizontalLine, getVerticalLine
addColumnPrivilegeControl, addRowPrivilegeControl, getColumnPrivilegeControl, getColumnWidthList_DEC, getRowHeightList_DEC, getRowPrivilegeControl, prepare2ShrinkRealWidthOrHeight4Cell, removeColumnPrivilegeControl, removeRowPrivilegeControl, setReportPageAttr, shrinkTOFitColumnWidthForCellElement, shrinkToFitPaper, shrinkTOFitRowHeightForCellElement
getCellElement, getCellValue, getColumn, intersect, merge, removeAllCellElements, removeCellElement, setCellValue
addFloatElement, bringFloatElementForward, bringFloatElementToFront, getFloatElement, removeAllFloatElements, removeFloatElement, removeFloatElement, sendFloatElementBackward, sendFloatElementToBack
getReportPageAttr
cellIterator, getColumnCount, getColumnWidth, getRow, getRowCount, getRowHeight
floatIterator
public java.lang.String getBlockName()
getBlockName
在接口中 Block
public void setBlockName(java.lang.String blockName)
setBlockName
在接口中 Block
blockName
- public PolyBlockAttr getBlockAttr()
getBlockAttr
在接口中 Block
public void setBlockAttr(PolyBlockAttr blockAttr)
setBlockAttr
在接口中 TemplateBlock
blockAttr
- public void setRowHeight(int row, UNIT newValue)
setRowHeight
在接口中 CellElementCase
setRowHeight
在接口中 ElementCase
setRowHeight
在类中 AbstractElementCase
row
- newValue
- public void setColumnWidth(int column, UNIT newValue)
setColumnWidth
在接口中 CellElementCase
setColumnWidth
在接口中 ElementCase
setColumnWidth
在类中 AbstractElementCase
column
- newValue
- public PolyWorkSheet getWorksheet()
public void setWorksheet(PolyWorkSheet worksheet)
public void insertRow(int rowIndex)
insertRow
在接口中 CellElementCase
insertRow
在类中 AbstractElementCase
rowIndex
- 行序号public void removeRow(int rowIndex)
removeRow
在接口中 CellElementCase
removeRow
在类中 AbstractElementCase
rowIndex
- 行序号public void insertColumn(int columnIndex)
insertColumn
在接口中 CellElementCase
insertColumn
在类中 AbstractElementCase
columnIndex
- 列序号public void removeColumn(int columnIndex)
removeColumn
在接口中 CellElementCase
removeColumn
在类中 AbstractElementCase
columnIndex
- 列序号public UnitRectangle getBounds()
public void setBounds(UnitRectangle bounds)
public void setBounds(UnitRectangle bounds, PolyWorkSheet sheet)
TemplateBlock
setBounds
在接口中 TemplateBlock
bounds
- 新的大小位置sheet
- 块所在的sheetpublic void reCalculateBlockSize()
public SheetExecutor createExecutor(TemplateReport report, java.util.Map parameterMap, BlockSequenceExecutor bExecuter)
createExecutor
在接口中 TemplateBlock
report
- 当前报表parameterMap
- 参数mapbExecuter
- 块计算器protected abstract SheetExecutor createSheetExecutor(TemplateReport report, AbstractPolyECBlock block, java.util.Map parameterMap, BlockSequenceExecutor bExecuter)
public void addCellElement(TemplateCellElement cell)
addCellElement
在接口中 TemplateElementCase
cell
- 指定的单元格public void addCellElement(TemplateCellElement cell, boolean override)
addCellElement
在接口中 TemplateElementCase
cell
- 指定的单元格override
- 是否覆盖添加public boolean removeCellElement(TemplateCellElement cell)
removeCellElement
在接口中 TemplateElementCase
cell
- 指定的单元格public TemplateCellElement getTemplateCellElement(int column, int row)
getTemplateCellElement
在接口中 TemplateElementCase
column
- the column.row
- the row.public TemplateCellElement removeTemplateCellElement(int column, int row)
removeTemplateCellElement
在接口中 TemplateElementCase
column
- 指定的列row
- 指定的行protected CellElement createDefaultCellElementCase()
public void firePropertyChange()
firePropertyChange
在接口中 OB
public void addPropertyListener(PropertyChangeListener l)
addPropertyListener
在接口中 OB
l
- 监听事件public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
readXML
在类中 AbstractElementCase
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
XMLWriter
writeXML
在接口中 XMLWriter
writeXML
在类中 AbstractElementCase
writer
- XML写入对象public void cloneWithoutCellCase(ResultECBlock resBlock) throws java.lang.CloneNotSupportedException
resBlock
- 需要改变的blockjava.lang.CloneNotSupportedException
public void copyTo(AbstractPolyECBlock toBlock)
toBlock
- 被改变的blockpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 AbstractElementCase
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public boolean equals(java.lang.Object o)
equals
在类中 AbstractElementCase