|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectagg.util.Change
public class Change
Encapsulation of change information sent out by observable classes using the
method notifyObservers(change)
of the class
java.util.Observable
. Observer objects then receive such
information as the second argument to their update()
method.
Subclasses may specifiy the detailed semantics.
Field Summary | |
---|---|
static int |
MAPPING_ADDED
code for the adding of a mapping. |
static int |
MAPPING_REMOVED
code for the removing of a mapping. |
static int |
MODIFIED
code for general modifications. |
static int |
NOT_DEFINED
code for a not specified change object. |
static int |
OBJECT_CREATED
code for a newly created subobject. |
static int |
OBJECT_DESTROYED
code for a subobject, which will be destroyed. |
static int |
OBJECT_GLUED
code for two subobjects, which will be glued. |
static int |
OBJECT_MODIFIED
code for a modified subobject. |
static int |
OBSERVABLE_GONE
code for the last message of a observable just before it is marked for deletion. |
static int |
REDO_DONE
|
static int |
SOURCE_SET
|
static int |
SOURCE_UNSET
|
static int |
TARGET_SET
|
static int |
TARGET_UNSET
|
static int |
WANT_DESTROY_OBJECT
|
static int |
WANT_MODIFY_OBJECT
|
Constructor Summary | |
---|---|
Change(int event)
Construct myself to be a change information representing the coded event. |
|
Change(int event,
java.lang.Object item)
Construct myself to be a change information with the given item and representing the coded event. |
|
Change(int event,
java.lang.Object changed,
java.lang.Object changer)
Construct myself to be a change information with the given item and its changer and representing the coded event. |
|
Change(java.lang.Object item)
Construct myself to be a change information with the given item. |
Method Summary | |
---|---|
java.lang.Object |
getChanger()
Return the changer of the item. |
int |
getEvent()
returns the code for this event. |
java.lang.Object |
getItem()
Return my item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NOT_DEFINED
public static final int OBSERVABLE_GONE
public static final int OBJECT_CREATED
getItem()
method should return the new object.
public static final int OBJECT_MODIFIED
getItem()
method should return a Pair with the modified object as
first element and an Integer code of attribute event ID
AttrEvent.getID()
public static final int WANT_MODIFY_OBJECT
public static final int OBJECT_DESTROYED
getItem()
method should return the
object to destroy.
public static final int WANT_DESTROY_OBJECT
public static final int OBJECT_GLUED
getItem()
method should return a Pair
of objects to glue with object to keep as first element and object to
glue (and destroy) as second.
public static final int MAPPING_ADDED
getItem()
method should return the object to map.
public static final int MAPPING_REMOVED
getItem()
method should return the
object to remove the mapping.
public static final int MODIFIED
getItem()
method returns null.
public static final int SOURCE_SET
public static final int SOURCE_UNSET
public static final int TARGET_SET
public static final int TARGET_UNSET
public static final int REDO_DONE
Constructor Detail |
---|
public Change(java.lang.Object item)
public Change(int event, java.lang.Object item)
event
- a number code for the event happened, you can use the here
defined event codes or your ownitem
- the object of the event (for example the newly created arc)public Change(int event, java.lang.Object changed, java.lang.Object changer)
event
- a number code for the event happened, you can use the here
defined event codes or your ownchanged
- the object of the event (for example the newly created arc)changer
- the object which performed this changepublic Change(int event)
event
- a number code for the event happened, you can use the here
defined event codes or your ownMethod Detail |
---|
public final java.lang.Object getItem()
public final java.lang.Object getChanger()
public int getEvent()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |