public abstract class AbstractCellElement extends java.lang.Object implements CellElement
限定符和类型 | 字段和说明 |
---|---|
protected OptionalAttribute |
optionalAttributes |
protected Style |
style |
protected java.lang.Object |
value |
构造器和说明 |
---|
AbstractCellElement() |
限定符和类型 | 方法和说明 |
---|---|
void |
changeAuthorityState(java.lang.String selectedRole,
boolean isVisible)
判断对应的角色的单元格的可见状态,是否做过权限编辑,若是做过权限编辑,则加入都已经做过权限编辑的角色列表中
|
void |
changeNewValueAuthorityState(java.lang.String selectedRole,
boolean isChooseNewValue,
java.lang.Object newValue)
改变单元格新值权限编辑的状态
|
void |
cleanAuthority(java.lang.String selectedRole)
清楚对应角色的权限
|
java.lang.Object |
clone()
自定义克隆方法
|
CellElement |
clone(int column,
int row,
int columnSpan,
int rowSpan) |
protected abstract java.lang.Object |
dealWithSaveValue4Compatible(java.lang.Object value) |
CellElement |
deriveCellElement(int column,
int row)
得到具体行列的单元格对象
|
CellElement |
deriveCellElement(int column,
int row,
int columnSpan,
int rowSpan)
得到具体的单元格对象
|
void |
doExcelImportWithLeftSon(ResultECReport curReport,
CellElement ce,
int topCol,
int topRow,
int span)
excel导入
|
void |
doExcelImportWithUpSon(ResultECReport curReport,
CellElement ce,
int topCol,
int topRow,
int span)
excel导入
|
protected void |
ensureAttrNotShared() |
boolean |
equals(java.lang.Object o)
判断是否相等
|
CellExpandAttr |
getCellExpandAttr() |
CellGUIAttr |
getCellGUIAttr()
Gets the attributes of GUI.
|
protected abstract CellElementAttribute |
getCellGUIAttrAttr() |
CellPageAttr |
getCellPageAttr()
Gets the CellPageAttr.
|
CellPrivilegeControl |
getCellPrivilegeControl() |
java.lang.Object |
getCellWidgetAttr() |
NameJavaScriptGroup |
getNameHyperlinkGroup()
Gets NameHyperlinkGroup
|
protected abstract CellElementAttribute |
getNameHyperLinkGroupAttr() |
OptionalAttribute |
getOptionalAttributes() |
protected abstract CellElementAttribute |
getPageAttr() |
java.lang.Object |
getShowValue() |
Style |
getStyle()
获取单元格样式
|
java.lang.Object |
getValue()
获取单元格值
|
boolean |
isDoneAuthority(java.lang.String selectedRole)
判断对听的角色是否做过权限编辑,单元格的可见不可见的权限编辑
|
boolean |
isDoneNewValueAuthority(java.lang.String selectedRole)
该单元格该角色是否做过新值的权限控制
|
boolean |
isExist()
是否存在
|
boolean |
isReadyToDelete()
是否可以删除
|
java.lang.Object |
lightClone()
直接集成父类的clone
|
protected void |
putAttr(CellElementAttribute key,
java.lang.Object value) |
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
protected void |
removeAttr(CellElementAttribute attribute) |
void |
setCellGUIAttr(CellGUIAttr cellGUIAttr)
Sets the attributes of GUI.
|
void |
setCellPageAttr(CellPageAttr cellPageAttr)
Sets the CellPageAttr.
|
void |
setCellPrivilegeControl(CellPrivilegeControl cellPrivilegeControl) |
protected void |
setCompatibleWidget(Widget widget) |
void |
setNameHyperlinkGroup(NameJavaScriptGroup nameHyperlinkGroup)
Sets NameHyperlinkGroup
|
void |
setOptionalAttributes(OptionalAttribute em) |
void |
setStyle(Style style)
设置单元格样式
|
void |
setValue(java.lang.Object value)
设置单元格值
|
void |
writeCommonResultAttrXML(XMLPrintWriter writer)
写属性到xml文件里面
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setColumn, setColumnSpan, setRow, setRowSpan
getColumn, getColumnSpan, getRow, getRowSpan
protected Style style
protected OptionalAttribute optionalAttributes
protected transient java.lang.Object value
public java.lang.Object getValue()
getValue
在接口中 Elem
String
,
Boolean
,
Number
,
Date
,
BaseFormula
,
Report
,
Image
,
Painter
public void setValue(java.lang.Object value)
public java.lang.Object getShowValue()
getShowValue
在接口中 CellElement
public boolean isExist()
isExist
在接口中 CellElement
public void doExcelImportWithLeftSon(ResultECReport curReport, CellElement ce, int topCol, int topRow, int span)
doExcelImportWithLeftSon
在接口中 CellElement
curReport
- 模板ce
- 格子topCol
- 起始列topRow
- 起始行span
- 跨度public void doExcelImportWithUpSon(ResultECReport curReport, CellElement ce, int topCol, int topRow, int span)
doExcelImportWithUpSon
在接口中 CellElement
curReport
- 模板ce
- 格子topCol
- 起始列topRow
- 起始行span
- 跨度public boolean isReadyToDelete()
isReadyToDelete
在接口中 CellElement
public CellPrivilegeControl getCellPrivilegeControl()
getCellPrivilegeControl
在接口中 CellElement
public void setCellPrivilegeControl(CellPrivilegeControl cellPrivilegeControl)
public CellExpandAttr getCellExpandAttr()
getCellExpandAttr
在接口中 ShowAttrElem
public boolean isDoneAuthority(java.lang.String selectedRole)
isDoneAuthority
在接口中 Elem
selectedRole
- 角色名public boolean isDoneNewValueAuthority(java.lang.String selectedRole)
isDoneNewValueAuthority
在接口中 Elem
selectedRole
- 选择的角色public void changeAuthorityState(java.lang.String selectedRole, boolean isVisible)
changeAuthorityState
在接口中 Elem
selectedRole
- 角色名isVisible
- 单元格可见状态public void changeNewValueAuthorityState(java.lang.String selectedRole, boolean isChooseNewValue, java.lang.Object newValue)
changeNewValueAuthorityState
在接口中 Elem
selectedRole
- 角色名isChooseNewValue
- 新值复选框是否选中newValue
- 对应的新值public void cleanAuthority(java.lang.String selectedRole)
cleanAuthority
在接口中 Elem
selectedRole
- 角色名public Style getStyle()
getStyle
在接口中 StyleProvider
public void setStyle(Style style)
setStyle
在接口中 StyleProvider
style
- the new style.protected abstract CellElementAttribute getNameHyperLinkGroupAttr()
public NameJavaScriptGroup getNameHyperlinkGroup()
Elem
getNameHyperlinkGroup
在接口中 Elem
public void setNameHyperlinkGroup(NameJavaScriptGroup nameHyperlinkGroup)
Elem
setNameHyperlinkGroup
在接口中 Elem
protected void putAttr(CellElementAttribute key, java.lang.Object value)
protected void removeAttr(CellElementAttribute attribute)
protected abstract CellElementAttribute getCellGUIAttrAttr()
public CellGUIAttr getCellGUIAttr()
ShowAttrElem
getCellGUIAttr
在接口中 ShowAttrElem
public void setCellGUIAttr(CellGUIAttr cellGUIAttr)
ShowAttrElem
setCellGUIAttr
在接口中 ShowAttrElem
protected abstract CellElementAttribute getPageAttr()
public CellPageAttr getCellPageAttr()
ShowAttrElem
getCellPageAttr
在接口中 ShowAttrElem
public java.lang.Object getCellWidgetAttr()
public void setCellPageAttr(CellPageAttr cellPageAttr)
ShowAttrElem
setCellPageAttr
在接口中 ShowAttrElem
cellPageAttr
- the new CellPageAttr.protected void ensureAttrNotShared()
public OptionalAttribute getOptionalAttributes()
public void setOptionalAttributes(OptionalAttribute em)
public CellElement deriveCellElement(int column, int row)
deriveCellElement
在接口中 CellElement
column
- 列row
- 行public CellElement deriveCellElement(int column, int row, int columnSpan, int rowSpan)
deriveCellElement
在接口中 CellElement
column
- 列row
- 行columnSpan
- 列数rowSpan
- 行数public CellElement clone(int column, int row, int columnSpan, int rowSpan) throws java.lang.CloneNotSupportedException
clone
在接口中 CellElement
java.lang.CloneNotSupportedException
public java.lang.Object lightClone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- 异常public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 CellElement
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
- 异常public void writeCommonResultAttrXML(XMLPrintWriter writer)
writeCommonResultAttrXML
在接口中 CellElement
writer
- 写的writerpublic void writeXML(XMLPrintWriter writer)
XMLWriter
protected void setCompatibleWidget(Widget widget)
protected abstract java.lang.Object dealWithSaveValue4Compatible(java.lang.Object value)
public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
reader
- XML读取对象XMLableReader
public boolean equals(java.lang.Object o)
equals
在类中 java.lang.Object