public class FlatSetModelEvent extends EventObject
IlvFlatSetModel
.FlatSetModelListener
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
FlatSetModelEvent.Type
This class defines the event types of the outer event class.
|
source
Constructor and Description |
---|
FlatSetModelEvent(IlvFlatSetModel source,
FlatSetModelEvent.Type type)
Creates an event.
|
FlatSetModelEvent(IlvFlatSetModel source,
FlatSetModelEvent.Type type,
int column,
boolean oldValue,
boolean newValue)
Creates an event.
|
FlatSetModelEvent(IlvFlatSetModel source,
FlatSetModelEvent.Type type,
int column,
IlvDataColumnInfo columnInfo)
Creates an event.
|
FlatSetModelEvent(IlvFlatSetModel source,
FlatSetModelEvent.Type type,
int column,
Object oldValue,
Object newValue)
Creates an event.
|
FlatSetModelEvent(IlvFlatSetModel source,
FlatSetModelEvent.Type type,
Object[] objects)
Creates an event.
|
FlatSetModelEvent(IlvFlatSetModel source,
FlatSetModelEvent.Type type,
Object object,
int column)
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. |
IlvFlatSetModel |
getModel()
Returns the model from which this event comes.
|
Object |
getNewValue()
Returns the new value inside the
IlvDataColumnInfo . |
Object |
getObject()
Returns the affected object, or
null for all objects. |
Object[] |
getObjects()
Returns the affected objects.
|
Object |
getOldValue()
Returns the old value inside the
IlvDataColumnInfo . |
FlatSetModelEvent.Type |
getType()
Returns the event type.
|
String |
toString()
Returns a
String representation of this event. |
getSource
public FlatSetModelEvent(IlvFlatSetModel source, FlatSetModelEvent.Type type)
You are not meant to use this constructor. SERIES_BEGIN
and SERIES_END
are automatically generated by the class
IlvAbstractFlatSetModel
.
source
- The model.type
- One of SERIES_BEGIN
, SERIES_END
.public FlatSetModelEvent(IlvFlatSetModel source, FlatSetModelEvent.Type type, Object object, int column)
source
- The model.type
- One of DATA_CHANGED
, BEFORE_DATA_CHANGE
.object
- The object whose attributes have changed, or
null
for all objects.column
- The column that changed, or -1 for all columns.public FlatSetModelEvent(IlvFlatSetModel source, FlatSetModelEvent.Type type, Object[] objects)
source
- The model.type
- One of OBJECTS_ADDED
,
OBJECTS_REMOVED
, BEFORE_OBJECTS_REMOVED
.objects
- The set of objects that was added or removed.public FlatSetModelEvent(IlvFlatSetModel source, FlatSetModelEvent.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 FlatSetModelEvent(IlvFlatSetModel source, FlatSetModelEvent.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 FlatSetModelEvent(IlvFlatSetModel source, FlatSetModelEvent.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 IlvFlatSetModel getModel()
public FlatSetModelEvent.Type getType()
public Object getObject()
null
for all objects.
Assumes the event type is one of DATA_CHANGED
,
BEFORE_DATA_CHANGE
.public Object[] getObjects()
OBJECTS_ADDED
,
OBJECTS_REMOVED
, BEFORE_OBJECTS_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.