public void setResource ( ImageResource imageResource ) { Image img = new Image ( imageResource ) ; DOM . insertChild ( getElement ( ) , img . getElement ( ) , 0 ) ; }
Attach an ImageResource to the button .