Class CheckBoxListCellType

java.lang.Object
com.grapecity.documents.excel.BaseCellType
com.grapecity.documents.excel.CheckBoxListCellType

public class CheckBoxListCellType extends BaseCellType
表示复选框列表的单元格类型。
  • Constructor Details

    • CheckBoxListCellType

      public CheckBoxListCellType()
      创建一个复选框列表单元格类型。
  • Method Details

    • getItems

      public ArrayList<SelectFieldItem> getItems()
      获取复选框列表的项目。
      Returns:
      复选框列表项的列表。
    • getDirection

      public CellTypeDirection getDirection()
      获取复选框列表的排列方向。
      Returns:
      复选框列表排列的方向,如水平或垂直。
    • setDirection

      public void setDirection(CellTypeDirection direction)
      设置复选框列表的排列方向。
      Parameters:
      direction - 复选框列表项的排列方向。
    • getIsFlowLayout

      public boolean getIsFlowLayout()
      获取复选框列表的布局是否自适应。
      Returns:
      如果复选框列表的布局是自适应的,则为true;否则为false。
    • setIsFlowLayout

      public void setIsFlowLayout(boolean isFlowLayout)
      设置复选框列表的布局为自动适配。
      Parameters:
      isFlowLayout - 如果复选框列表的布局是自适应的,则为true;否则为false。
    • getTextAlign

      public CellTypeTextAlign getTextAlign()
      获取复选框列表的文本对齐方式,仅支持左侧和右侧。
      Returns:
      复选框列表的文本对齐方式,例如左对齐或右对齐。
    • setTextAlign

      public void setTextAlign(CellTypeTextAlign textAlign)
      设置复选框列表的文本对齐方式,只支持左右对齐。
      Parameters:
      textAlign - 复选框列表的文本对齐方式。
    • setMaxRowCount

      public void setMaxRowCount(int maxRowCount)
      设置复选框列表的行数。
      Parameters:
      maxRowCount - 复选框列表的最大行数。
    • getMaxRowCount

      public int getMaxRowCount()
      获取复选框列表的行数。
      Returns:
      复选框列表的最大行数。
    • setMaxColumnCount

      public void setMaxColumnCount(int maxColumnCount)
      设置复选框列表的列数。
      Parameters:
      maxColumnCount - 复选框列表的最大列数。
    • getMaxColumnCount

      public int getMaxColumnCount()
      获取复选框列表的列数。
      Returns:
      复选框列表的最大列数。
    • setHorizontalSpacing

      public void setHorizontalSpacing(int horizontalSpacing)
      设置复选框列表中的水平间距。
      Parameters:
      horizontalSpacing - 单选按钮列表的水平间距。
    • getHorizontalSpacing

      public int getHorizontalSpacing()
      获取复选框列表中的水平间距。
      Returns:
      复选框列表中的水平间距。
    • setVerticalSpacing

      public void setVerticalSpacing(int verticalSpacing)
      设置复选框列表中的垂直间距。
      Parameters:
      verticalSpacing - 单选按钮列表的垂直间距。
    • getVerticalSpacing

      public int getVerticalSpacing()
      获取复选框列表中的垂直间距。
      Returns:
      复选框列表中的垂直间距。
    • getBoxSize

      public int getBoxSize()
      获取复选框大小。
    • setBoxSize

      public void setBoxSize(int value)
      设置复选框的大小。
    • getAutoBoxSize

      public boolean getAutoBoxSize()
      设置复选框列表是否随字体大小变化。
    • setAutoBoxSize

      public void setAutoBoxSize(boolean value)
      获取复选框列表是否随字体大小变化。