Re: Adding HTML / Label to flowPanel

2010-10-19 Thread Yau
Thanks Thomas, you're the man!

On Oct 19, 9:24 pm, Thomas Broyer  wrote:
> On 19 oct, 12:13, "Kevin (Yau) Leung"  wrote:
>
> > I would like to use a flowPanel to contain a list of tags.  The tag contain
> > a name and a close button.
>
> > However, when I add HTML / Label to flowPanel, it will create a new line
> > because it's a DIV element.
>
> > If the HTML / Label is a span element, there is no new line.  However, I
> > can't create spanElement on demand.
>
> > Does anyone has any suggestion?  Thanks in advance.
>
> InlineHTML / InlineLabel.

-- 
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-tool...@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: Adding HTML / Label to flowPanel

2010-10-19 Thread choxy

I do not understand why you cannot create spanElement.

In my project I have created custom widget class Span, which extends
HTML and calls super(Document.get().createSpanElement()); in
constructor. Then you can use it the same way as HTML widget, but it
will be created as  element.

-- 
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-tool...@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: Adding HTML / Label to flowPanel

2010-10-19 Thread Thomas Broyer

On 19 oct, 12:13, "Kevin (Yau) Leung"  wrote:
> I would like to use a flowPanel to contain a list of tags.  The tag contain
> a name and a close button.
>
> However, when I add HTML / Label to flowPanel, it will create a new line
> because it's a DIV element.
>
> If the HTML / Label is a span element, there is no new line.  However, I
> can't create spanElement on demand.
>
> Does anyone has any suggestion?  Thanks in advance.

InlineHTML / InlineLabel.

-- 
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-tool...@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.



Adding HTML / Label to flowPanel

2010-10-19 Thread Kevin (Yau) Leung
I would like to use a flowPanel to contain a list of tags.  The tag contain
a name and a close button.

However, when I add HTML / Label to flowPanel, it will create a new line
because it's a DIV element.

If the HTML / Label is a span element, there is no new line.  However, I
can't create spanElement on demand.

Does anyone has any suggestion?  Thanks in advance.

-- 
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-tool...@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.