public static PopupPanel newPopup ( String styleName , Widget contents , Position pos , Widget target ) { PopupPanel panel = newPopup ( styleName , contents ) ; show ( panel , pos , target ) ; return panel ; }
Creates a new popup with the specified style name and contents and shows it near the specified target widget . Returns the newly created popup .