can we control what element will build in widget?

2011-10-20 Thread wahaha
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

Re: can we control what element will build in widget?

2011-10-23 Thread wahaha
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

Re: can we control what element will build in widget?

2011-10-23 Thread Gal Dolber
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

Re: can we control what element will build in widget?

2011-10-23 Thread wahaha
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

Re: can we control what element will build in widget?

2011-10-23 Thread wahaha
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

Re: can we control what element will build in widget?

2011-10-24 Thread wahaha
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(

Re: can we control what element will build in widget?

2011-10-24 Thread Patrick Julien
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

Re: can we control what element will build in widget?

2011-10-25 Thread wahaha
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

Re: can we control what element will build in widget?

2011-10-25 Thread Jens
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