EspressReport 6.6

quadbase.reportdesigner.util
Class SpreadSheetModelEvent

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

public class SpreadSheetModelEvent
extends java.util.EventObject

This event specifies that a cell values in a SpreadSheetModel have been modified.

See Also:
ISpreadSheetModel, Serialized Form

Field Summary
static int ALL_COLUMNS
          This denotes all columns in the spreadsheet (except the row label column).
static int ALL_ROWS
          This denotes all rows in the spreadsheet (except the column label row).
protected  int col
          column affected
static int COLUMN_LABEL_ROW
          This denotes the row denoting the column labels.
protected  int row
          row affected
static int ROW_LABEL_COLUMN
          This denotes the column denoting the row labels.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SpreadSheetModelEvent(ISpreadSheetModel source)
          This specifies that all data in the spreadsheet has changed.
SpreadSheetModelEvent(ISpreadSheetModel source, int row, int col)
          This specifies that all data in the given spreadsheet cell has changed.
 
Method Summary
 int getColumn()
          Returns the column index changed (beginning at 1).
 int getRow()
          Returns the row index changed (beginning at 1).
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ROW_LABEL_COLUMN

public static final int ROW_LABEL_COLUMN
This denotes the column denoting the row labels.

See Also:
Constant Field Values

COLUMN_LABEL_ROW

public static final int COLUMN_LABEL_ROW
This denotes the row denoting the column labels.

See Also:
Constant Field Values

ALL_COLUMNS

public static final int ALL_COLUMNS
This denotes all columns in the spreadsheet (except the row label column).

See Also:
Constant Field Values

ALL_ROWS

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

See Also:
Constant Field Values

row

protected int row
row affected


col

protected int col
column affected

Constructor Detail

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:
row - - row index changed
column - - column index changed
source - the source of the event
Method Detail

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.


EspressReport 6.6