public static class CaptionImpl extends HTML implements Caption {
public CaptionImpl() {
super();
setStyleName("Caption");
}
}
in class DialogBox source file,
but
com.google.gwt.user.client.ui.DialogBox.Caption has the following interface
addMouseDownHandler,addMouseUpHandler,addMouseOutHandler,addMouseOverHandlerso how could the com.google.gwt.user.client.ui.DialogBox.CaptionImpl implement Caption Inteface???
addMouseMoveHandler,fireEvent, getHTML, setHTML, getText, setText,
setHTML, asWidget
jhulford於 2012年6月1日星期五UTC+8下午9時27分11秒寫道:
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 implementsDialogBox.Captionand then use the constructorDialogBox(DialogBox.CaptioncaptionWidget)
?
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/-/rIDQx4ZLucsJ.
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