public class TableImpl extends AbstractTableAdv implements LinkedModelObject
Modifier and Type | Class and Description |
---|---|
static class |
TableImpl.DummyTable |
Constructor and Description |
---|
TableImpl(AbstractBookAdv book,
String name,
String displayName,
SheetRegion region,
int headerRowCount,
int totalsRowCount,
STableStyleInfo info) |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(STableColumn column) |
void |
checkOrphan() |
SAutoFilter |
createAutoFilter()
Creates a new auto filter for this table the old one will be drop directly.
|
void |
deleteAutoFilter()
Delete current autofilter if it has
|
void |
deleteCols(int col1,
int col2) |
void |
deleteRows(int row1,
int row2) |
void |
destroy()
Destroy / release this model object, for example all the dependency, parent linking.
|
void |
enableAutoFilter(boolean enable) |
SheetRegion |
getAllRegion() |
SAutoFilter |
getAutoFilter()
Gets the auto filter information if there is.
|
SBook |
getBook() |
SCellStyle |
getCellStyle(int row,
int col) |
STableColumn |
getColumnAt(int colIdx) |
List<STableColumn> |
getColumns() |
SheetRegion |
getColumnsRegion(String columnName1,
String columnName2) |
SheetRegion |
getDataRegion() |
String |
getDisplayName() |
int |
getHeaderRowCount() |
SheetRegion |
getHeadersRegion() |
SheetRegion |
getItemRegion(TablePtg.Item item,
int rowIdx) |
String |
getName() |
STableStyleInfo |
getTableStyleInfo() |
SheetRegion |
getThisRowRegion(int rowIdx) |
SheetRegion |
getTotalsRegion() |
int |
getTotalsRowCount() |
void |
insertCols(int col1,
int col2,
boolean insertLeft) |
void |
insertRows(int row1,
int row2) |
void |
refreshFilter() |
void |
setDisplayName(String name) |
void |
setHeaderRowCount(int count) |
void |
setName(String newname) |
void |
setTableStyle(STableStyleInfo style) |
void |
setTotalsRowCount(int count) |
boolean |
shiftCols(int diff) |
boolean |
shiftRows(int diff) |
public TableImpl(AbstractBookAdv book, String name, String displayName, SheetRegion region, int headerRowCount, int totalsRowCount, STableStyleInfo info)
public List<STableColumn> getColumns()
getColumns
in interface STable
public void addColumn(STableColumn column)
public STableStyleInfo getTableStyleInfo()
getTableStyleInfo
in interface STable
public void setTableStyle(STableStyleInfo style)
public int getTotalsRowCount()
getTotalsRowCount
in interface STable
public int getHeaderRowCount()
getHeaderRowCount
in interface STable
public SheetRegion getAllRegion()
getAllRegion
in interface STable
public void setTotalsRowCount(int count)
setTotalsRowCount
in interface STable
public void setHeaderRowCount(int count)
setHeaderRowCount
in interface STable
public String getDisplayName()
getDisplayName
in interface STable
public void setDisplayName(String name)
setDisplayName
in interface STable
public SheetRegion getDataRegion()
getDataRegion
in interface STable
public SheetRegion getColumnsRegion(String columnName1, String columnName2)
getColumnsRegion
in interface STable
public SheetRegion getHeadersRegion()
getHeadersRegion
in interface STable
public SheetRegion getTotalsRegion()
getTotalsRegion
in interface STable
public SheetRegion getThisRowRegion(int rowIdx)
getThisRowRegion
in interface STable
public SheetRegion getItemRegion(TablePtg.Item item, int rowIdx)
getItemRegion
in interface STable
public void destroy()
LinkedModelObject
destroy
in interface LinkedModelObject
public void checkOrphan()
checkOrphan
in interface LinkedModelObject
public STableColumn getColumnAt(int colIdx)
getColumnAt
in interface STable
public SCellStyle getCellStyle(int row, int col)
getCellStyle
in class AbstractTableAdv
public void deleteRows(int row1, int row2)
deleteRows
in class AbstractTableAdv
public void deleteCols(int col1, int col2)
deleteCols
in class AbstractTableAdv
public boolean shiftCols(int diff)
shiftCols
in class AbstractTableAdv
public boolean shiftRows(int diff)
shiftRows
in class AbstractTableAdv
public void insertRows(int row1, int row2)
insertRows
in class AbstractTableAdv
public void insertCols(int col1, int col2, boolean insertLeft)
insertCols
in class AbstractTableAdv
public void enableAutoFilter(boolean enable)
enableAutoFilter
in interface STable
public SAutoFilter getAutoFilter()
STable
getAutoFilter
in interface STable
public SAutoFilter createAutoFilter()
STable
createAutoFilter
in interface STable
public void deleteAutoFilter()
STable
deleteAutoFilter
in interface STable
public void refreshFilter()
refreshFilter
in class AbstractTableAdv
Copyright © 2020. All rights reserved.