Class TableImpl

All Implemented Interfaces:
LinkedModelObject, STable, Serializable, org.apache.poi.ss.usermodel.Table

public class TableImpl extends AbstractTableAdv implements LinkedModelObject
Since:
3.8.0
Author:
henri
See Also:
  • Constructor Details

  • Method Details

    • getBook

      public SBook getBook()
      Specified by:
      getBook in interface STable
    • getColumns

      public List<STableColumn> getColumns()
      Specified by:
      getColumns in interface STable
    • addColumn

      public void addColumn(STableColumn column)
      Specified by:
      addColumn in interface STable
    • getTableStyleInfo

      public STableStyleInfo getTableStyleInfo()
      Specified by:
      getTableStyleInfo in interface STable
    • setTableStyle

      public void setTableStyle(STableStyleInfo style)
    • getTotalsRowCount

      public int getTotalsRowCount()
      Specified by:
      getTotalsRowCount in interface STable
      Specified by:
      getTotalsRowCount in interface org.apache.poi.ss.usermodel.Table
    • getHeaderRowCount

      public int getHeaderRowCount()
      Specified by:
      getHeaderRowCount in interface STable
      Specified by:
      getHeaderRowCount in interface org.apache.poi.ss.usermodel.Table
    • setTotalsRowCount

      public void setTotalsRowCount(int count)
      Specified by:
      setTotalsRowCount in interface STable
    • setHeaderRowCount

      public void setHeaderRowCount(int count)
      Specified by:
      setHeaderRowCount in interface STable
    • setName

      public void setName(String newname)
      Specified by:
      setName in interface STable
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface STable
    • setDisplayName

      public void setDisplayName(String name)
      Specified by:
      setDisplayName in interface STable
    • getDataRegion

      public SheetRegion getDataRegion()
      Specified by:
      getDataRegion in interface STable
    • getColumnsRegion

      public SheetRegion getColumnsRegion(String columnName1, String columnName2)
      Specified by:
      getColumnsRegion in interface STable
    • getHeadersRegion

      public SheetRegion getHeadersRegion()
      Specified by:
      getHeadersRegion in interface STable
    • getTotalsRegion

      public SheetRegion getTotalsRegion()
      Specified by:
      getTotalsRegion in interface STable
    • getThisRowRegion

      public SheetRegion getThisRowRegion(int rowIdx)
      Specified by:
      getThisRowRegion in interface STable
    • getItemRegion

      public SheetRegion getItemRegion(org.apache.poi.ss.formula.ptg.TablePtg.Item item, int rowIdx)
      Specified by:
      getItemRegion in interface STable
    • destroy

      public void destroy()
      Description copied from interface: LinkedModelObject
      Destroy / release this model object, for example all the dependency, parent linking. this method has to be called before remove this linking from parent object
      Specified by:
      destroy in interface LinkedModelObject
    • checkOrphan

      public void checkOrphan()
      Specified by:
      checkOrphan in interface LinkedModelObject
    • getColumnAt

      public STableColumn getColumnAt(int colIdx)
      Specified by:
      getColumnAt in interface STable
    • getCellStyle

      public SCellStyle getCellStyle(int row, int col)
      Specified by:
      getCellStyle in class AbstractTableAdv
    • deleteRows

      public void deleteRows(int row1, int row2)
      Specified by:
      deleteRows in class AbstractTableAdv
    • deleteCols

      public void deleteCols(int col1, int col2)
      Specified by:
      deleteCols in class AbstractTableAdv
    • shiftCols

      public boolean shiftCols(int diff)
      Specified by:
      shiftCols in class AbstractTableAdv
    • shiftRows

      public boolean shiftRows(int diff)
      Specified by:
      shiftRows in class AbstractTableAdv
    • insertRows

      public void insertRows(int row1, int row2)
      Specified by:
      insertRows in class AbstractTableAdv
    • insertCols

      public void insertCols(int col1, int col2, boolean insertLeft)
      Specified by:
      insertCols in class AbstractTableAdv
    • enableAutoFilter

      public void enableAutoFilter(boolean enable)
      Specified by:
      enableAutoFilter in interface STable
    • getAutoFilter

      public SAutoFilter getAutoFilter()
      Description copied from interface: STable
      Gets the auto filter information if there is.
      Specified by:
      getAutoFilter in interface STable
      Returns:
      the auto filter, or null if not found
    • createAutoFilter

      public SAutoFilter createAutoFilter()
      Description copied from interface: STable
      Creates a new auto filter for this table the old one will be drop directly.
      Specified by:
      createAutoFilter in interface STable
      Returns:
      the new auto filter.
    • deleteAutoFilter

      public void deleteAutoFilter()
      Description copied from interface: STable
      Delete current autofilter if it has
      Specified by:
      deleteAutoFilter in interface STable
    • refreshFilter

      public void refreshFilter()
      Specified by:
      refreshFilter in class AbstractTableAdv
    • refreshStyle

      public void refreshStyle()
      Specified by:
      refreshStyle in class AbstractTableAdv
    • getStyle

      public org.apache.poi.ss.usermodel.TableStyleInfo getStyle()
      Specified by:
      getStyle in interface org.apache.poi.ss.usermodel.Table
    • contains

      public boolean contains(org.apache.poi.ss.util.CellReference cell)
      Specified by:
      contains in interface org.apache.poi.ss.usermodel.Table
    • getAllRegion

      public SheetRegion getAllRegion()
      Specified by:
      getAllRegion in interface STable
    • getStartColIndex

      public int getStartColIndex()
      Specified by:
      getStartColIndex in interface org.apache.poi.ss.usermodel.Table
    • getStartRowIndex

      public int getStartRowIndex()
      Specified by:
      getStartRowIndex in interface org.apache.poi.ss.usermodel.Table
    • getEndColIndex

      public int getEndColIndex()
      Specified by:
      getEndColIndex in interface org.apache.poi.ss.usermodel.Table
    • getEndRowIndex

      public int getEndRowIndex()
      Specified by:
      getEndRowIndex in interface org.apache.poi.ss.usermodel.Table
    • getName

      public String getName()
      Specified by:
      getName in interface STable
      Specified by:
      getName in interface org.apache.poi.ss.usermodel.Table
    • getStyleName

      public String getStyleName()
      Specified by:
      getStyleName in interface org.apache.poi.ss.usermodel.Table
    • findColumnIndex

      public int findColumnIndex(String columnHeader)
      Specified by:
      findColumnIndex in interface org.apache.poi.ss.usermodel.Table
    • getSheetName

      public String getSheetName()
      Specified by:
      getSheetName in interface org.apache.poi.ss.usermodel.Table
    • isHasTotalsRow

      public boolean isHasTotalsRow()
      Specified by:
      isHasTotalsRow in interface org.apache.poi.ss.usermodel.Table