Class PopupPanel
- java.lang.Object
- 
- com.google.gwt.user.client.ui.UIObject
- 
- com.google.gwt.user.client.ui.Widget
- 
- com.google.gwt.user.client.ui.Panel
- 
- com.google.gwt.user.client.ui.SimplePanel
- 
- com.google.gwt.user.client.ui.PopupPanel
 
 
 
 
 
- 
- All Implemented Interfaces:
- HasAttachHandlers,- HasCloseHandlers<PopupPanel>,- HasHandlers,- EventListener,- EventPreview,- AcceptsOneWidget,- HasAnimation,- HasOneWidget,- HasVisibility,- HasWidgets,- HasWidgets.ForIsWidget,- IsWidget,- SourcesPopupEvents,- java.lang.Iterable<Widget>
 - Direct Known Subclasses:
- DecoratedPopupPanel,- LoggingPopup
 
 public class PopupPanel extends SimplePanel implements SourcesPopupEvents, EventPreview, HasAnimation, HasCloseHandlers<PopupPanel> A panel that can "pop up" over other widgets. It overlays the browser's client area (and any previously-created popups).A PopupPanel should not generally be added to other panels; rather, it should be shown and hidden using the show()andhide()methods.The width and height of the PopupPanel cannot be explicitly set; they are determined by the PopupPanel's widget. Calls to setWidth(String)andsetHeight(String)will call these methods on the PopupPanel's widget.  The PopupPanel can be optionally displayed with a "glass" element behind it, which is commonly used to gray out the widgets behind it. It can be enabled using setGlassEnabled(boolean). It has a default style name of "gwt-PopupPanelGlass", which can be changed usingsetGlassStyleName(String).Examplepublic class PopupPanelExample implements EntryPoint { private static class MyPopup extends PopupPanel { public MyPopup() { // PopupPanel's constructor takes 'auto-hide' as its boolean parameter. // If this is set, the panel closes itself automatically when the user // clicks outside of it. super(true); // PopupPanel is a SimplePanel, so you have to set it's widget property to // whatever you want its contents to be. setWidget(new Label("Click outside of this popup to close it")); } } public void onModuleLoad() { Button b1 = new Button("Click me to show popup"); b1.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { // Instantiate the popup and show it. new MyPopup().show(); } }); RootPanel.get().add(b1); Button b2 = new Button("Click me to show popup partway across the screen"); b2.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { // Create the new popup. final MyPopup popup = new MyPopup(); // Position the popup 1/3rd of the way down and across the screen, and // show the popup. Since the position calculation is based on the // offsetWidth and offsetHeight of the popup, you have to use the // setPopupPositionAndShow(callback) method. The alternative would // be to call show(), calculate the left and top positions, and // call setPopupPosition(left, top). This would have the ugly side // effect of the popup jumping from its original position to its // new position. popup.setPopupPositionAndShow(new PopupPanel.PositionCallback() { public void setPosition(int offsetWidth, int offsetHeight) { int left = (Window.getClientWidth() - offsetWidth) / 3; int top = (Window.getClientHeight() - offsetHeight) / 3; popup.setPopupPosition(left, top); } }); } }); RootPanel.get().add(b2); } }CSS Style Rules- .gwt-PopupPanel
- the outside of the popup
- .gwt-PopupPanel .popupContent
- the wrapper around the content
- .gwt-PopupPanelGlass
- the glass background behind the popup
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPopupPanel.AnimationTypeThe type of animation to use when opening the popup.static interfacePopupPanel.PositionCallbackA callback that is used to set the position of aPopupPanelright before it is shown.(package private) static classPopupPanel.ResizeAnimationAnAnimationused to enlarge the popup into view.- 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObjectUIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 - 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgetsHasWidgets.ForIsWidget
 
- 
 - 
Field Summary- 
Fields inherited from class com.google.gwt.user.client.ui.SimplePanelwidget
 - 
Fields inherited from class com.google.gwt.user.client.ui.WidgeteventsToSink
 - 
Fields inherited from class com.google.gwt.user.client.ui.UIObjectDEBUG_ID_PREFIX, MISSING_ELEMENT_ERROR, SETELEMENT_TWICE_ERROR
 
- 
 - 
Constructor SummaryConstructors Constructor Description PopupPanel()Creates an empty popup panel.PopupPanel(boolean autoHide)Creates an empty popup panel, specifying its "auto-hide" property.PopupPanel(boolean autoHide, boolean modal)Creates an empty popup panel, specifying its "auto-hide" and "modal" properties.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddAutoHidePartner(Element partner)Mouse events that occur within an autoHide partner will not hide a panel set to autoHide.HandlerRegistrationaddCloseHandler(CloseHandler<PopupPanel> handler)Adds aCloseEventhandler.voidaddPopupListener(PopupListener listener)voidcenter()Centers the popup in the browser window and shows it.PopupPanel.AnimationTypegetAnimationType()Get the type of animation to use when opening and closing the popup.protected ElementgetContainerElement()Override this method to specify that an element other than the root element be the container for the panel's child widget.protected ElementgetGlassElement()Get the glass element used by thisPopupPanel.java.lang.StringgetGlassStyleName()Gets the style name to be used on the glass element.intgetOffsetHeight()Gets the panel's offset height in pixels.intgetOffsetWidth()Gets the panel's offset width in pixels.intgetPopupLeft()Gets the popup's left position relative to the browser's client area.intgetPopupTop()Gets the popup's top position relative to the browser's client area.protected ElementgetStyleElement()Template method that returns the element to which style names will be applied.java.lang.StringgetTitle()Gets the title associated with this object.voidhide()Hides the popup and detaches it from the page.voidhide(boolean autoClosed)Hides the popup and detaches it from the page.booleanisAnimationEnabled()Returns true if animations are enabled, false if not.booleanisAutoHideEnabled()Returnstrueif the popup should be automatically hidden when the user clicks outside of it.booleanisAutoHideOnHistoryEventsEnabled()Returnstrueif the popup should be automatically hidden when the history token changes, such as when the user presses the browser's back button.booleanisGlassEnabled()Returnstrueif a glass element will be displayed under thePopupPanel.booleanisModal()Returnstrueif keyboard or mouse events that do not target the PopupPanel or its children should be ignored.booleanisPreviewingAllNativeEvents()Returnstrueif the popup should preview all native events, even if the event has already been consumed by another popup.booleanisShowing()Determines whether or not this popup is showing.booleanisVisible()Determines whether or not this popup is visible.(package private) voidmaybeUpdateSize()We control size by setting our child widget's size.booleanonEventPreview(Event event)Deprecated.booleanonKeyDownPreview(char key, int modifiers)Deprecated.booleanonKeyPressPreview(char key, int modifiers)Deprecated.booleanonKeyUpPreview(char key, int modifiers)Deprecated.protected voidonPreviewNativeEvent(Event.NativePreviewEvent event)protected voidonUnload()This method is called immediately before a widget will be detached from the browser's document.voidremoveAutoHidePartner(Element partner)Remove an autoHide partner.voidremovePopupListener(PopupListener listener)Deprecated.Use theHandlerRegistration.removeHandler()method on the object returned byaddCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>)instead(package private) voidsetAnimation(PopupPanel.ResizeAnimation animation)Sets the animation used to animate this popup.voidsetAnimationEnabled(boolean enable)Enable or disable animations.voidsetAnimationType(PopupPanel.AnimationType type)Set the type of animation to use when opening and closing the popup.voidsetAutoHideEnabled(boolean autoHide)Enable or disable the autoHide feature.voidsetAutoHideOnHistoryEventsEnabled(boolean enabled)Enable or disable autoHide on history change events.voidsetGlassEnabled(boolean enabled)When enabled, the background will be blocked with a semi-transparent pane the next time it is shown.voidsetGlassStyleName(java.lang.String glassStyleName)Sets the style name to be used on the glass element.voidsetHeight(java.lang.String height)Sets the height of the panel's child widget.voidsetModal(boolean modal)When the popup is modal, keyboard or mouse events that do not target the PopupPanel or its children will be ignored.voidsetPopupPosition(int left, int top)Sets the popup's position relative to the browser's client area.voidsetPopupPositionAndShow(PopupPanel.PositionCallback callback)Sets the popup's position using aPopupPanel.PositionCallback, and shows the popup.voidsetPreviewingAllNativeEvents(boolean previewAllNativeEvents)When enabled, the popup will preview all native events, even if another popup was opened after this one.voidsetTitle(java.lang.String title)Sets the title associated with this object.voidsetVisible(boolean visible)Sets whether this object is visible.voidsetWidget(Widget w)Sets this panel's widget.voidsetWidth(java.lang.String width)Sets the width of the panel's child widget.voidshow()Shows the popup and attach it to the page.voidshowRelativeTo(UIObject target)Normally, the popup is positioned directly below the relative target, with its left edge aligned with the left edge of the target.- 
Methods inherited from class com.google.gwt.user.client.ui.SimplePaneladd, getWidget, iterator, remove, setWidget
 - 
Methods inherited from class com.google.gwt.user.client.ui.Paneladd, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
 - 
Methods inherited from class com.google.gwt.user.client.ui.WidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, ensureHandlers, fireEvent, getHandlerCount, getHandlerManager, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, removeFromParent, replaceElement, setLayoutData, setParent, sinkEvents, unsinkEvents
 - 
Methods inherited from class com.google.gwt.user.client.ui.UIObjectaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.google.gwt.event.shared.HasHandlersfireEvent
 
- 
 
- 
- 
- 
Constructor Detail- 
PopupPanelpublic PopupPanel() Creates an empty popup panel. A child widget must be added to it before it is shown.
 - 
PopupPanelpublic PopupPanel(boolean autoHide) Creates an empty popup panel, specifying its "auto-hide" property.- Parameters:
- autoHide-- trueif the popup should be automatically hidden when the user clicks outside of it or the history token changes.
 
 - 
PopupPanelpublic PopupPanel(boolean autoHide, boolean modal)Creates an empty popup panel, specifying its "auto-hide" and "modal" properties.- Parameters:
- autoHide-- trueif the popup should be automatically hidden when the user clicks outside of it or the history token changes.
- modal-- trueif keyboard or mouse events that do not target the PopupPanel or its children should be ignored
 
 
- 
 - 
Method Detail- 
addAutoHidePartnerpublic void addAutoHidePartner(Element partner) Mouse events that occur within an autoHide partner will not hide a panel set to autoHide.- Parameters:
- partner- the auto hide partner to add
 
 - 
addCloseHandlerpublic HandlerRegistration addCloseHandler(CloseHandler<PopupPanel> handler) Description copied from interface:HasCloseHandlersAdds aCloseEventhandler.- Specified by:
- addCloseHandlerin interface- HasCloseHandlers<PopupPanel>
- Parameters:
- handler- the handler
- Returns:
- the registration for the event
 
 - 
addPopupListener@Deprecated public void addPopupListener(PopupListener listener) Deprecated.Description copied from interface:SourcesPopupEventsAdds a listener interface to receive popup events.- Specified by:
- addPopupListenerin interface- SourcesPopupEvents
- Parameters:
- listener- the listener interface to add.
 
 - 
centerpublic void center() Centers the popup in the browser window and shows it. If the popup was already showing, then the popup is centered.
 - 
getGlassStyleNamepublic java.lang.String getGlassStyleName() Gets the style name to be used on the glass element. By default, this is "gwt-PopupPanelGlass".- Returns:
- the glass element's style name
 
 - 
getOffsetHeightpublic int getOffsetHeight() Gets the panel's offset height in pixels. Calls tosetHeight(String)before the panel's child widget is set will not influence the offset height.- Overrides:
- getOffsetHeightin class- UIObject
- Returns:
- the object's offset height
 
 - 
getOffsetWidthpublic int getOffsetWidth() Gets the panel's offset width in pixels. Calls tosetWidth(String)before the panel's child widget is set will not influence the offset width.- Overrides:
- getOffsetWidthin class- UIObject
- Returns:
- the object's offset width
 
 - 
getPopupLeftpublic int getPopupLeft() Gets the popup's left position relative to the browser's client area.- Returns:
- the popup's left position
 
 - 
getPopupToppublic int getPopupTop() Gets the popup's top position relative to the browser's client area.- Returns:
- the popup's top position
 
 - 
getTitlepublic java.lang.String getTitle() Description copied from class:UIObjectGets the title associated with this object. The title is the 'tool-tip' displayed to users when they hover over the object.
 - 
hidepublic void hide() Hides the popup and detaches it from the page. This has no effect if it is not currently showing.
 - 
hidepublic void hide(boolean autoClosed) Hides the popup and detaches it from the page. This has no effect if it is not currently showing.- Parameters:
- autoClosed- the value that will be passed to- CloseHandler.onClose(CloseEvent)when the popup is closed
 
 - 
isAnimationEnabledpublic boolean isAnimationEnabled() Description copied from interface:HasAnimationReturns true if animations are enabled, false if not.- Specified by:
- isAnimationEnabledin interface- HasAnimation
 
 - 
isAutoHideEnabledpublic boolean isAutoHideEnabled() Returnstrueif the popup should be automatically hidden when the user clicks outside of it.- Returns:
- true if autoHide is enabled, false if disabled
 
 - 
isAutoHideOnHistoryEventsEnabledpublic boolean isAutoHideOnHistoryEventsEnabled() Returnstrueif the popup should be automatically hidden when the history token changes, such as when the user presses the browser's back button.- Returns:
- true if enabled, false if disabled
 
 - 
isGlassEnabledpublic boolean isGlassEnabled() Returnstrueif a glass element will be displayed under thePopupPanel.- Returns:
- true if enabled
 
 - 
isModalpublic boolean isModal() Returnstrueif keyboard or mouse events that do not target the PopupPanel or its children should be ignored.- Returns:
- true if popup is modal, false if not
 
 - 
isPreviewingAllNativeEventspublic boolean isPreviewingAllNativeEvents() Returnstrueif the popup should preview all native events, even if the event has already been consumed by another popup.- Returns:
- true if previewAllNativeEvents is enabled, false if disabled
 
 - 
isShowingpublic boolean isShowing() Determines whether or not this popup is showing.
 - 
isVisiblepublic boolean isVisible() Determines whether or not this popup is visible. Note that this just checks thevisibilitystyle attribute, which is set in thesetVisible(boolean)method. If you want to know if the popup is attached to the page, useisShowing()instead.- Specified by:
- isVisiblein interface- HasVisibility
- Overrides:
- isVisiblein class- UIObject
- Returns:
- trueif the object is visible
- See Also:
- setVisible(boolean)
 
 - 
onEventPreview@Deprecated public boolean onEventPreview(Event event) Deprecated.Description copied from interface:EventPreviewCalled when a browser event occurs and this event preview is on top of the preview stack.- Specified by:
- onEventPreviewin interface- EventPreview
- Parameters:
- event- the browser event
- Returns:
- falseto cancel the event
- See Also:
- DOM.addEventPreview(EventPreview)
 
 - 
onKeyDownPreview@Deprecated public boolean onKeyDownPreview(char key, int modifiers)Deprecated.Popups get an opportunity to preview keyboard events before they are passed to a widget contained by the Popup.- Parameters:
- key- the key code of the depressed key
- modifiers- keyboard modifiers, as specified in- KeyCodes.
- Returns:
- falseto suppress the event
 
 - 
onKeyPressPreview@Deprecated public boolean onKeyPressPreview(char key, int modifiers)Deprecated.Popups get an opportunity to preview keyboard events before they are passed to a widget contained by the Popup.- Parameters:
- key- the unicode character pressed
- modifiers- keyboard modifiers, as specified in- KeyCodes.
- Returns:
- falseto suppress the event
 
 - 
onKeyUpPreview@Deprecated public boolean onKeyUpPreview(char key, int modifiers)Deprecated.Popups get an opportunity to preview keyboard events before they are passed to a widget contained by the Popup.- Parameters:
- key- the key code of the released key
- modifiers- keyboard modifiers, as specified in- KeyCodes.
- Returns:
- falseto suppress the event
 
 - 
removeAutoHidePartnerpublic void removeAutoHidePartner(Element partner) Remove an autoHide partner.- Parameters:
- partner- the auto hide partner to remove
 
 - 
removePopupListener@Deprecated public void removePopupListener(PopupListener listener) Deprecated.Use theHandlerRegistration.removeHandler()method on the object returned byaddCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>)insteadDescription copied from interface:SourcesPopupEventsRemoves a previously added popup listener.- Specified by:
- removePopupListenerin interface- SourcesPopupEvents
- Parameters:
- listener- the listener interface to remove.
 
 - 
setAnimationEnabledpublic void setAnimationEnabled(boolean enable) Description copied from interface:HasAnimationEnable or disable animations.- Specified by:
- setAnimationEnabledin interface- HasAnimation
- Parameters:
- enable- true to enable, false to disable
 
 - 
setAutoHideEnabledpublic void setAutoHideEnabled(boolean autoHide) Enable or disable the autoHide feature. When enabled, the popup will be automatically hidden when the user clicks outside of it.- Parameters:
- autoHide- true to enable autoHide, false to disable
 
 - 
setAutoHideOnHistoryEventsEnabledpublic void setAutoHideOnHistoryEventsEnabled(boolean enabled) Enable or disable autoHide on history change events. When enabled, the popup will be automatically hidden when the history token changes, such as when the user presses the browser's back button. Disabled by default.- Parameters:
- enabled- true to enable, false to disable
 
 - 
setGlassEnabledpublic void setGlassEnabled(boolean enabled) When enabled, the background will be blocked with a semi-transparent pane the next time it is shown. If the PopupPanel is already visible, the glass will not be displayed until it is hidden and shown again.- Parameters:
- enabled- true to enable, false to disable
 
 - 
setGlassStyleNamepublic void setGlassStyleName(java.lang.String glassStyleName) Sets the style name to be used on the glass element. By default, this is "gwt-PopupPanelGlass".- Parameters:
- glassStyleName- the glass element's style name
 
 - 
setHeightpublic void setHeight(java.lang.String height) Sets the height of the panel's child widget. If the panel's child widget has not been set, the height passed in will be cached and used to set the height immediately after the child widget is set.Note that subclasses may have a different behavior. A subclass may decide not to change the height of the child widget. It may instead decide to change the height of an internal panel widget, which contains the child widget. 
 - 
setModalpublic void setModal(boolean modal) When the popup is modal, keyboard or mouse events that do not target the PopupPanel or its children will be ignored.- Parameters:
- modal- true to make the popup modal
 
 - 
setPopupPositionpublic void setPopupPosition(int left, int top)Sets the popup's position relative to the browser's client area. The popup's position may be set before callingshow().- Parameters:
- left- the left position, in pixels
- top- the top position, in pixels
 
 - 
setPopupPositionAndShowpublic void setPopupPositionAndShow(PopupPanel.PositionCallback callback) Sets the popup's position using aPopupPanel.PositionCallback, and shows the popup. The callback allows positioning to be performed based on the offsetWidth and offsetHeight of the popup, which are normally not available until the popup is showing. By positioning the popup before it is shown, the popup will not jump from its original position to the new position.- Parameters:
- callback- the callback to set the position of the popup
- See Also:
- PopupPanel.PositionCallback.setPosition(int offsetWidth, int offsetHeight)
 
 - 
setPreviewingAllNativeEventspublic void setPreviewingAllNativeEvents(boolean previewAllNativeEvents) When enabled, the popup will preview all native events, even if another popup was opened after this one. If autoHide is enabled, enabling this feature will cause the popup to autoHide even if another non-modal popup was shown after it. If this feature is disabled, the popup will only autoHide if it was the last popup opened. - Parameters:
- previewAllNativeEvents- true to enable, false to disable
 
 - 
setTitlepublic void setTitle(java.lang.String title) Description copied from class:UIObjectSets the title associated with this object. The title is the 'tool-tip' displayed to users when they hover over the object.
 - 
setVisiblepublic void setVisible(boolean visible) Sets whether this object is visible. This method just sets thevisibilitystyle attribute. You need to callshow()to actually attached/detach thePopupPanelto the page.- Specified by:
- setVisiblein interface- HasVisibility
- Overrides:
- setVisiblein class- UIObject
- Parameters:
- visible-- trueto show the object,- falseto hide it
- See Also:
- show(),- hide()
 
 - 
setWidgetpublic void setWidget(Widget w) Description copied from class:SimplePanelSets this panel's widget. Any existing child widget will be removed.- Specified by:
- setWidgetin interface- HasOneWidget
- Overrides:
- setWidgetin class- SimplePanel
- Parameters:
- w- the panel's new widget, or- nullto clear the panel
 
 - 
setWidthpublic void setWidth(java.lang.String width) Sets the width of the panel's child widget. If the panel's child widget has not been set, the width passed in will be cached and used to set the width immediately after the child widget is set.Note that subclasses may have a different behavior. A subclass may decide not to change the width of the child widget. It may instead decide to change the width of an internal panel widget, which contains the child widget. 
 - 
showpublic void show() Shows the popup and attach it to the page. It must have a child widget before this method is called.
 - 
showRelativeTopublic final void showRelativeTo(UIObject target) Normally, the popup is positioned directly below the relative target, with its left edge aligned with the left edge of the target. Depending on the width and height of the popup and the distance from the target to the bottom and right edges of the window, the popup may be displayed directly above the target, and/or its right edge may be aligned with the right edge of the target.- Parameters:
- target- the target to show the popup below
 
 - 
getContainerElementprotected Element getContainerElement() Description copied from class:SimplePanelOverride this method to specify that an element other than the root element be the container for the panel's child widget. This can be useful when you want to create a simple panel that decorates its contents. Note that this method continues to return theElementclass defined in theUsermodule to maintain backwards compatibility.- Overrides:
- getContainerElementin class- SimplePanel
- Returns:
- the element to be used as the panel's container
 
 - 
getGlassElementprotected Element getGlassElement() Get the glass element used by thisPopupPanel. The element is not created until it is enabled viasetGlassEnabled(boolean).- Returns:
- the glass element, or null if not created
 
 - 
getStyleElementprotected Element getStyleElement() Description copied from class:UIObjectTemplate method that returns the element to which style names will be applied. By default it returns the root element, but this method may be overridden to apply styles to a child element.- Overrides:
- getStyleElementin class- UIObject
- Returns:
- the element to which style names will be applied
 
 - 
onPreviewNativeEventprotected void onPreviewNativeEvent(Event.NativePreviewEvent event) 
 - 
onUnloadprotected void onUnload() Description copied from class:WidgetThis method is called immediately before a widget will be detached from the browser's document.
 - 
maybeUpdateSizevoid maybeUpdateSize() We control size by setting our child widget's size. However, if we don't currently have a child, we record the size the user wanted so that when we do get a child, we can set it correctly. Until size is explicitly cleared, any child put into the popup will be given that size.
 - 
setAnimationvoid setAnimation(PopupPanel.ResizeAnimation animation) Sets the animation used to animate this popup. Used by gwt-incubator to allow DropDownPanel to override the default popup animation. Not protected because the exact API may change in gwt 1.6.- Parameters:
- animation- the animation to use for this popup
 
 - 
setAnimationTypepublic void setAnimationType(PopupPanel.AnimationType type) Set the type of animation to use when opening and closing the popup.- Parameters:
- type- the type of animation to use
- See Also:
- PopupPanel.AnimationType
 
 - 
getAnimationTypepublic PopupPanel.AnimationType getAnimationType() Get the type of animation to use when opening and closing the popup.- Returns:
- the type of animation used
- See Also:
- PopupPanel.AnimationType
 
 
- 
 
-