Friday, June 1, 2012

Re: can DialogBox has a "x" close button in the upper right hand corner like most window have?

Yes, that would be exactly how you'd do it.  There's really not much to actually implement. All of the handler methods are just simple variants of "addHandler", so you really end up with having to actually write are the get/set HTML/Text methods.

On Friday, June 1, 2012 5:05:40 AM UTC-4, tong123123 wrote:
from http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/client/ui/DialogBox.html
I think I need create a class that implements DialogBox.Caption and then use the constructor
DialogBox(DialogBox.Caption captionWidget)
?
but the difficulty is how to implement all the method in the interface DialogBox.Caption?

let said I name the class customCaption and implements all the interface method in DialogBox.Caption and then inside the customCaption class I use flextable to add a "x" image in a column of flextable?

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

No comments:

Post a Comment