Package io.keikai.model.impl
Class TableImpl
java.lang.Object
io.keikai.model.impl.AbstractTableAdv
io.keikai.model.impl.TableImpl
- All Implemented Interfaces:
LinkedModelObject,STable,Serializable,org.apache.poi.ss.usermodel.Table
- Since:
- 3.8.0
- Author:
- henri
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.apache.poi.ss.usermodel.Table
isStructuredReference -
Constructor Summary
ConstructorsConstructorDescriptionTableImpl(AbstractBookAdv book, String name, String displayName, SheetRegion region, int headerRowCount, int totalsRowCount, STableStyleInfo info) TableImpl(AbstractBookAdv book, String name, String displayName, SheetRegion region, int headerRowCount, int totalsRowCount, STableStyleInfo info, boolean totalsRowShown) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumn(STableColumn column) voidbooleancontains(org.apache.poi.ss.util.CellReference cell) Creates a new auto filter for this table the old one will be drop directly.voidDelete current autofilter if it hasvoiddeleteCols(int col1, int col2) voiddeleteRows(int row1, int row2) voiddestroy()Destroy / release this model object, for example all the dependency, parent linking.voidenableAutoFilter(boolean enable) intfindColumnIndex(String columnHeader) Gets the auto filter information if there is.getBook()getCellStyle(int row, int col) getColumnAt(int colIdx) getColumnsRegion(String columnName1, String columnName2) intintintgetItemRegion(org.apache.poi.ss.formula.ptg.TablePtg.Item item, int rowIdx) getName()intintorg.apache.poi.ss.usermodel.TableStyleInfogetStyle()getThisRowRegion(int rowIdx) intvoidinsertCols(int col1, int col2, boolean insertLeft) voidinsertRows(int row1, int row2) booleanvoidvoidvoidsetDisplayName(String name) voidsetHeaderRowCount(int count) voidvoidsetTableStyle(STableStyleInfo style) voidsetTotalsRowCount(int count) booleanshiftCols(int diff) booleanshiftRows(int diff) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.poi.ss.usermodel.Table
contains
-
Constructor Details
-
TableImpl
public TableImpl(AbstractBookAdv book, String name, String displayName, SheetRegion region, int headerRowCount, int totalsRowCount, STableStyleInfo info) -
TableImpl
public TableImpl(AbstractBookAdv book, String name, String displayName, SheetRegion region, int headerRowCount, int totalsRowCount, STableStyleInfo info, boolean totalsRowShown)
-
-
Method Details
-
getBook
-
getColumns
- Specified by:
getColumnsin interfaceSTable
-
addColumn
-
getTableStyleInfo
- Specified by:
getTableStyleInfoin interfaceSTable
-
setTableStyle
-
getTotalsRowCount
public int getTotalsRowCount()- Specified by:
getTotalsRowCountin interfaceSTable- Specified by:
getTotalsRowCountin interfaceorg.apache.poi.ss.usermodel.Table
-
getHeaderRowCount
public int getHeaderRowCount()- Specified by:
getHeaderRowCountin interfaceSTable- Specified by:
getHeaderRowCountin interfaceorg.apache.poi.ss.usermodel.Table
-
setTotalsRowCount
public void setTotalsRowCount(int count) - Specified by:
setTotalsRowCountin interfaceSTable
-
setHeaderRowCount
public void setHeaderRowCount(int count) - Specified by:
setHeaderRowCountin interfaceSTable
-
setName
-
getDisplayName
- Specified by:
getDisplayNamein interfaceSTable
-
setDisplayName
- Specified by:
setDisplayNamein interfaceSTable
-
getDataRegion
- Specified by:
getDataRegionin interfaceSTable
-
getColumnsRegion
- Specified by:
getColumnsRegionin interfaceSTable
-
getHeadersRegion
- Specified by:
getHeadersRegionin interfaceSTable
-
getTotalsRegion
- Specified by:
getTotalsRegionin interfaceSTable
-
getThisRowRegion
- Specified by:
getThisRowRegionin interfaceSTable
-
getItemRegion
- Specified by:
getItemRegionin interfaceSTable
-
destroy
public void destroy()Description copied from interface:LinkedModelObjectDestroy / 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:
destroyin interfaceLinkedModelObject
-
checkOrphan
public void checkOrphan()- Specified by:
checkOrphanin interfaceLinkedModelObject
-
getColumnAt
- Specified by:
getColumnAtin interfaceSTable
-
getCellStyle
- Specified by:
getCellStylein classAbstractTableAdv
-
deleteRows
public void deleteRows(int row1, int row2) - Specified by:
deleteRowsin classAbstractTableAdv
-
deleteCols
public void deleteCols(int col1, int col2) - Specified by:
deleteColsin classAbstractTableAdv
-
shiftCols
public boolean shiftCols(int diff) - Specified by:
shiftColsin classAbstractTableAdv
-
shiftRows
public boolean shiftRows(int diff) - Specified by:
shiftRowsin classAbstractTableAdv
-
insertRows
public void insertRows(int row1, int row2) - Specified by:
insertRowsin classAbstractTableAdv
-
insertCols
public void insertCols(int col1, int col2, boolean insertLeft) - Specified by:
insertColsin classAbstractTableAdv
-
enableAutoFilter
public void enableAutoFilter(boolean enable) - Specified by:
enableAutoFilterin interfaceSTable
-
getAutoFilter
Description copied from interface:STableGets the auto filter information if there is.- Specified by:
getAutoFilterin interfaceSTable- Returns:
- the auto filter, or null if not found
-
createAutoFilter
Description copied from interface:STableCreates a new auto filter for this table the old one will be drop directly.- Specified by:
createAutoFilterin interfaceSTable- Returns:
- the new auto filter.
-
deleteAutoFilter
public void deleteAutoFilter()Description copied from interface:STableDelete current autofilter if it has- Specified by:
deleteAutoFilterin interfaceSTable
-
refreshFilter
public void refreshFilter()- Specified by:
refreshFilterin classAbstractTableAdv
-
refreshStyle
public void refreshStyle()- Specified by:
refreshStylein classAbstractTableAdv
-
getStyle
public org.apache.poi.ss.usermodel.TableStyleInfo getStyle()- Specified by:
getStylein interfaceorg.apache.poi.ss.usermodel.Table
-
contains
public boolean contains(org.apache.poi.ss.util.CellReference cell) - Specified by:
containsin interfaceorg.apache.poi.ss.usermodel.Table
-
getAllRegion
- Specified by:
getAllRegionin interfaceSTable
-
getStartColIndex
public int getStartColIndex()- Specified by:
getStartColIndexin interfaceorg.apache.poi.ss.usermodel.Table
-
getStartRowIndex
public int getStartRowIndex()- Specified by:
getStartRowIndexin interfaceorg.apache.poi.ss.usermodel.Table
-
getEndColIndex
public int getEndColIndex()- Specified by:
getEndColIndexin interfaceorg.apache.poi.ss.usermodel.Table
-
getEndRowIndex
public int getEndRowIndex()- Specified by:
getEndRowIndexin interfaceorg.apache.poi.ss.usermodel.Table
-
getName
-
getStyleName
- Specified by:
getStyleNamein interfaceorg.apache.poi.ss.usermodel.Table
-
findColumnIndex
- Specified by:
findColumnIndexin interfaceorg.apache.poi.ss.usermodel.Table
-
getSheetName
- Specified by:
getSheetNamein interfaceorg.apache.poi.ss.usermodel.Table
-
isHasTotalsRow
public boolean isHasTotalsRow()- Specified by:
isHasTotalsRowin interfaceorg.apache.poi.ss.usermodel.Table
-