public class FlatListModelEvent extends EventObject
IlvFlatListModel
.FlatListModelListener
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
FlatListModelEvent.Type
This class defines the event types of the outer event class.
|
source
Constructor and Description |
---|
FlatListModelEvent(IlvFlatListModel source,
FlatListModelEvent.Type type)
Creates an event.
|
FlatListModelEvent(IlvFlatListModel source,
FlatListModelEvent.Type type,
int column,
boolean oldValue,
boolean newValue)
Creates an event.
|
FlatListModelEvent(IlvFlatListModel source,
FlatListModelEvent.Type type,
int column,
IlvDataColumnInfo columnInfo)
Creates an event.
|
FlatListModelEvent(IlvFlatListModel source,
FlatListModelEvent.Type type,
int column,
Object oldValue,
Object newValue)
Creates an event.
|
FlatListModelEvent(IlvFlatListModel source,
FlatListModelEvent.Type type,
Object[] objects,
int firstIndex)
Creates an event.
|
FlatListModelEvent(IlvFlatListModel source,
FlatListModelEvent.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 meta information of the affected column, or
null
for all columns. |
int |
getFirstIndex()
Returns the index of the first affected object.
|
IlvFlatListModel |
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 . |
FlatListModelEvent.Type |
getType()
Returns the event type.
|
String |
toString()
Returns a
String representation of this event. |
getSource
public FlatListModelEvent(IlvFlatListModel source, FlatListModelEvent.Type type)
You are not meant to use this constructor. SERIES_BEGIN
and SERIES_END
are automatically generated by the class
IlvAbstractFlatListModel
.
source
- The model.type
- One of SERIES_BEGIN
, SERIES_END
.public FlatListModelEvent(IlvFlatListModel source, FlatListModelEvent.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
- Column that changed, or -1 for all columns.public FlatListModelEvent(IlvFlatListModel source, FlatListModelEvent.Type type, Object[] objects, int firstIndex)
source
- The model.type
- One of OBJECTS_ADDED
,
OBJECTS_REMOVED
, BEFORE_OBJECTS_REMOVED
.objects
- The set of objects that was added or removed, in the same
order as in source.getObjects()
.firstIndex
- The index of the first object (index after adding or
before removing the objects). The second object is/was
at firstIndex+1, and so on.public FlatListModelEvent(IlvFlatListModel source, FlatListModelEvent.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 FlatListModelEvent(IlvFlatListModel source, FlatListModelEvent.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 FlatListModelEvent(IlvFlatListModel source, FlatListModelEvent.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 IlvFlatListModel getModel()
public FlatListModelEvent.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 getFirstIndex()
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.