PropertyEditor Popup - Vaadin 7 Sampler

Hello,
I need a popup like the PropertyEditor used in the Vaadin 7 sampler.
How can i create something like that, with that arrow, and the popup should be opened in different positions of the screen.
12895.jpg