Package adams.event

Class SpreadSheetColumnInsertionEvent

  • All Implemented Interfaces:
    Serializable

    public class SpreadSheetColumnInsertionEvent
    extends EventObject
    Event that gets sent in case of insertion of a column.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_ColumnIndex

        protected int m_ColumnIndex
        the index of the column that got inserted.
    • Constructor Detail

      • SpreadSheetColumnInsertionEvent

        public SpreadSheetColumnInsertionEvent​(SpreadSheet source,
                                               int columnIndex)
        Initializes the event.
        Parameters:
        source - the spreadsheet that triggered the event
        columnIndex - te index of the column that got inserted
    • Method Detail

      • getSpreadSheet

        public SpreadSheet getSpreadSheet()
        Returns the spreadsheet that triggered this event.
        Returns:
        the spreadsheet
      • getColumnIndex

        public int getColumnIndex()
        Returns the index of the column that got inserted.
        Returns:
        the index
      • toString

        public String toString()
        Returns a short description of the event.
        Overrides:
        toString in class EventObject
        Returns:
        the description