Class SpreadSheetModelEvent

java.lang.Object
java.util.EventObject
quadbase.reportdesigner.util.SpreadSheetModelEvent
All Implemented Interfaces:
Serializable

public class SpreadSheetModelEvent extends EventObject
This event specifies that a cell values in a SpreadSheetModel have been modified.
See Also:
  • Field Details

    • ROW_LABEL_COLUMN

      public static final int ROW_LABEL_COLUMN
      This denotes the column denoting the row labels.
      See Also:
    • COLUMN_LABEL_ROW

      public static final int COLUMN_LABEL_ROW
      This denotes the row denoting the column labels.
      See Also:
    • ALL_COLUMNS

      public static final int ALL_COLUMNS
      This denotes all columns in the spreadsheet (except the row label column).
      See Also:
    • ALL_ROWS

      public static final int ALL_ROWS
      This denotes all rows in the spreadsheet (except the column label row).
      See Also:
    • row

      protected int row
      row affected
    • col

      protected int col
      column affected
  • Constructor Details

    • SpreadSheetModelEvent

      public SpreadSheetModelEvent(ISpreadSheetModel source)
      This specifies that all data in the spreadsheet has changed. Listeners should discard any state that was based on the rows and requery the model to get the new row and column counts and all the values.
      Parameters:
      source - the source of the event
    • SpreadSheetModelEvent

      public SpreadSheetModelEvent(ISpreadSheetModel source, int row, int col)
      This specifies that all data in the given spreadsheet cell has changed. If a row or column label has changed, use ROW_LABEL_COLUMN or COLUMN_LABEL_ROW to denote it. To specify that all the rows (or columns) have changed, use ALL_ROWS (or ALL_COLUMNS).
      Parameters:
      source - the source of the event
      row - - row index changed
      column - - column index changed
  • Method Details

    • getRow

      public int getRow()
      Returns the row index changed (beginning at 1). If a label has changed, it returns COLUMN_LABEL_ROW. If all the rows have changed, it returns ALL_ROWS.
    • getColumn

      public int getColumn()
      Returns the column index changed (beginning at 1). If label has changed, it returns ROW_LABEL_COLUMN. If all the rows have changed, it returns ALL_COLUMNS.