public class WriteCellWriter extends EditableCellWriter
cellGUIAttr, cellHeight, cellWidth, heavy, isUseLightHeavyTD, repo, reportIndex, reportSettings, resTag, tableID| 构造器和说明 |
|---|
WriteCellWriter(Repository repo,
int reportIndex,
CalculatableReport report) |
WriteCellWriter(Repository repo,
int reportIndex,
ReportSettingsProvider reportSettings,
CalculatableReport report) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addEditAttr2Tag(WebReportCase reportCase,
Widget wi,
java.lang.String config,
CellElement cell) |
protected Tag |
dealWithHyperlinkGroup(CellElement ce,
Tag tag) |
protected void |
displayNormalText(CellElement ce,
java.lang.Object displayValue,
Tag valueWrapper,
int valueWrapperHeight)
填报直接展示控件的时候,不需要展示值,只需要展示控件本身
|
protected java.lang.Object |
getDisplayValue(CellElement cell,
java.lang.Object rawValue) |
int |
getHeightOfValueWrapper(CellElement box)
填报直接显示控件的时候高度不需要减去边框(这边+1是为了抵掉调用者的-1操作意在返回cellheight原值)
|
protected Widget |
getWidgetOfCell(CellElement cell) |
protected boolean |
isVisible(HtmlWriteCellBox box) |
protected void |
processNoneWidget(WebReportCase reportCase,
CellElement cell,
java.lang.Object rawValue,
ColumnRow position,
Calculator c) |
protected void |
processOtherAttributes(HtmlWriteCellBox box,
Calculator ca) |
protected void |
processWidget(WebReportCase reportCase,
CellElement cell,
Widget wi,
java.lang.Object rawValue,
ColumnRow position,
Calculator c) |
void |
setShowWidgetAttr(WebReportCase reportCase)
设置是否直接显示控件(只有填报需要用到)
|
protected boolean |
shouldBeDisplayAsVerticalText(CellElement ce,
Style style,
java.lang.Object displayValue)
当设置为直接显示控件且单元格存在可见控件时无需以图片形式展示单元格值
|
protected boolean |
shouldDrawBackground(HtmlWriteCellBox box) |
boolean |
skipValueWrapper(CellElement ce)
填报页面的格子设置了自动调整为否的话 如果有btn控件 会多个div导致高度变高
判断格子是否需要放入调整高度的div中
|
columnRowPosition, getColumnRowOfBox, processFormula, processUnwrappedRawValue, shouldDrawContent, writeFMInfo, writeLocationIDanyElse, calculateRawValue, calculateRawValue, cell2Tag, dealBeforeDrawContent, dealContent, dealWithEmptyHeight, dealWithValue4Formula, displayVerticalText, drawContent, getHtmlValue, getRawValue, getReportIndex, getTableID, getTitleTag, isHeavy, isQuickModel, isUseLightHeavyTD, makeSureCellGUIAttrNotEmpty, mayHideTailRows, painterAsImage, retriveCellElementPositions, setHeavy, setQuickModel, setTableID, setTablePosition, setUseLightHeavyTD, showUseHeavy, unwrapLobs, widget2Config, widget2ConfigWithJSONStylepublic WriteCellWriter(Repository repo, int reportIndex, CalculatableReport report)
public WriteCellWriter(Repository repo, int reportIndex, ReportSettingsProvider reportSettings, CalculatableReport report)
protected boolean isVisible(HtmlWriteCellBox box)
isVisible 在类中 EditableCellWriterprotected boolean shouldDrawBackground(HtmlWriteCellBox box)
protected java.lang.Object getDisplayValue(CellElement cell, java.lang.Object rawValue)
getDisplayValue 在类中 CellHtmlWriterprotected Widget getWidgetOfCell(CellElement cell)
getWidgetOfCell 在类中 EditableCellWriterprotected void processWidget(WebReportCase reportCase, CellElement cell, Widget wi, java.lang.Object rawValue, ColumnRow position, Calculator c)
processWidget 在类中 CellHtmlWriterprotected void processNoneWidget(WebReportCase reportCase, CellElement cell, java.lang.Object rawValue, ColumnRow position, Calculator c)
processNoneWidget 在类中 CellHtmlWriterprotected void addEditAttr2Tag(WebReportCase reportCase, Widget wi, java.lang.String config, CellElement cell)
protected void processOtherAttributes(HtmlWriteCellBox box, Calculator ca)
public boolean skipValueWrapper(CellElement ce)
skipValueWrapper 在类中 CellHtmlWriterce - 当前格子public void setShowWidgetAttr(WebReportCase reportCase)
CellHtmlWritersetShowWidgetAttr 在类中 CellHtmlWriterpublic int getHeightOfValueWrapper(CellElement box)
getHeightOfValueWrapper 在类中 CellHtmlWriterbox - 单元格protected void displayNormalText(CellElement ce, java.lang.Object displayValue, Tag valueWrapper, int valueWrapperHeight)
displayNormalText 在类中 CellHtmlWriterce - 单元格displayValue - 展示的值valueWrapper - tag标签valueWrapperHeight - 高度protected boolean shouldBeDisplayAsVerticalText(CellElement ce, Style style, java.lang.Object displayValue)
protected Tag dealWithHyperlinkGroup(CellElement ce, Tag tag) throws JSONException
dealWithHyperlinkGroup 在类中 CellHtmlWriterJSONException