Class SlicerImpl

java.lang.Object
io.keikai.model.impl.SlicerImpl
All Implemented Interfaces:
SSlicer, Serializable

public class SlicerImpl extends Object implements SSlicer, Serializable
Default implementation of SSlicer.
Since:
7.0.0
See Also:
  • Constructor Details

    • SlicerImpl

      public SlicerImpl(String name, SPivotTable pivotTable, int fieldIndex)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: SSlicer
      Returns the unique name of this slicer.
      Specified by:
      getName in interface SSlicer
      Returns:
      the slicer name
    • getCaption

      public String getCaption()
      Description copied from interface: SSlicer
      Returns the display caption.
      Specified by:
      getCaption in interface SSlicer
      Returns:
      the caption
    • setCaption

      public void setCaption(String caption)
    • getPivotTable

      public SPivotTable getPivotTable()
      Description copied from interface: SSlicer
      Returns the pivot table this slicer is connected to.
      Specified by:
      getPivotTable in interface SSlicer
      Returns:
      the associated pivot table
    • setPivotTable

      public void setPivotTable(SPivotTable pivotTable)
    • getFieldIndex

      public int getFieldIndex()
      Description copied from interface: SSlicer
      Returns the index of the pivot field this slicer controls.
      Specified by:
      getFieldIndex in interface SSlicer
      Returns:
      the field index
    • setFieldIndex

      public void setFieldIndex(int fieldIndex)
    • getColumnCount

      public int getColumnCount()
      Description copied from interface: SSlicer
      Returns the number of columns used to display items.
      Specified by:
      getColumnCount in interface SSlicer
      Returns:
      the column count
    • setColumnCount

      public void setColumnCount(int count)
      Description copied from interface: SSlicer
      Sets the number of columns used to display items.
      Specified by:
      setColumnCount in interface SSlicer
      Parameters:
      count - the column count
    • getAnchor

      public ViewAnchor getAnchor()
      Description copied from interface: SSlicer
      Returns the anchor position of this slicer on the sheet.
      Specified by:
      getAnchor in interface SSlicer
      Returns:
      the view anchor
    • setAnchor

      public void setAnchor(ViewAnchor anchor)
    • isItemSelected

      public boolean isItemSelected(int itemIndex)
      Description copied from interface: SSlicer
      Returns whether the item at the given index is selected.
      Specified by:
      isItemSelected in interface SSlicer
      Parameters:
      itemIndex - zero-based item index
      Returns:
      true if selected
    • setItemSelected

      public void setItemSelected(int itemIndex, boolean selected)
      Description copied from interface: SSlicer
      Sets the selection state for the item at the given index.
      Specified by:
      setItemSelected in interface SSlicer
      Parameters:
      itemIndex - zero-based item index
      selected - true to select
    • selectAll

      public void selectAll()
      Description copied from interface: SSlicer
      Selects all items.
      Specified by:
      selectAll in interface SSlicer
    • clearSelection

      public void clearSelection()
      Description copied from interface: SSlicer
      Clears all item selections.
      Specified by:
      clearSelection in interface SSlicer