类 CommonAttr

java.lang.Object
com.sh.wf.module.component.table.CommonAttr
所有已实现的接口:
Serializable, Cloneable

public final class CommonAttr extends Object implements Cloneable, Serializable

Description: 单元格公共属性

Title:首亨软件 - TSS/CRM等

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

  • 构造器详细资料

    • CommonAttr

      public CommonAttr()
  • 方法详细资料

    • parserNode

      public void parserNode(org.jdom2.Element nodeEl, Component component)
    • processStyle

      public String processStyle()
      添加公共样式到单元格中
      返回:
      String
    • toTdAttr

      public void toTdAttr(ModuleContext context, StringBuilder html)
      设置TD上的属性
      参数:
      context - ModuleContext
      html - StringBuilder
    • toHtmlBefore

      public void toHtmlBefore(TdDynamic tdd, ModuleContext context, StringBuilder html)
    • toHtmlEnd

      public void toHtmlEnd(TdDynamic tdd, ModuleContext context, StringBuilder html)
    • getExDsName

      public String getExDsName()
    • getExDsFilter

      public String getExDsFilter()
    • getExDsSort

      public String getExDsSort()
    • getExJSONPath

      public String getExJSONPath()
    • isIgnoreHtml

      public boolean isIgnoreHtml()
    • getExRowNum

      public int getExRowNum()
    • isShowOri

      public boolean isShowOri()
    • isMarkdown

      public boolean isMarkdown()
    • isExportRich

      public boolean isExportRich()
    • getShowType

      public String getShowType()
    • checkExportValue

      public String checkExportValue(String value)
    • getTmCell

      public String getTmCell()
    • getLmCell

      public String getLmCell()
    • getEcalType

      public String getEcalType()
    • getDataCol

      public String getDataCol()
    • getDataColFull

      public String getDataColFull()
    • processAllOtherDataColValue

      public void processAllOtherDataColValue(ModuleContext context, TdDynamic tt)
      计算当前单元格其他数据列的值
      参数:
      context - ModuleContext
      tt - TdDynamic
    • processDataCol

      public int processDataCol(ModuleContext context, DsInfo dsInfo, TdDynamic tt, String exDirection)
      横向扩展时,单元格需要指定数据列,这样可以排除重复的列
      参数:
      context - ModuleContext
      dsInfo - 数据集对象
      tt - TdDynamic
      exDirection - 扩展方向 1 横向扩展 2 竖向扩展
      返回:
      int
    • getTopMainTdDynamic

      public TdDynamic getTopMainTdDynamic(Table table, int curRowNo, TdDynamic tdd)
      获取单元格的上主格
      参数:
      table - Table
      curRowNo - 当前行号
      tdd - TdDynamic
      返回:
      TdDynamic
    • getLeftMainTdDynamic

      public TdDynamic getLeftMainTdDynamic(List<TdDynamic> subList, TdDynamic leftMainDynamic)
    • calDsValue

      public String calDsValue(ModuleContext context, TdDynamic tt, DsInfo dsInfo, String colName, String format, String defaultValue, List<String> subExpArgList)
      计算横向和竖向扩展单元格的中间单元格,通过[dsName.col.cal]触发
      参数:
      context - ModuleContext
      tt - TdDynamic
      dsInfo - 数据集对象
      colName - 列名
      format - 格式化
      defaultValue - 默认值
      subExpArgList - List
      返回:
      String
    • getExDataColValue

      public String getExDataColValue(ModuleContext context, TdDynamic tt, int i)
    • isCancelColSpan

      public boolean isCancelColSpan()