public class DataChangedEvent extends ModelEvent
Describes a change to data. Data providers fire this event to notify views of changes to data. Views listen for this event to know when to repaint.
Modifier and Type | Field and Description |
---|---|
static int |
DRILL_CHANGE
The data has been drilled.
|
static int |
LAYER_METADATA_CHANGE
The data has been updated by layer metadata being set.
|
protected boolean |
m_bEdgeHiddenDirty |
protected boolean |
m_bEdgePageDirty |
protected DataAccess |
m_dataAccess |
protected int |
m_nChangeType |
static int |
PAGE_CHANGE
The current page has changed.
|
static int |
PIVOT_CHANGE
The data has been pivoted.
|
static int |
SEL_CHANGE
A selection has changed.
|
static int |
SETSTATE_CHANGE
The data has been updated by state being set.
|
static int |
UNKNOWN_CHANGE
The nature of the change is unknown.
|
columnDirty, dataDirty, rowDirty
Constructor and Description |
---|
DataChangedEvent(java.lang.Object objSource,
DataAccess dataAccess,
boolean bEdgeDataDirty,
boolean bEdgeRowDirty,
boolean bEdgeColumnDirty,
boolean bEdgePageDirty)
Constructor that does not specify the type of change.
|
DataChangedEvent(java.lang.Object objSource,
DataAccess dataAccess,
int nType,
boolean bEdgeDataDirty,
boolean bEdgeRowDirty,
boolean bEdgeColumnDirty,
boolean bEdgePageDirty)
Constructor that specifies the type of change.
|
DataChangedEvent(java.lang.Object objSource,
DataAccess dataAccess,
int nType,
boolean bEdgeDataDirty,
boolean bEdgeRowDirty,
boolean bEdgeColumnDirty,
boolean bEdgePageDirty,
boolean bEdgeHiddenDirty)
Constructor that specifies the type of change.
|
Modifier and Type | Method and Description |
---|---|
DataAccess |
getDataAccess()
Retrieves the
DataAccess that provides access to the
changed data. |
int |
getType()
Retrieves the type of change that has occurred.
|
boolean |
isHiddenDirty()
Indicates whether anything in the hidden edge has changed.
|
boolean |
isPageDirty()
Indicates whether anything in the page edge has changed.
|
void |
setDataAccess(DataAccess dataAccess)
Specifies a
DataAccess for this event. |
isColumnDirty, isDataDirty, isRowDirty
public static final int UNKNOWN_CHANGE
public static final int PAGE_CHANGE
public static final int DRILL_CHANGE
public static final int PIVOT_CHANGE
public static final int SEL_CHANGE
public static final int SETSTATE_CHANGE
public static final int LAYER_METADATA_CHANGE
protected boolean m_bEdgePageDirty
protected boolean m_bEdgeHiddenDirty
protected int m_nChangeType
protected DataAccess m_dataAccess
public DataChangedEvent(java.lang.Object objSource, DataAccess dataAccess, boolean bEdgeDataDirty, boolean bEdgeRowDirty, boolean bEdgeColumnDirty, boolean bEdgePageDirty)
objSource
- The source of this event.dataAccess
- The DataAccess
that provides access to the
changed data.bEdgeDataDirty
- true
if the data (including any types of
data specified in the DataMap
) has changed,
false
if not.bEdgeRowDirty
- true
if anything in the row edge has changed,
false
if not.bEdgeColumnDirty
- true
if anything in the column edge has
changed, false
if not.bEdgePageDirty
- true
if anything in the page edge has changed,
false
if not.public DataChangedEvent(java.lang.Object objSource, DataAccess dataAccess, int nType, boolean bEdgeDataDirty, boolean bEdgeRowDirty, boolean bEdgeColumnDirty, boolean bEdgePageDirty)
objSource
- The source of this event.dataAccess
- The DataAccess
that provides access to the
changed data.nType
- A constant that represents the type of change that has occurred.bEdgeDataDirty
- true
if the data (including any types of
data specified in the DataMap
) has changed,
false
if not.bEdgeRowDirty
- true
if anything in the row edge has changed,
false
if not.bEdgeColumnDirty
- true
if anything in the column edge has
changed, false
if not.bEdgePageDirty
- true
if anything in the page edge has changed,
false
if not.public DataChangedEvent(java.lang.Object objSource, DataAccess dataAccess, int nType, boolean bEdgeDataDirty, boolean bEdgeRowDirty, boolean bEdgeColumnDirty, boolean bEdgePageDirty, boolean bEdgeHiddenDirty)
objSource
- The source of this event.dataAccess
- The DataAccess
that provides access to the
changed data.nType
- A constant that represents the type of change that
has occurred.bEdgeDataDirty
- true
if the data (including any types of
data specified in the DataMap
) has changed,
false
if not.bEdgeRowDirty
- true
if anything in the row edge has changed,
false
if not.bEdgeColumnDirty
- true
if anything in the column edge has
changed, false
if not.bEdgePageDirty
- true
if anything in the page edge has changed,
false
if not.bEdgeHiddenDirty
- true
if anything in the hidden edge has changed,
false
if not.public void setDataAccess(DataAccess dataAccess)
DataAccess
for this event.dataAccess
- The DataAccess
that provides access to the changed
data.public DataAccess getDataAccess()
DataAccess
that provides access to the
changed data.DataAccess
that provides access to the changed
data.public boolean isPageDirty()
true
if anything in the page edge has changed,
false
if not.public boolean isHiddenDirty()
true
if anything in the hidden edge has changed,
false
if not.public int getType()