Add icon to Button

2011-03-14 Thread Marco Gadaleta
Hi,
i'm try to add icon to a button using gwt.
Someone can help me?

Thx,
Marco

-- 
Marco

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Add icon to Button

2011-03-14 Thread Fotos Georgiadis
You can use a PushButton which accepts an image as an upFace / downFace.

See the documentation if you want to create it programmatically:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/user/client/ui/PushButton.html

And here is a (really) short example using uiBinder:

ui:image field=buttonUpImage src=../../resources/images/buttonUp.png /

g:PushButton ui:field=button styleName={style.button}
g:upFace image={buttonUpImage} /
/g:PushButton

Regards,
-fotos

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.