Package io.keikai.model.impl
Class SlicerImpl
java.lang.Object
io.keikai.model.impl.SlicerImpl
- All Implemented Interfaces:
SSlicer,Serializable
Default implementation of
SSlicer.- Since:
- 7.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears all item selections.Returns the anchor position of this slicer on the sheet.Returns the display caption.intReturns the number of columns used to display items.intReturns the index of the pivot field this slicer controls.getName()Returns the unique name of this slicer.Returns the pivot table this slicer is connected to.booleanisItemSelected(int itemIndex) Returns whether the item at the given index is selected.voidSelects all items.voidsetAnchor(ViewAnchor anchor) voidsetCaption(String caption) voidsetColumnCount(int count) Sets the number of columns used to display items.voidsetFieldIndex(int fieldIndex) voidsetItemSelected(int itemIndex, boolean selected) Sets the selection state for the item at the given index.voidsetPivotTable(SPivotTable pivotTable)
-
Constructor Details
-
SlicerImpl
-
-
Method Details
-
getName
Description copied from interface:SSlicerReturns the unique name of this slicer. -
getCaption
Description copied from interface:SSlicerReturns the display caption.- Specified by:
getCaptionin interfaceSSlicer- Returns:
- the caption
-
setCaption
-
getPivotTable
Description copied from interface:SSlicerReturns the pivot table this slicer is connected to.- Specified by:
getPivotTablein interfaceSSlicer- Returns:
- the associated pivot table
-
setPivotTable
-
getFieldIndex
public int getFieldIndex()Description copied from interface:SSlicerReturns the index of the pivot field this slicer controls.- Specified by:
getFieldIndexin interfaceSSlicer- Returns:
- the field index
-
setFieldIndex
public void setFieldIndex(int fieldIndex) -
getColumnCount
public int getColumnCount()Description copied from interface:SSlicerReturns the number of columns used to display items.- Specified by:
getColumnCountin interfaceSSlicer- Returns:
- the column count
-
setColumnCount
public void setColumnCount(int count) Description copied from interface:SSlicerSets the number of columns used to display items.- Specified by:
setColumnCountin interfaceSSlicer- Parameters:
count- the column count
-
getAnchor
Description copied from interface:SSlicerReturns the anchor position of this slicer on the sheet. -
setAnchor
-
isItemSelected
public boolean isItemSelected(int itemIndex) Description copied from interface:SSlicerReturns whether the item at the given index is selected.- Specified by:
isItemSelectedin interfaceSSlicer- Parameters:
itemIndex- zero-based item index- Returns:
- true if selected
-
setItemSelected
public void setItemSelected(int itemIndex, boolean selected) Description copied from interface:SSlicerSets the selection state for the item at the given index.- Specified by:
setItemSelectedin interfaceSSlicer- Parameters:
itemIndex- zero-based item indexselected- true to select
-
selectAll
public void selectAll()Description copied from interface:SSlicerSelects all items. -
clearSelection
public void clearSelection()Description copied from interface:SSlicerClears all item selections.- Specified by:
clearSelectionin interfaceSSlicer
-