org.jcreme.reporting
Class ReportChangeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.jcreme.reporting.ReportChangeEvent
All Implemented Interfaces:
java.io.Serializable

public class ReportChangeEvent
extends java.util.EventObject

Instances of this class signal changes in a Report object. They are typically used to enable a GUI refresh.

Version:
$Revision: 1.1 $
Author:
$Author: dbregeon $
See Also:
Serialized Form

Field Summary
static int COLUMN_LIST
          This type signals that the column list has changed.
static int DELETE
          This type signals that some lines have been removed.
static int INSERT
          This type signals that new lines have been added.
static int UPDATE
          This type signals that some lines have changed.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ReportChangeEvent(Report source)
          Creates new ReportChangeEvent
ReportChangeEvent(Report source, int row)
          Creates new ReportChangeEvent
ReportChangeEvent(Report source, int firstRow, int lastRow)
          Creates new ReportChangeEvent
ReportChangeEvent(Report source, int firstRow, int lastRow, int column)
          Creates new ReportChangeEvent
ReportChangeEvent(Report source, int firstRow, int lastRow, int firstColumn, int lastColumn)
          Creates new ReportChangeEvent
ReportChangeEvent(Report source, int firstRow, int lastRow, int firstColumn, int lastColumn, int type)
          Creates new ReportChangeEvent
 
Method Summary
 int getFirstColumn()
          This method gives access to the number of the first column that has changed.
 int getFirstRow()
          This method gives access to the number of the first line that has changed.
 int getLastColumn()
          This method gives access to the number of the last column that has changed.
 int getLastRow()
          This method gives access to the number of the last line that has changed.
 int getType()
          Gives access to the type of change that occured in the source.
 
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

INSERT

public static final int INSERT
This type signals that new lines have been added.

See Also:
Constant Field Values

UPDATE

public static final int UPDATE
This type signals that some lines have changed.

See Also:
Constant Field Values

DELETE

public static final int DELETE
This type signals that some lines have been removed.

See Also:
Constant Field Values

COLUMN_LIST

public static final int COLUMN_LIST
This type signals that the column list has changed.

See Also:
Constant Field Values
Constructor Detail

ReportChangeEvent

public ReportChangeEvent(Report source)
Creates new ReportChangeEvent

Parameters:
source - the report that changed.

ReportChangeEvent

public ReportChangeEvent(Report source,
                         int row)
Creates new ReportChangeEvent

Parameters:
source - the report that changed.
row - the row that changed in the report.

ReportChangeEvent

public ReportChangeEvent(Report source,
                         int firstRow,
                         int lastRow)
Creates new ReportChangeEvent

Parameters:
source - the report that changed.
firstRow - the first row that changed in the report.
lastRow - the last row that changed in the report.

ReportChangeEvent

public ReportChangeEvent(Report source,
                         int firstRow,
                         int lastRow,
                         int column)
Creates new ReportChangeEvent

Parameters:
source - the report that changed.
firstRow - the first row that changed in the report.
lastRow - the last row that changed in the report.
column - the column that changed in the lines.

ReportChangeEvent

public ReportChangeEvent(Report source,
                         int firstRow,
                         int lastRow,
                         int firstColumn,
                         int lastColumn)
Creates new ReportChangeEvent

Parameters:
source - the report that changed.
firstRow - the first row that changed in the report.
lastRow - the last row that changed in the report.
firstColumn - the first column that changed in the lines.
lastColumn - the last column that changed in the lines.

ReportChangeEvent

public ReportChangeEvent(Report source,
                         int firstRow,
                         int lastRow,
                         int firstColumn,
                         int lastColumn,
                         int type)
Creates new ReportChangeEvent

Parameters:
source - the report that changed.
firstRow - the first row that changed in the report.
lastRow - the last row that changed in the report.
firstColumn - the first column that changed in the lines.
lastColumn - the last column that changed in the lines.
type - the type of change that occured.
Method Detail

getFirstRow

public int getFirstRow()
This method gives access to the number of the first line that has changed.

Returns:
the number of the first line that changed.

getLastRow

public int getLastRow()
This method gives access to the number of the last line that has changed.

Returns:
the number of the last line that changed.

getFirstColumn

public int getFirstColumn()
This method gives access to the number of the first column that has changed.

Returns:
the number of the first column that changed.

getLastColumn

public int getLastColumn()
This method gives access to the number of the last column that has changed.

Returns:
the number of the last column that changed.

getType

public int getType()
Gives access to the type of change that occured in the source.

Returns:
the type of the change (INSERT, UPDATE, DELETE or COLUMN_LIST).


Copyright 2006 null. All Rights Reserved.