public class TableImpl extends AbstractTableAdv implements LinkedModelObject
Modifier and Type | Class and Description |
---|---|
static class |
TableImpl.DummyTable |
Constructor and Description |
---|
TableImpl(AbstractBookAdv book,
java.lang.String name,
java.lang.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) |
java.util.List<STableColumn> |
getColumns() |
SheetRegion |
getColumnsRegion(java.lang.String columnName1,
java.lang.String columnName2) |
SheetRegion |
getDataRegion() |
java.lang.String |
getDisplayName() |
int |
getHeaderRowCount() |
SheetRegion |
getHeadersRegion() |
SheetRegion |
getItemRegion(TablePtg.Item item,
int rowIdx) |
java.lang.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(java.lang.String name) |
void |
setHeaderRowCount(int count) |
void |
setName(java.lang.String newname) |
void |
setTableStyle(STableStyleInfo style) |
void |
setTotalsRowCount(int count) |
boolean |
shiftCols(int diff) |
boolean |
shiftRows(int diff) |
public TableImpl(AbstractBookAdv book, java.lang.String name, java.lang.String displayName, SheetRegion region, int headerRowCount, int totalsRowCount, STableStyleInfo info)
public java.util.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 java.lang.String getDisplayName()
getDisplayName
in interface STable
public void setDisplayName(java.lang.String name)
setDisplayName
in interface STable
public SheetRegion getDataRegion()
getDataRegion
in interface STable
public SheetRegion getColumnsRegion(java.lang.String columnName1, java.lang.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 © 2005-2010 Potix Corporation. All Rights Reserved.