public class ElementCaseEditor extends AbstractBorderStyleWidget implements FormHyperlinkEditor, DependenceProvider, ElementCaseEditorProvider, ResizableElement
background, borderStyle, margin
AFTEREDIT, AFTERINIT, BEFOREEDIT, CHANGE, DEFAULT_FONT_SIZE, disabled, EVENT_CLICK, EVENT_STATECHANGE, invisible, STOPEDIT, widgetName, XML_TAG
构造器和说明 |
---|
ElementCaseEditor()
构造函数, 初始化ElementCase
|
限定符和类型 | 方法和说明 |
---|---|
void |
addAttrMark(IOFileAttrMark attrMark)
已过时。
保留兼容
|
boolean |
batchRenameTdName(java.util.Map<java.lang.String,java.lang.String> tdNames)
批量重命名数据集引用
|
boolean |
canCurrentMarginAvailable(PaddingMargin margin)
当前设置的边距值是否可用,若设置后有控件达到最小尺寸则返回false
|
java.lang.Object |
clone() |
static ElementCaseEditor |
createEC4Chart(Widget widget,
int width,
int height,
java.awt.image.BufferedImage bufImage)
图片转报表块
|
JSONObject |
createJSONConfig(Repository repo,
Calculator c,
NodeVisitor nodeVisitor)
以JSONObject方式返回Widget的配置信息
|
void |
createValueResult(DataControl widget,
Calculator widgetCalculator,
JSONObject widgetResult,
JSONObject attrSourceCache)
生成结果值
|
java.lang.String[] |
dependence(CalculatorProvider ca)
获取当前对象对参数的依赖关系
|
<T extends IOFileAttrMark> |
getAttrMark(java.lang.String tagName)
已过时。
|
int |
getContentHeight() |
int |
getContentWidth() |
java.awt.image.BufferedImage |
getECImage()
获取设计器里的报表块缩略图
|
FormElementCaseProvider |
getElementCase()
获取当前报表块
|
int |
getFitStateInPC() |
double |
getHeightPercent()
获得设置的最大高度比
|
MobileFitAttrState |
getHorziontalAttr() |
RefreshAttrProvider |
getRefreshAttr() |
ReportFitAttr |
getReportFitAttr()
获取报表块自适应属性.
|
FormToolBarManager[] |
getToolBars()
是否显示报表组件工具栏
|
int[] |
getValueType() |
MobileFitAttrState |
getVerticalAttr() |
java.lang.String |
getXType()
控件xType,每个控件的特有标记和控件一一对应
|
boolean |
isAllowFullScreen() |
boolean |
isEditor()
是否是一个不需要在填报状态直接显示的编辑器
|
boolean |
isHeightRestrict()
是否显示手机高度限制显示工具栏
|
void |
readXML(XMLableReader reader)
Read XML.
|
boolean |
renameTableData(java.lang.String oldName,
java.lang.String newName)
重命名数据集
|
void |
resize(double width,
double height,
double fontScale)
重新调整大小
|
void |
scaleFontSize(double scale,
FormElementCaseProvider resultSheetProvider) |
void |
setAllowFullScreen(boolean allowFullScreen) |
void |
setECImage(java.awt.image.BufferedImage background)
设置缩略图
|
void |
setElementCase(FormElementCaseProvider workbook)
设置当前报表块
|
void |
setFitStateInPC(int fitStateInPC) |
void |
setHeightPercent(double heightPercent)
设置最大高度比例
|
void |
setHeightRestrict(boolean heightRestrict)
设置是否显示限制项
|
void |
setHorziontalAttr(MobileFitAttrState horziontalAttr) |
void |
setRefreshAttr(RefreshAttrProvider refreshAttr) |
void |
setReportFitAttr(ReportFitAttr fitAttr) |
void |
setReportFitInPc(int reportFitInPc)
设置表单自适应属性,为了让新建报表块显示属性为表单的自适应属性
|
void |
setToolBars(FormToolBarManager[] toolBars)
设置是否显示工具栏
|
void |
setVerticalAttr(MobileFitAttrState verticalAttr) |
java.lang.String[] |
supportedEvents()
支持事件
|
void |
toImage(Calculator ca,
java.awt.Rectangle rec,
java.awt.Graphics g)
将当前控件转化为图片, 目前支持报表块与图表块
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
addWidgetAttrMark, clearMargin, getBackground, getBorderStyle, getMargin, getWidgetAttrMark, readExtra, setBackground, setBorderStyle, setBorderStyleNoBackground, setMargin
acceptType, changeOnlyVisibleAuthorityState, changeUsableAuthorityState, changeVisibleAuthorityState, cleanAuthority, dealInvisible, dealWithPresentableValue, equals, getDescription, getDisableAction, getEnableAction, getInvisibleAction, getLabelName, getVisibleAction, getWidgetName, getWidgetPrivilegeControl, hasDataOnInit, hashCode, isChartRelated, isDirtyWidget, isDoneUsableAuthority, isDoneVisibleAuthority, isEnabled, isUsableAuthority, isVisible, isVisibleAuthority, resize, setChartRelated, setDescription, setEnabled, setLabelName, setVisible, setWidgetName, setWidgetPrivilegeControl, supportMobile, toImage, toString, updateChildBounds, value2Config
addListener, clearListeners, createJSONListener, createListeners, dealWithListener4Compatible, getConvertMap, getListener, getListenerSize
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
getWidgetName
public static ElementCaseEditor createEC4Chart(Widget widget, int width, int height, java.awt.image.BufferedImage bufImage)
widget
- width
- height
- bufImage
- public RefreshAttrProvider getRefreshAttr()
public void setRefreshAttr(RefreshAttrProvider refreshAttr)
public java.awt.image.BufferedImage getECImage()
public void setECImage(java.awt.image.BufferedImage background)
public MobileFitAttrState getHorziontalAttr()
public void setHorziontalAttr(MobileFitAttrState horziontalAttr)
public MobileFitAttrState getVerticalAttr()
public void setVerticalAttr(MobileFitAttrState verticalAttr)
public java.lang.String getXType()
Widget
getXType
在类中 AbstractBorderStyleWidget
public boolean isHeightRestrict()
public void setHeightRestrict(boolean heightRestrict)
heightRestrict
- 是否显示限制选项public boolean isAllowFullScreen()
public void setAllowFullScreen(boolean allowFullScreen)
public double getHeightPercent()
public void setHeightPercent(double heightPercent)
heightPercent
- 高度比例public FormToolBarManager[] getToolBars()
public void setToolBars(FormToolBarManager[] toolBars)
toolBars
- 工具栏public void setReportFitInPc(int reportFitInPc)
reportFitInPc
- 表单自适应属性值public int getFitStateInPC()
public void setFitStateInPC(int fitStateInPC)
public ReportFitAttr getReportFitAttr()
ElementCaseEditorProvider
getReportFitAttr
在接口中 ElementCaseEditorProvider
public void setReportFitAttr(ReportFitAttr fitAttr)
public boolean isEditor()
isEditor
在类中 AbstractBorderStyleWidget
public java.lang.String[] supportedEvents()
supportedEvents
在类中 AbstractBorderStyleWidget
public FormElementCaseProvider getElementCase()
getElementCase
在接口中 ElementCaseEditorProvider
public void setElementCase(FormElementCaseProvider workbook)
public void resize(double width, double height, double fontScale)
public void scaleFontSize(double scale, FormElementCaseProvider resultSheetProvider)
public int getContentHeight()
getContentHeight
在类中 Widget
public int getContentWidth()
getContentWidth
在类中 Widget
public void readXML(XMLableReader reader)
Widget
readXML
在接口中 XMLReadable
readXML
在类中 AbstractBorderStyleWidget
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
Widget
writeXML
在接口中 XMLWriter
writeXML
在类中 AbstractBorderStyleWidget
writer
- the PrintWriter.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 AbstractBorderStyleWidget
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public void toImage(Calculator ca, java.awt.Rectangle rec, java.awt.Graphics g)
public JSONObject createJSONConfig(Repository repo, Calculator c, NodeVisitor nodeVisitor) throws JSONException
createJSONConfig
在类中 AbstractBorderStyleWidget
repo
- 参数repoc
- 指定解析器nodeVisitor
- 查找JSONException
- 异常public int[] getValueType()
DataControl.getValueType()
public void createValueResult(DataControl widget, Calculator widgetCalculator, JSONObject widgetResult, JSONObject attrSourceCache)
widget
- 控件对象widgetCalculator
- 算子widgetResult
- 控件值attrSourceCache
- 缓存public java.lang.String[] dependence(CalculatorProvider ca)
dependence
在接口中 DependenceProvider
ca
- 当前线程的算子public boolean canCurrentMarginAvailable(PaddingMargin margin)
canCurrentMarginAvailable
在类中 AbstractBorderStyleWidget
margin
- 边距public void addAttrMark(IOFileAttrMark attrMark)
attrMark
- 额外的属性对象public <T extends IOFileAttrMark> T getAttrMark(java.lang.String tagName)
T
- 对象类型tagName
- 标签名public boolean batchRenameTdName(java.util.Map<java.lang.String,java.lang.String> tdNames)
tdNames
- 新旧数据集名称的mappublic boolean renameTableData(java.lang.String oldName, java.lang.String newName)
oldName
- 老名字newName
- 新名字