public static SimplePanel newSimplePanel ( String styleName , Widget widget ) { SimplePanel panel = new SimplePanel ( ) ; if ( widget != null ) { panel . setWidget ( widget ) ; } return setStyleNames ( panel , styleName ) ; }
Creates a SimplePanel with the supplied style and widget