|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sdsc.mbt.viewables.StructureDocumentEvent
An event generated when structural changes are made to a StructureDocument. This event class is used when Viewer or Structure objects are added or removed from a StructureDocument. But, this event type is NOT used when the internal state of any of those objects change (see the StructureEvent, StructureMapEvent, and StructureStyleEvent classes).
Example:
When a Viewer is added to a StructureDocument, the event sent to the
Viewer is: type=TYPE_VIEWER, change=CHANGE_ADDED
and the Viewer object should use the structureDocument reference
to process/display each Structure object in the document.
Example:
When a Structure is removed from a StructureDocument, the event sent to the
Viewer is: type=TYPE_STRUCTURE, change=CHANGE_REMOVED
and the Viewer object should remove all viewable objects associated with the
Structure from its display.
StructureDocument
,
Viewer
,
,
Serialized FormField Summary | |
int |
change
The kind of change that occured in the StructureDocument. |
static int |
CHANGE_ADDED
Objects were added. |
static int |
CHANGE_RELOAD
|
static int |
CHANGE_REMOVED
Objects were removed. |
static int |
CHANGE_RENAMED
|
Entry |
entry
The Structure object that was effected in the StructureDocument. |
StructureDocument |
structureDocument
The StructureDocument object for which the state changed (once a Viewer is added to a StructureDocument this value shouldn't change since each Viewer instance only views one document at a time). |
int |
type
The type of object that was added/removed in the StructureDocument. |
static int |
TYPE_DATA
A Structure object was added/removed in the StructureDocument. |
static int |
TYPE_GLOBAL
|
static int |
TYPE_VIEWER
A Viewer object was added/removed in the StructureDocument. |
Viewer |
viewer
The Viewer object that was effected in the StructureDocument. |
Constructor Summary | |
StructureDocumentEvent()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public StructureDocument structureDocument
public Entry entry
public Viewer viewer
public int type
public static final int TYPE_VIEWER
public static final int TYPE_DATA
public static final int TYPE_GLOBAL
public int change
public static final int CHANGE_ADDED
public static final int CHANGE_REMOVED
public static final int CHANGE_RENAMED
public static final int CHANGE_RELOAD
Constructor Detail |
public StructureDocumentEvent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |