@Deprecated public class IltChildrenModelEvent extends EventObject
There are three types of events:
CHILD_ADDED
). The corresponding child
relation is available and will be taken into account.
CHILD_REMOVED
).
CHILD_RELATION_CHANGED
).
ALL_CHILDREN_CHANGED
).
IltChildrenModelListener
,
DataSourceObjectEvent
,
IltDefaultDataSource
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
ALL_CHILDREN_CHANGED
Deprecated.
|
static int |
CHILD_ADDED
Deprecated.
|
static int |
CHILD_RELATION_CHANGED
Deprecated.
|
static int |
CHILD_REMOVED
Deprecated.
|
source
Constructor and Description |
---|
IltChildrenModelEvent(IltChildrenModel source,
int id)
Deprecated.
Creates an event.
|
IltChildrenModelEvent(IltChildrenModel source,
int id,
int childIndex,
IltStateHolder childObject)
Deprecated.
Creates an event.
|
IltChildrenModelEvent(IltChildrenModel source,
int id,
int childIndex,
IltStateHolder childObject,
Object oldChildRelation,
Object newChildRelation)
Deprecated.
Creates an event.
|
Modifier and Type | Method and Description |
---|---|
int |
getChildIndex()
Deprecated.
Returns the index of the added/removed child object.
|
IltStateHolder |
getChildObject()
Deprecated.
Returns the added/removed child object.
|
IltChildrenModel |
getChildrenModel()
Deprecated.
Returns the model on which the event has occurred.
|
int |
getID()
Deprecated.
Returns the event type.
|
Object |
getNewChildRelation()
Deprecated.
Returns the child relation after the event was fired.
|
Object |
getOldChildRelation()
Deprecated.
Returns the child relation before the event was fired.
|
getSource, toString
public static final int CHILD_ADDED
public static final int CHILD_REMOVED
public static final int CHILD_RELATION_CHANGED
public static final int ALL_CHILDREN_CHANGED
public IltChildrenModelEvent(IltChildrenModel source, int id, int childIndex, IltStateHolder childObject)
source
- the source of the eventid
- the event typechildIndex
- the index of the inserted/removed child objectchildObject
- the inserted/removed child object itselfpublic IltChildrenModelEvent(IltChildrenModel source, int id, int childIndex, IltStateHolder childObject, Object oldChildRelation, Object newChildRelation)
source
- the source of the eventid
- the event typechildIndex
- the index of the inserted/removed child objectchildObject
- the inserted/removed child object itselfoldChildRelation
- the child relation before the event.newChildRelation
- the child relation after the event.public IltChildrenModelEvent(IltChildrenModel source, int id)
source
- the source of the eventid
- the event typepublic IltChildrenModel getChildrenModel()
public int getID()
public int getChildIndex()
public IltStateHolder getChildObject()
public Object getOldChildRelation()
public Object getNewChildRelation()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.