Class AbstractExcelSpreadSheetReader<T extends Range>

    • Field Detail

      • m_AutoExtendHeader

        protected boolean m_AutoExtendHeader
        whether to automatically extend the header if rows have more cells than header.
      • m_TextColumns

        protected Range m_TextColumns
        the range of columns to force to be text.
      • m_NoHeader

        protected boolean m_NoHeader
        whether the file has a header or not.
      • m_CustomColumnHeaders

        protected String m_CustomColumnHeaders
        the comma-separated list of column header names.
      • m_FirstRow

        protected int m_FirstRow
        the first row to retrieve (1-based).
      • m_NumRows

        protected int m_NumRows
        the number of rows to retrieve (less than 1 = unlimited).
    • Constructor Detail

      • AbstractExcelSpreadSheetReader

        public AbstractExcelSpreadSheetReader()
    • Method Detail

      • setAutoExtendHeader

        public void setAutoExtendHeader​(boolean value)
        Sets whether to extend the header if rows have more cells than the header.
        Parameters:
        value - if true then the header gets extended if necessary
      • getAutoExtendHeader

        public boolean getAutoExtendHeader()
        Returns whether to extend the header if rows have more cells than the header.
        Returns:
        true if the header gets extended if necessary
      • autoExtendHeaderTipText

        public String autoExtendHeaderTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the explorer/experimenter gui
      • setTextColumns

        public void setTextColumns​(Range value)
        Sets the range of columns to treat as text.
        Parameters:
        value - the range of columns
      • getTextColumns

        public Range getTextColumns()
        Returns the range of columns to treat as text.
        Returns:
        the range of columns
      • textColumnsTipText

        public String textColumnsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the explorer/experimenter gui
      • setNoHeader

        public void setNoHeader​(boolean value)
        Sets whether the file contains a header row or not.
        Specified by:
        setNoHeader in interface NoHeaderSpreadSheetReader
        Parameters:
        value - true if no header row available
      • getNoHeader

        public boolean getNoHeader()
        Returns whether the file contains a header row or not.
        Specified by:
        getNoHeader in interface NoHeaderSpreadSheetReader
        Returns:
        true if no header row available
      • noHeaderTipText

        public String noHeaderTipText()
        Returns the tip text for this property.
        Specified by:
        noHeaderTipText in interface NoHeaderSpreadSheetReader
        Returns:
        tip text for this property suitable for displaying in the gui
      • setFirstRow

        public void setFirstRow​(int value)
        Sets the first row to return.
        Specified by:
        setFirstRow in interface WindowedSpreadSheetReader
        Parameters:
        value - the first row (1-based), greater than 0
      • getFirstRow

        public int getFirstRow()
        Returns the first row to return.
        Specified by:
        getFirstRow in interface WindowedSpreadSheetReader
        Returns:
        the first row (1-based), greater than 0
      • firstRowTipText

        public String firstRowTipText()
        Returns the tip text for this property.
        Specified by:
        firstRowTipText in interface WindowedSpreadSheetReader
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setNumRows

        public void setNumRows​(int value)
        Sets the number of data rows to return.
        Specified by:
        setNumRows in interface WindowedSpreadSheetReader
        Parameters:
        value - the number of rows, -1 for unlimited
      • getNumRows

        public int getNumRows()
        Returns the number of data rows to return.
        Specified by:
        getNumRows in interface WindowedSpreadSheetReader
        Returns:
        the number of rows, -1 for unlimited
      • numRowsTipText

        public String numRowsTipText()
        Returns the tip text for this property.
        Specified by:
        numRowsTipText in interface WindowedSpreadSheetReader
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.