类 Component
java.lang.Object
com.sh.wf.module.component.Component
- 所有已实现的接口:
ComponentExport_I,Serializable,Cloneable
- 直接已知子类:
AiAgent,AMap,ArcGISMap,ArcGISMap_Sxyjwz,BMap,Button,CarouselItem,CarouselPanel,Cascader,ChartBase,CheckboxRadioBase,ColorPicker,ColorPickerLay,ContextMenuItem,Date,EChartBasePre,Editor,Editor_UE,Embed,FileUpload,Html,HTWeb,LayoutBase,Maptalks,Media,NumAim,OLMap,PageBubble,PageJasperReport,PopCheckbox,PopRadio,ProgressBar,ProgressBar_20170831,QQMap,Select,Select2,Self,ShowFlow,StarScore,Tab,Table,TabPanel,Td,Text,Textarea,TextInput,TMap,Tr,Tree
public abstract class Component
extends Object
implements Cloneable, Serializable, ComponentExport_I
Description:
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- 2015年1月12日
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明protected booleanprotected AuthInfoprotected booleanprotected booleanprotected Stringprotected Stringprotected ContextMenuprotected DictAttrprotected Stringprotected EventAttrprotected doubleprotected Stringprotected Stringprotected booleanprotected booleanprotected booleanprotected ModuleDataprotected PageRuleAttrprotected Componentprotected LayoutBaseprotected Stringprotected Stringprotected intprotected intprotected SelfAttrprotected Stringprotected Stringprotected Stringprotected Stringprotected booleanprotected TimerAttrprotected doubleprotected Stringprotected doubleprotected double -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddComponent(Component component) voidaddRowIdAttr(ModuleContext context, StringBuilder html) intautoCalWidth(ModuleContext context) booleanbeforeCheckSaveDsCol2(ModuleContext context, Object value1, Object value2) 检查数据列2是否进行保存,因为针对select组件,如果未选择时,应该不保存文本描述值,在DictAttr中调用voidcommonParser(ModuleParserContext context, org.jdom2.Element nodeEl) protected String获取自动编号voiddoExport(ModuleContext context) 导出操作voiddoExportCSV(ModuleContext context) 导出CSV文件getCflag()getExValue(String attrName) 获取扩展自定义数据doublegetH1()getId()longgetName()getName(ModuleContext context) 子组件需要添加的属性,比如:如设置组件的边框,则需要父窗口来进行设置getRowId(ModuleContext context) getSaveDsCol2Name(ModuleContext context) 获取保存数据列2对应的表单namegetSid()getStyle()getSubCallExUrlFull(ModuleContext context) 获取完整的URLgetSubLoadUrl(ModuleContext context) 获取动态加载URLdoublegetW1()getWrapBegin(ModuleContext context) 组件装饰开始,这一定要是一对操作getWrapEnd(ModuleContext context) 组件装饰结束,这一定要是一对操作doublegetX1()doublegetY1()booleanboolean判断是否数组,在保存的时候用到booleanprotected boolean判断是否在页面显示,用于计算占用宽度booleanisSeqUnique(boolean defaultValue) 是否生成唯一的编号booleanbooleanisUsePosition(ModuleContext context) 是否占位,比如:垂直组件中包含一个隐藏的水平组件,但是垂直组件也会生成一个tr占位booleanisVisible(ModuleContext context) 是否可见voidnotifyParserChildComponent(ModuleParserContext context, Component childComponent, org.jdom2.Element nodeEl) 通过你级组件解析子组件特殊内容,比如:画布组件abstract voidparser(ModuleParserContext context, org.jdom2.Element nodeEl) protected voidparserExData(org.jdom2.Element nodeEl, String attrName) protected StringprocessQueryParam(ModuleContext context) 已过时。voidrenderAfter(ModuleContext context, StringBuilder html, String defaultValue, String realId, String fullSelector) voidrenderAfter(ModuleContext context, StringBuilder html, String defaultValue, String realId, String selector, String fullSelector) voidrenderBefore(ModuleContext context, StringBuilder html) 组件执行前执行voidsetAutoLoad(boolean isAutoLoad) voidsetComponentType(String componentType) protected voidvoidvoidsetModuleData(ModuleData moduleData) voidvoidsetParentLayout(LayoutBase parentLayout) voidsetRuleShowHidden(boolean isShow) 在页面规则满足要求是调用voidsetShowComponentFlag(boolean isShowComponentFlag) voidabstract StringtoHtml(ModuleContext context) 转化为HTML代码toHtml2(ModuleContext context) toMobileHtml(ModuleContext context) 转化为移动手机端的HTML代码toWrapHtml(ModuleContext context) 获取组件装饰后的
-
字段详细资料
-
attrMap
-
idOri
-
id
-
sid
-
selfFlag
-
autoId
protected boolean autoId -
moduleData
-
style
-
pstyle
-
beginHtml
-
endHtml
-
isAutoLoad
protected boolean isAutoLoad -
tagWrap
protected boolean tagWrap -
childComponentList
-
eventAttr
-
autoTriggerEvent
protected boolean autoTriggerEvent -
dictAttr
-
pageRuleAttr
-
selfAttr
-
timerAttr
-
authInfo
-
contextMenu
-
parent
-
parentLayout
-
parentTableId
-
__initHidden
protected boolean __initHidden -
x1
protected double x1 -
y1
protected double y1 -
w1
protected double w1 -
h1
protected double h1 -
seqType
-
exDataMap
-
isShowComponentFlag
protected boolean isShowComponentFlag -
wrapComponent
-
cflag
-
ruleShowHideTotal
protected int ruleShowHideTotal -
ruleLastShowHide
protected int ruleLastShowHide -
isRulePageShow
protected boolean isRulePageShow
-
-
构造器详细资料
-
Component
public Component()
-
-
方法详细资料
-
parser
-
getSaveDsCol2Name
获取保存数据列2对应的表单name- 参数:
context- ModuleContext对象- 返回:
- 数据列2对应的表单name
-
beforeCheckSaveDsCol2
检查数据列2是否进行保存,因为针对select组件,如果未选择时,应该不保存文本描述值,在DictAttr中调用- 参数:
context- ModuleContextvalue1- value1value2- value2- 返回:
- true|false
-
getWrapBegin
组件装饰开始,这一定要是一对操作- 参数:
context-- 返回:
-
getWrapEnd
组件装饰结束,这一定要是一对操作- 参数:
context-- 返回:
-
isArrayRequestParam
public boolean isArrayRequestParam()判断是否数组,在保存的时候用到- 返回:
- 结果
-
setId
-
getSid
-
addComponent
-
getStyle
-
getParent
-
setParent
-
getParentLayout
-
autoCalWidth
-
setParentLayout
-
setStyle
-
toHtml
转化为HTML代码- 参数:
context- ModuleContext- 返回:
- html
-
toWrapHtml
获取组件装饰后的- 参数:
context-- 返回:
-
addRowIdAttr
-
getRowId
-
toMobileHtml
转化为移动手机端的HTML代码- 参数:
context- ModuleContext- 返回:
- html
-
toHtml2
-
getParentLayoutStyle
子组件需要添加的属性,比如:如设置组件的边框,则需要父窗口来进行设置- 返回:
- 样式
-
setModuleData
-
getModuleData
-
renderBefore
组件执行前执行- 参数:
context-html-
-
renderAfter
public void renderAfter(ModuleContext context, StringBuilder html, String defaultValue, String realId, String fullSelector) -
isPageShow
protected boolean isPageShow()判断是否在页面显示,用于计算占用宽度- 返回:
-
setRuleShowHidden
public void setRuleShowHidden(boolean isShow) 在页面规则满足要求是调用- 参数:
isShow-
-
renderAfter
public void renderAfter(ModuleContext context, StringBuilder html, String defaultValue, String realId, String selector, String fullSelector) -
isAutoLoad
public boolean isAutoLoad() -
setAutoLoad
public void setAutoLoad(boolean isAutoLoad) -
getId
- 指定者:
getId在接口中ComponentExport_I
-
getName
-
getName
-
getEventAttr
-
getSubLoadUrl
获取动态加载URL- 参数:
context- ModuleContext- 返回:
- url
-
getSubCallExUrlFull
获取完整的URL- 参数:
context- ModuleContext- 返回:
- URL
-
processQueryParam
已过时。 -
getComponentContext
-
isVisible
是否可见- 参数:
context- ModuleContext- 返回:
- 结果
-
isUsePosition
是否占位,比如:垂直组件中包含一个隐藏的水平组件,但是垂直组件也会生成一个tr占位- 参数:
context- ModuleContext- 返回:
- true|false
-
getDictAttr
-
getComponentType
-
setComponentType
-
getSelfAttr
-
doExportCSV
从接口复制的说明:ComponentExport_I导出CSV文件- 指定者:
doExportCSV在接口中ComponentExport_I- 参数:
context- ModuleContext
-
doExport
导出操作- 指定者:
doExport在接口中ComponentExport_I- 参数:
context- ModuleContext
-
createAutoId
获取自动编号- 返回:
-
is__initHidden
public boolean is__initHidden() -
getPstyle
-
getX1
public double getX1() -
getY1
public double getY1() -
getW1
public double getW1() -
getH1
public double getH1() -
getMcuuid
public long getMcuuid() -
getExValue
获取扩展自定义数据- 参数:
attrName- 属性名称- 返回:
- 值
-
isSeqUnique
public boolean isSeqUnique(boolean defaultValue) 是否生成唯一的编号- 参数:
defaultValue- 默认值- 返回:
- true|false
-
getBeginHtml
-
getEndHtml
-
getCflag
-
commonParser
-
notifyParserChildComponent
public void notifyParserChildComponent(ModuleParserContext context, Component childComponent, org.jdom2.Element nodeEl) 通过你级组件解析子组件特殊内容,比如:画布组件- 参数:
context-childComponent-nodeEl-
-
parserExData
-
setExData
-
getAuthInfo
-
isShowComponentFlag
public boolean isShowComponentFlag() -
setShowComponentFlag
public void setShowComponentFlag(boolean isShowComponentFlag) -
getSelfFlag
-