popuppanel example

Can someone point me to how to use the PopupPanel in GWT with Vaadin? I would use the PopupViewer, but that seems to require that you attach it to a Layout. What I need is a simple little window that will popup, allow the user to input a value and then close. The PopupPanel seems to do that, but I can not figure out how to set its content.

Thank you
Freddy

Would this example from sampler help you ?

http://demo.vaadin.com/sampler/#ui/structure/popup-view

Regards

Actually no, because it uses the PopupViewer which needs to be attached to a layout. I need to a popup that is not attached to anything. What I am trying to do is on the action that has been assigned to a tree, open up a small popup window that has text field. If I attach the popup to the vertical layout that holds my tree, it changes the layout of that panel. The PopupPanel seems to be what I want, but I can not seem to figure out how to use it.

The PopupPanel from what i’ve seen is a GWT component. It isn’t integrated in Vaadin though. To integrate an existing GWT component have a look at
https://vaadin.com/wiki/-/wiki/Main/Integrating+an+existing+GWT+widget

In your case maybe a simple Window would do the job too (which would be far easier for you to use):
http://demo.vaadin.com/sampler/#ui/structure/window
You can customize Windows however you want and when you look at the implementation they are actually panel-like components which get layered over the App’s DOM (so probably quite similar to PopupPanel)

I ended up using a window, as suggested.

Freddy Boisseau:
I ended up using a window, as suggested.

Could you give me code snippet , I am beginner I want to display a Popup Window on Click button for Each Row in a Grid. I mean, for one Column my Buttons will be values which will show popup window on Click.

Hi where can I get code for popup Window, I opened mentioned link(https://demo.vaadin.com/sampler/#ui/structure/window) but could not see code , only I can see UI and Fucntionality.