Package io.keikai.model.impl
Class AutoFilterImpl
- java.lang.Object
-
- io.keikai.model.impl.AbstractAutoFilterAdv
-
- io.keikai.model.impl.AutoFilterImpl
-
- All Implemented Interfaces:
SAutoFilter
,Serializable
public class AutoFilterImpl extends AbstractAutoFilterAdv
The auto fitler implement- Since:
- 3.5.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.keikai.model.impl.AbstractAutoFilterAdv
AbstractAutoFilterAdv.FilterColumnImpl
-
Nested classes/interfaces inherited from interface io.keikai.model.SAutoFilter
SAutoFilter.FilterOp, SAutoFilter.NFilterColumn
-
-
Constructor Summary
Constructors Constructor Description AutoFilterImpl(CellRegion region)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearFilterColumn(int index)
void
clearFilterColumns()
List<FilterRowInfo>
getCachedSet(int index)
SAutoFilter.NFilterColumn
getFilterColumn(int index, boolean create)
Returns the column filter information of the specified column; null if the column is not filtered.Collection<SAutoFilter.NFilterColumn>
getFilterColumns()
Return filter setting of each filtered column.int
getFilterType(int index)
int
getLastVisibleRow()
int
getPrevlastVisibleRow()
CellRegion
getRegion()
Returns the filtered Region.Map<Integer,SpareSpan>
getShallHideCache()
boolean
isFiltered()
void
putFilterColumn(int index, SAutoFilter.NFilterColumn filterColumn)
void
renameSheet(SBook book, String oldName, String newName)
void
setCachedSet(int index, SortedSet<FilterRowInfo> orderedRowInfos)
void
setFilterType(int index, int type)
void
setLastRow(int lastRow)
internal use onlyvoid
setLastVisibleRow(int lastVisible)
void
setShallHideCache(int index, SpareSpan shallHide)
-
-
-
Constructor Detail
-
AutoFilterImpl
public AutoFilterImpl(CellRegion region)
-
-
Method Detail
-
getRegion
public CellRegion getRegion()
Description copied from interface:SAutoFilter
Returns the filtered Region.
-
setLastRow
public void setLastRow(int lastRow)
Description copied from class:AbstractAutoFilterAdv
internal use only- Specified by:
setLastRow
in classAbstractAutoFilterAdv
-
getFilterColumns
public Collection<SAutoFilter.NFilterColumn> getFilterColumns()
Description copied from interface:SAutoFilter
Return filter setting of each filtered column.
-
getFilterColumn
public SAutoFilter.NFilterColumn getFilterColumn(int index, boolean create)
Description copied from interface:SAutoFilter
Returns the column filter information of the specified column; null if the column is not filtered.- Parameters:
index
- the nth column (1st column in the filter range is 0)- Returns:
- the column filter information of the specified column; null if the column is not filtered.
-
clearFilterColumn
public void clearFilterColumn(int index)
-
clearFilterColumns
public void clearFilterColumns()
-
renameSheet
public void renameSheet(SBook book, String oldName, String newName)
- Specified by:
renameSheet
in classAbstractAutoFilterAdv
-
isFiltered
public boolean isFiltered()
-
getPrevlastVisibleRow
public int getPrevlastVisibleRow()
- Returns:
- previousVisibleRow
-
getLastVisibleRow
public int getLastVisibleRow()
- Returns:
- lastVisibleRow
-
setLastVisibleRow
public void setLastVisibleRow(int lastVisible)
-
putFilterColumn
public void putFilterColumn(int index, SAutoFilter.NFilterColumn filterColumn)
-
setCachedSet
public void setCachedSet(int index, SortedSet<FilterRowInfo> orderedRowInfos)
-
getCachedSet
public List<FilterRowInfo> getCachedSet(int index)
-
setShallHideCache
public void setShallHideCache(int index, SpareSpan shallHide)
-
setFilterType
public void setFilterType(int index, int type)
-
getFilterType
public int getFilterType(int index)
-
-