public class FlatTableModelEvent extends EventObject
IlvFlatTableModel
.FlatTableModelListener
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
FlatTableModelEvent.Type
This class defines the event types of the outer event class.
|
source
Constructor and Description |
---|
FlatTableModelEvent(IlvFlatTableModel source,
FlatTableModelEvent.Type type)
Creates an event.
|
FlatTableModelEvent(IlvFlatTableModel source,
FlatTableModelEvent.Type type,
int column,
boolean oldValue,
boolean newValue)
Creates an event.
|
FlatTableModelEvent(IlvFlatTableModel source,
FlatTableModelEvent.Type type,
int column,
IlvDataColumnInfo columnInfo)
Creates an event.
|
FlatTableModelEvent(IlvFlatTableModel source,
FlatTableModelEvent.Type type,
int firstRow,
int lastRow)
Creates an event.
|
FlatTableModelEvent(IlvFlatTableModel source,
FlatTableModelEvent.Type type,
int firstRow,
int lastRow,
int column)
Creates an event.
|
FlatTableModelEvent(IlvFlatTableModel source,
FlatTableModelEvent.Type type,
int column,
Object oldValue,
Object newValue)
Creates an event.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Returns the index of the affected column, or -1 for all columns.
|
IlvDataColumnInfo |
getColumnInfo()
Returns the metainformation of the affected column, or
null
for all columns. |
int |
getFirstRow()
Returns the first affected row.
|
int |
getLastRow()
Returns the last affected row.
|
IlvFlatTableModel |
getModel()
Returns the model this event comes from.
|
Object |
getNewValue()
Returns the new value inside the
IlvDataColumnInfo . |
Object |
getOldValue()
Returns the old value inside the
IlvDataColumnInfo . |
FlatTableModelEvent.Type |
getType()
Returns the event type.
|
String |
toString()
Returns a
String representation of this event. |
getSource
public FlatTableModelEvent(IlvFlatTableModel source, FlatTableModelEvent.Type type)
You are not meant to use this constructor. SERIES_BEGIN
and SERIES_END
are automatically generated by the class
IlvAbstractFlatTableModel
.
source
- The model.type
- One of SERIES_BEGIN
, SERIES_END
.public FlatTableModelEvent(IlvFlatTableModel source, FlatTableModelEvent.Type type, int firstRow, int lastRow, int column)
source
- The model.type
- One of DATA_CHANGED
, BEFORE_DATA_CHANGE
.firstRow
- First row changed.lastRow
- Last row changed.column
- The column that changed, or -1 for all columns.public FlatTableModelEvent(IlvFlatTableModel source, FlatTableModelEvent.Type type, int firstRow, int lastRow)
source
- The model.type
- One of ROWS_ADDED
, ROWS_REMOVED
,
BEFORE_ROWS_REMOVED
.firstRow
- The first row that was added or removed (index after adding
or before removing the rows).lastRow
- The last row that was added or removed (index after adding
or before removing the rows).public FlatTableModelEvent(IlvFlatTableModel source, FlatTableModelEvent.Type type, int column, IlvDataColumnInfo columnInfo)
source
- The model.type
- One of COLUMN_ADDED
, COLUMN_REMOVED
,
BEFORE_COLUMN_REMOVED
.column
- The column that was added or removed (index after adding
or before removing).columnInfo
- The IlvDataColumnInfo
of the column that was
added or removed.public FlatTableModelEvent(IlvFlatTableModel source, FlatTableModelEvent.Type type, int column, Object oldValue, Object newValue)
source
- The model.type
- One of EMPTY_VALUE_CHANGED
,
ENUM_VALUES_CHANGED
,
MIN_VALUE_CHANGED
,
MAX_VALUE_CHANGED
.column
- The affected column.oldValue
- The old value.newValue
- The new Value.public FlatTableModelEvent(IlvFlatTableModel source, FlatTableModelEvent.Type type, int column, boolean oldValue, boolean newValue)
source
- The model.type
- One of ENUMERATED_CHANGED
.column
- The affected column.oldValue
- The old value.newValue
- The new Value.public IlvFlatTableModel getModel()
public FlatTableModelEvent.Type getType()
public int getFirstRow()
DATA_CHANGED
,
BEFORE_DATA_CHANGE
,
ROWS_ADDED
, ROWS_REMOVED
,
BEFORE_ROWS_REMOVED
.public int getLastRow()
DATA_CHANGED
,
BEFORE_DATA_CHANGE
,
ROWS_ADDED
, ROWS_REMOVED
,
BEFORE_ROWS_REMOVED
.public int getColumn()
DATA_CHANGED
,
BEFORE_DATA_CHANGE
,
COLUMN_ADDED
, COLUMN_REMOVED
,
BEFORE_COLUMN_REMOVED
,
EMPTY_VALUE_CHANGED
, ENUMERATED_CHANGED
,
ENUM_VALUES_CHANGED
, MIN_VALUE_CHANGED
,
MAX_VALUE_CHANGED
.public IlvDataColumnInfo getColumnInfo()
null
for all columns.
Assumes the event type is one of DATA_CHANGED
,
BEFORE_DATA_CHANGE
,
COLUMN_ADDED
, COLUMN_REMOVED
,
BEFORE_COLUMN_REMOVED
,
EMPTY_VALUE_CHANGED
, ENUMERATED_CHANGED
,
ENUM_VALUES_CHANGED
, MIN_VALUE_CHANGED
,
MAX_VALUE_CHANGED
.public Object getOldValue()
IlvDataColumnInfo
.
Assumes the event type is one of EMPTY_VALUE_CHANGED
,
ENUMERATED_CHANGED
, ENUM_VALUES_CHANGED
,
MIN_VALUE_CHANGED
, MAX_VALUE_CHANGED
.public Object getNewValue()
IlvDataColumnInfo
.
Assumes the event type is one of EMPTY_VALUE_CHANGED
,
ENUMERATED_CHANGED
, ENUM_VALUES_CHANGED
,
MIN_VALUE_CHANGED
, MAX_VALUE_CHANGED
.public String toString()
String
representation of this event.toString
in class EventObject
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.