|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--fr.inria.ketuk.BeanEditEvent
An Event representing an editing operation that must be performed on a bean
Field Summary | |
static int |
ADD_CHILD
Indicates that a child has to be added |
static int |
CHANGE_PROPERTY
Indicates that a property has to be changed |
static int |
END
Indicates that a end is requested |
static int |
REMOVE_CHILD
Indicates that a child has to be removed |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
BeanEditEvent(java.lang.Object o,
int eventType)
Constuctor used to create a 'END' event |
|
BeanEditEvent(java.lang.Object o,
int eventType,
java.lang.Object child)
Constuctor used to create a 'ADD_CHILD' or 'REMOVE_CHILD' event |
|
BeanEditEvent(java.lang.Object o,
int eventType,
java.lang.Object child,
int childIndex)
Constuctor used to create a 'ADD_CHILD' event |
|
BeanEditEvent(java.lang.Object o,
int eventType,
java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Constuctor used to create a 'CHANGE_PROPERTY' event |
Method Summary | |
static BeanEditEvent |
createAddChildEvent(java.lang.Object o,
java.lang.Object child)
Constructor used to create a 'ADD_CHILD' event |
static BeanEditEvent |
createAddChildEvent(java.lang.Object o,
java.lang.Object child,
int childIndex)
Constructor used to create a 'ADD_CHILD' event |
static BeanEditEvent |
createAddChildEvent(java.lang.Object o,
java.lang.String childName)
Constructor used to create a 'ADD_CHILD' event |
static BeanEditEvent |
createChangePropertyEvent(java.lang.Object o,
java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Constructor used to create a 'CHANGE_PROPERTY' event |
static BeanEditEvent |
createRemoveBeanEvent(java.lang.Object o,
java.lang.Object child)
Constuctor used to create a 'REMOVE_CHILD' event |
java.lang.Object |
getChild()
Gets the added child |
int |
getChildIndex()
Gets the added child's index |
java.lang.String |
getChildName()
Gets the name of the added child |
int |
getEventType()
Gets the event type |
java.lang.Object |
getNewProperty()
Gets the property's new value |
java.lang.Object |
getOldProperty()
Gets the property's old value |
java.lang.String |
getPropertyName()
Gets the property name |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static int CHANGE_PROPERTY
public static int REMOVE_CHILD
public static int ADD_CHILD
public static int END
Constructor Detail |
public BeanEditEvent(java.lang.Object o, int eventType, java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
o
- the event's sourceeventType
- the event's type (should be 'CHANGE_PROPERTY')propertyName
- the name of the updated propertyoldValue
- the previous value of the propertynewValue
- the new value of the propertypublic BeanEditEvent(java.lang.Object o, int eventType)
o
- the event's sourceeventType
- the event's type (should be 'END')public BeanEditEvent(java.lang.Object o, int eventType, java.lang.Object child, int childIndex)
o
- the event sourceeventType
- the event type (should be 'ADD_CHILD')child
- the added childchildIndex
- the position of the added childpublic BeanEditEvent(java.lang.Object o, int eventType, java.lang.Object child)
o
- the event sourceeventType
- the event typechild
- the added or removed childMethod Detail |
public static BeanEditEvent createRemoveBeanEvent(java.lang.Object o, java.lang.Object child)
o
- the event sourcechild
- the removed childpublic static BeanEditEvent createChangePropertyEvent(java.lang.Object o, java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
o
- the event sourcepropertyName
- the name of the updated propertyoldValue
- the previous value of the propertynewValue
- the new value of the propertypublic static BeanEditEvent createAddChildEvent(java.lang.Object o, java.lang.Object child, int childIndex)
o
- the event sourcechild
- the added childchildIndex
- the position of the added childpublic static BeanEditEvent createAddChildEvent(java.lang.Object o, java.lang.Object child)
o
- the event sourcechild
- the added childpublic static BeanEditEvent createAddChildEvent(java.lang.Object o, java.lang.String childName)
o
- the event sourcechildName
- the name of the child to addpublic int getEventType()
public java.lang.String getPropertyName()
public java.lang.Object getOldProperty()
public java.lang.Object getNewProperty()
public java.lang.Object getChild()
public int getChildIndex()
public java.lang.String getChildName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |