Popups are used to display a
Component
to the user, typically
on top of all the other
Component
s in a particular containment
hierarchy.
Popups are used to display a
Component
to the user, typically
on top of all the other
Component
s in a particular containment
hierarchy.
Popup
s have a very small life cycle. Once you
have obtained a
Popup
, and hidden it (invoked the
hide
method), you should no longer
invoke any methods on it. This allows the
PopupFactory
to cache
Popup
s for later use.
The general contract is that if you need to change the size of the
Component
, or location of the Popup
, you should
obtain a new Popup
.
Popup
does not descend from Component
, rather
implementations of Popup
are responsible for creating
and maintaining their own Component
s to render the
requested Component
to the user.
You typically do not explicitly create an instance of Popup
,
instead obtain one from a PopupFactory
.