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 pjul...@gmail.com wrote:
 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/g...

-- 
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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 constructor. This will tell the 
Widget which HTML element to use as its container. A GWT Label for example 
calls setElement(DOM.createDiv()) whereas an InlineLabel does 
setElement(DOM.createSpan()).


-- 
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/-/aiT3E8KwNmgJ.
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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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

2011-10-24 Thread wahaha
help!

On Oct 24, 11:22 am, wahaha il...@yahoo.com.cn 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 gal.dol...@gmail.com 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 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:13 PM, wahaha il...@yahoo.com.cn wrote:
   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.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

  --
  Guit: Elegant, beautiful, modular and *production ready* gwt applications.

 http://code.google.com/p/guit/

-- 
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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/mnZzWfE2CF4J.
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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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:13 PM, wahaha il...@yahoo.com.cn wrote:

 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.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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

2011-10-23 Thread wahaha
anybody knows?

On Oct 21, 2:19 pm, wahaha il...@yahoo.com.cn 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 code?

 i hope you can understand my poor english.

-- 
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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 gal.dol...@gmail.com 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 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:13 PM, wahaha il...@yahoo.com.cn wrote:
  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.com.
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

 http://code.google.com/p/guit/

-- 
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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



can we control what element will build in widget?

2011-10-21 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 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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.