A
TopComponent designed to serve as an editor for a "document" object.
In contrast to a "normal"
TopComponent, a
DocumentTopComponentretains a selected state even after component deactivation. It can also be undocked/floated
into a
WorkspaceTopComponent and thereby undergo the usual
TopComponent lifecyle as
indicated by the various notification methods given by the interface
NotifiableComponent:
-
#componentOpened()/
#componentClosed() method will be called if the corresponding internal frame is activated/deactivated;
-
#componentActivated()/
#componentDeactivated() method will be called if the corresponding internal frame is activated/deactivated;
-
#componentShowing()/
#componentHidden() method will be called if the corresponding internal frame is iconified/deiconified.
Document windows keep a constant reference to the document object which it exposes through the window's lookup.
Overrides may use the
#getDynamicContent() to alter the objects in the exposed lookup,
however, the document object will always remain in it.