public static SimpleRadioButton wrap ( Element element ) { // Assert that the element is attached. assert Document . get ( ) . getBody ( ) . isOrHasChild ( element ) ; SimpleRadioButton radioButton = new SimpleRadioButton ( InputElement . as ( element ) ) ; // Mark it attached and remember it for cleanup. radioButton . onAttach ( ) ; RootPanel . detachOnWindowClose ( radioButton ) ; return radioButton ; }
Creates a SimpleRadioButton widget that wraps an existing &lt ; input type = radio &gt ; element .