public static PopupPanel newPopup ( String styleName , Widget contents ) { PopupPanel panel = new PopupPanel ( ) ; panel . setStyleName ( styleName ) ; panel . setWidget ( contents ) ; return panel ; }
Creates and returns a new popup with the specified style name and contents .