Re: dumb question... but driving me nuts

2009-03-28 Thread Kevin Telford

You could also use an HTML element if you wanted and then add it to
whatever kind of panel you have.

SimplePanel sp = new SimplePanel();
HTML html = new HTML();
String myHtml = div;
myHtml+ = divSomething/div;
myHtml += divSomething2/div;
myHtml += /div;
html.setHTML(myHtml);
sp.add(html);
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



dumb question... but driving me nuts

2009-03-27 Thread JohnJ

What is the GWT way doing the following?

div
divSomething/div
divSomething2/div
/div


I don't want to create a HorizontalPanel, b/c i don't want tables. I
can create a SimplePanel but then simple panel only takes one widget.

I've tried the HTMLPanel and it will create the inner div's as
siblings but what I need is inner div's to be Widget not Element
objects.

It just seems like there should be a way to add more than one thing to
a SimplePanel or have another panel that uses a DIV as the parent
structure and allows you to add



--~--~-~--~~~---~--~~
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: dumb question... but driving me nuts

2009-03-27 Thread levi.bracken

FlowPanel is a div, and Label is a div but with text in there.   So
you could do...


FlowPanel wrapper = new FlowPanel();
wrapper.add(Something);
wrapper.add(Something2);

but what I think you want is more like...

FlowPanel something1 = new FlowPanel();
FlowPanel something2 = new FlowPanel();

FlowPanel wrapper = new FlowPanel();
wrapper.add(something1);
wrapper.add(something2);





On Mar 27, 3:03 pm, JohnJ ufm...@gmail.com wrote:
 What is the GWT way doing the following?

 div
     divSomething/div
     divSomething2/div
 /div

 I don't want to create a HorizontalPanel, b/c i don't want tables. I
 can create a SimplePanel but then simple panel only takes one widget.

 I've tried the HTMLPanel and it will create the inner div's as
 siblings but what I need is inner div's to be Widget not Element
 objects.

 It just seems like there should be a way to add more than one thing to
 a SimplePanel or have another panel that uses a DIV as the parent
 structure and allows you to add
--~--~-~--~~~---~--~~
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: dumb question... but driving me nuts

2009-03-27 Thread levi.bracken

FlowPanel is a div, and Label is a div but with text in there.   So
you could do...

FlowPanel wrapper = new FlowPanel();
wrapper.add(new Label(Something));
wrapper.add(new Label(Something2));

but what I think you want is more like...

FlowPanel something1 = new FlowPanel();
FlowPanel something2 = new FlowPanel();

FlowPanel wrapper = new FlowPanel();
wrapper.add(something1);
wrapper.add(something2);

On Mar 27, 3:03 pm, JohnJ ufm...@gmail.com wrote:
 What is the GWT way doing the following?

 div
     divSomething/div
     divSomething2/div
 /div

 I don't want to create a HorizontalPanel, b/c i don't want tables. I
 can create a SimplePanel but then simple panel only takes one widget.

 I've tried the HTMLPanel and it will create the inner div's as
 siblings but what I need is inner div's to be Widget not Element
 objects.

 It just seems like there should be a way to add more than one thing to
 a SimplePanel or have another panel that uses a DIV as the parent
 structure and allows you to add
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---