类 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

public class Button extends Component implements ComponentLoad_I

Description: 按钮

Title:首亨软件 - TSS/CRM等

从以下版本开始:
2015年1月16日
另请参阅:
  • 字段详细资料

    • renderValue

      protected String renderValue
    • calWidthOffset

      protected int calWidthOffset
    • systemAttr

      public ButtonLogicAttr systemAttr
    • layoutStyle

      protected String layoutStyle
    • initHidden

      protected boolean initHidden
    • paddingRight

      protected int paddingRight
    • paddingLeft

      protected int paddingLeft
  • 构造器详细资料

    • Button

      public Button()
  • 方法详细资料

    • toHtml

      public String toHtml(ModuleContext context)
      从类复制的说明: Component
      转化为HTML代码
      指定者:
      toHtml 在类中 Component
      参数:
      context - ModuleContext
      返回:
      html
    • toLoadHtml

      public String toLoadHtml(ModuleContext context)
      从接口复制的说明: ComponentLoad_I
      控件延迟加载
      指定者:
      toLoadHtml 在接口中 ComponentLoad_I
      参数:
      context - ModuleContext
      返回:
      加载的HTML
    • callExFunc

      public String callExFunc(ModuleContext context)
      从接口复制的说明: ComponentLoad_I
      组件扩展执行方法,比如:在组件上执行某些操作后,再次请求后台的情况
      指定者:
      callExFunc 在接口中 ComponentLoad_I
      参数:
      context - ModuleContext
      返回:
      脚本
    • toMobileHtml

      public String toMobileHtml(ModuleContext context)
      从类复制的说明: Component
      转化为移动手机端的HTML代码
      覆盖:
      toMobileHtml 在类中 Component
      参数:
      context - ModuleContext
      返回:
      html
    • autoCalWidth

      public int autoCalWidth(ModuleContext context)
      计算页面宽度
      覆盖:
      autoCalWidth 在类中 Component
    • isPageShow

      protected boolean isPageShow()
      判断是否在页面显示,用于计算占用宽度 注意:这是覆盖父类的方法,在页面规则执行完后即调用,其他地方应该使用this.isRulePageShow来判断
      覆盖:
      isPageShow 在类中 Component
      返回:
    • parser

      public void parser(ModuleParserContext context, org.jdom2.Element nodeEl)
      指定者:
      parser 在类中 Component
    • getParentLayoutStyle

      public String getParentLayoutStyle()
      从类复制的说明: Component
      子组件需要添加的属性,比如:如设置组件的边框,则需要父窗口来进行设置
      覆盖:
      getParentLayoutStyle 在类中 Component
      返回:
      样式
    • getSystemAttr

      public ButtonLogicAttr getSystemAttr()
    • getButtonHtml

      public String getButtonHtml(ModuleContext context, StringBuilder html, String id, String className, String valueOri, String value, String onClick, String extHtml)
      获取按钮HTML
      参数:
      context - ModuleContext
      html - StringBuilder
      id - String
      className - 样式,在非图片button时有效
      value - 值
      onClick - 单击事件
      extHtml - 自定义
      返回:
      String