for example,the Label widget will be compiled as a "div" element in
browser.
can we control what kind of element will be compiled in browser?
this is to say,if we are defining a widget,then can we control the
element's kind by the source code?
i hope you can understand my poor english.
--
You re
why there is nobody knows?
--
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
You cannot change the element a widget uses internally.
If you are looking for span implementations(instead of div) you can use:
InlineLabel, InlineHTML
Otherwise you can create your own widgets, checkout the source code of HTML
or Label, its not hard to do.
Regards
On Sun, Oct 23, 2011 at 10:1
anybody knows?
On Oct 21, 2:19 pm, wahaha wrote:
> for example,the Label widget will be compiled as a "div" element in
> browser.
> can we control what kind of element will be compiled in browser?
> this is to say,if we are defining a widget,then can we control the
> element's kind by the source
i hava checkouted the source code of Label(and its super class),but i
hava no clue.
On Oct 24, 10:54 am, Gal Dolber wrote:
> You cannot change the element a widget uses internally.
>
> If you are looking for span implementations(instead of div) you can use:
> InlineLabel, InlineHTML
>
> Otherwise
help!
On Oct 24, 11:22 am, wahaha wrote:
> i hava checkouted the source code of Label(and its super class),but i
> hava no clue.
>
> On Oct 24, 10:54 am, Gal Dolber wrote:
>
>
>
>
>
>
>
> > You cannot change the element a widget uses internally.
>
> > If you are looking for span implementations(
If you want this level of control you can use Element directly or an
HTMLPanel
http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/client/Element.html
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this
ok,now i have the last question:
the element compiled by gwt,what will determine its type?by gwt
compiler,or the class's source code?
On Oct 25, 11:02 am, Patrick Julien wrote:
> If you want this level of control you can use Element directly or an
> HTMLPanel
>
> http://google-web-toolkit.googlec
http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/dom/client/Element.html
Look at "direct known sub classes". There is one element type for each html
tag.
If you create a custom widget (class MyWidget extends Widget) you have to
call setElement(Element e) in MyWidget's co