类 Button
java.lang.Object
com.sh.wf.module.component.Component
com.sh.wf.module.component.page.Button
- 所有已实现的接口:
ComponentExport_I,ComponentLoad_I,Serializable,Cloneable
- 直接已知子类:
Image,LinkButton,Matrix
Description: 按钮
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- 2015年1月16日
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明protected intprotected booleanprotected Stringprotected intprotected intprotected String从类继承的字段 com.sh.wf.module.component.Component
__initHidden, attrMap, authInfo, autoId, autoTriggerEvent, beginHtml, cflag, childComponentList, contextMenu, dictAttr, endHtml, eventAttr, exDataMap, h1, id, idOri, isAutoLoad, isRulePageShow, isShowComponentFlag, moduleData, pageRuleAttr, parent, parentLayout, parentTableId, pstyle, ruleLastShowHide, ruleShowHideTotal, selfAttr, selfFlag, seqType, sid, style, tagWrap, timerAttr, w1, wrapComponent, x1, y1 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intautoCalWidth(ModuleContext context) 计算页面宽度callExFunc(ModuleContext context) 组件扩展执行方法,比如:在组件上执行某些操作后,再次请求后台的情况getButtonHtml(ModuleContext context, StringBuilder html, String id, String className, String valueOri, String value, String onClick, String extHtml) 获取按钮HTML子组件需要添加的属性,比如:如设置组件的边框,则需要父窗口来进行设置protected boolean判断是否在页面显示,用于计算占用宽度 注意:这是覆盖父类的方法,在页面规则执行完后即调用,其他地方应该使用this.isRulePageShow来判断voidparser(ModuleParserContext context, org.jdom2.Element nodeEl) toHtml(ModuleContext context) 转化为HTML代码toLoadHtml(ModuleContext context) 控件延迟加载toMobileHtml(ModuleContext context) 转化为移动手机端的HTML代码从类继承的方法 com.sh.wf.module.component.Component
addComponent, addRowIdAttr, beforeCheckSaveDsCol2, commonParser, createAutoId, doExport, doExportCSV, getAuthInfo, getBeginHtml, getCflag, getComponentContext, getComponentType, getDictAttr, getEndHtml, getEventAttr, getExValue, getH1, getId, getMcuuid, getModuleData, getName, getName, getParent, getParentLayout, getPstyle, getRowId, getSaveDsCol2Name, getSelfAttr, getSelfFlag, getSid, getStyle, getSubCallExUrlFull, getSubLoadUrl, getW1, getWrapBegin, getWrapEnd, getX1, getY1, is__initHidden, isArrayRequestParam, isAutoLoad, isSeqUnique, isShowComponentFlag, isUsePosition, isVisible, notifyParserChildComponent, parserExData, processQueryParam, renderAfter, renderAfter, renderBefore, setAutoLoad, setComponentType, setExData, setId, setModuleData, setParent, setParentLayout, setRuleShowHidden, setShowComponentFlag, setStyle, toHtml2, toWrapHtml从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.sh.wf.module.component.ComponentLoad_I
getId
-
字段详细资料
-
renderValue
-
calWidthOffset
protected int calWidthOffset -
systemAttr
-
layoutStyle
-
initHidden
protected boolean initHidden -
paddingRight
protected int paddingRight -
paddingLeft
protected int paddingLeft
-
-
构造器详细资料
-
Button
public Button()
-
-
方法详细资料
-
toHtml
从类复制的说明:Component转化为HTML代码 -
toLoadHtml
从接口复制的说明:ComponentLoad_I控件延迟加载- 指定者:
toLoadHtml在接口中ComponentLoad_I- 参数:
context- ModuleContext- 返回:
- 加载的HTML
-
callExFunc
从接口复制的说明:ComponentLoad_I组件扩展执行方法,比如:在组件上执行某些操作后,再次请求后台的情况- 指定者:
callExFunc在接口中ComponentLoad_I- 参数:
context- ModuleContext- 返回:
- 脚本
-
toMobileHtml
从类复制的说明:Component转化为移动手机端的HTML代码- 覆盖:
toMobileHtml在类中Component- 参数:
context- ModuleContext- 返回:
- html
-
autoCalWidth
计算页面宽度- 覆盖:
autoCalWidth在类中Component
-
isPageShow
protected boolean isPageShow()判断是否在页面显示,用于计算占用宽度 注意:这是覆盖父类的方法,在页面规则执行完后即调用,其他地方应该使用this.isRulePageShow来判断- 覆盖:
isPageShow在类中Component- 返回:
-
parser
-
getParentLayoutStyle
从类复制的说明:Component子组件需要添加的属性,比如:如设置组件的边框,则需要父窗口来进行设置- 覆盖:
getParentLayoutStyle在类中Component- 返回:
- 样式
-
getSystemAttr
-
getButtonHtml
public String getButtonHtml(ModuleContext context, StringBuilder html, String id, String className, String valueOri, String value, String onClick, String extHtml) 获取按钮HTML- 参数:
context- ModuleContexthtml- StringBuilderid- StringclassName- 样式,在非图片button时有效value- 值onClick- 单击事件extHtml- 自定义- 返回:
- String
-