Class SelectionRecord

All Implemented Interfaces:
org.apache.poi.common.Duplicatable, GenericRecord

public final class SelectionRecord extends StandardRecord
Shows the user's selection on the sheet for write set num refs to 0
  • Field Details

  • Constructor Details

    • SelectionRecord

      public SelectionRecord(SelectionRecord other)
    • SelectionRecord

      public SelectionRecord(int activeCellRow, int activeCellCol)
      Creates a default selection record (cell A1, in pane ID 3)
      Parameters:
      activeCellRow - the active cells row index
      activeCellCol - the active cells column index
    • SelectionRecord

      public SelectionRecord(RecordInputStream in)
  • Method Details

    • setPane

      public void setPane(byte pane)
      set which window pane this is for
      Parameters:
      pane - the window pane
    • setActiveCellRow

      public void setActiveCellRow(int row)
      set the active cell's row
      Parameters:
      row - number of active cell
    • setActiveCellCol

      public void setActiveCellCol(short col)
      set the active cell's col
      Parameters:
      col - number of active cell
    • setActiveCellRef

      public void setActiveCellRef(short ref)
      set the active cell's reference number
      Parameters:
      ref - number of active cell
    • getPane

      public byte getPane()
      Returns:
      the pane ID which window pane this is for
    • getActiveCellRow

      public int getActiveCellRow()
      get the active cell's row
      Returns:
      row number of active cell
    • getActiveCellCol

      public int getActiveCellCol()
      get the active cell's col
      Returns:
      col number of active cell
    • getActiveCellRef

      public int getActiveCellRef()
      get the active cell's reference number
      Returns:
      ref number of active cell
    • serialize

      public void serialize(LittleEndianOutput out)
    • getSid

      public short getSid()
      Description copied from class: Record
      return the non static version of the id for this record.
      Specified by:
      getSid in class Record
      Returns:
      he id for this record
    • copy

      public SelectionRecord copy()
      Specified by:
      copy in interface org.apache.poi.common.Duplicatable
      Specified by:
      copy in class StandardRecord
    • getGenericRecordType

      public HSSFRecordTypes getGenericRecordType()
      Specified by:
      getGenericRecordType in interface GenericRecord
      Specified by:
      getGenericRecordType in class Record
    • getGenericProperties

      public Map<String,Supplier<?>> getGenericProperties()