if the source checked out is not wrong, I see the following
> 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,addMouseOverHandler
> addMouseMoveHandler,fireEvent, getHTML, setHTML, getText, setText,
> setHTML, asWidget
>
so how could the com.google.gwt.user.client.ui.DialogBox.CaptionImpl
implement Caption Inteface???
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 implements
>> *DialogBox.Caption<http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/client/ui/DialogBox.Caption.html>
>> * and then use the constructor
>> *DialogBox<http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/client/ui/DialogBox.html#DialogBox%28com.google.gwt.user.client.ui.DialogBox.Caption%29>
>> *(DialogBox.Caption<http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/client/ui/DialogBox.Caption.html>
>> 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/-/rIDQx4ZLucsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.