|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Anytime a Property has changed, this event will be sent.
If a Property is deleted, the getNewValue will return
null. If a Property is added, the getOldValue will
return null. What's trying to be said, is that the returned values should
be checked for NullPointerExceptions.
public void propertyChanged( PropertyChangedEvent event ) {
if( event.getEventType() == PROPERTY_ADDED ) {
System.out.println("Property was added");
System.out.println("Name: " + event.getPropertyName());
}
}
| Field Summary | |
static int |
CATEGORY_ADDED
constant representing an added category event |
static int |
CATEGORY_CHANGED
constant representing a changed category event |
static int |
CATEGORY_REMOVED
constant representing a removed category event |
static int |
PROPERTY_ADDED
constant representing an added property event |
static int |
PROPERTY_CHANGED
constant representing a changed property event |
static int |
PROPERTY_REMOVED
constant representing a removed property event |
| Method Summary | |
int |
getEventType()
Information about the event. |
java.lang.String |
getNewValue()
The new value of the Property. |
java.lang.String |
getOldValue()
The old value of the Property. |
java.lang.String |
getPropertyName()
The name of the Property that has changed. |
| Field Detail |
public static final int PROPERTY_ADDED
public static final int PROPERTY_REMOVED
public static final int PROPERTY_CHANGED
public static final int CATEGORY_ADDED
public static final int CATEGORY_REMOVED
public static final int CATEGORY_CHANGED
| Method Detail |
public java.lang.String getPropertyName()
public java.lang.String getOldValue()
public java.lang.String getNewValue()
public int getEventType()
PROPERTY_ADDED,
PROPERTY_REMOVED,
CATEGORY_ADDED,
CATEGORY_REMOVED
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||