• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

TabLayoutPanel auto height grow in gwt2.0

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i am using TabLayoutPanel in GWT2.0
i have some widgets added in it. which get added in TabLayoutPanel dynamically.
but when new widget get added TabLayoutPanel doesn't grow. as we have to specify it's height and width which then get fixed.

i am badly struck here as i want tab panel in my application.

is there any other way???
or can we increase height and width dynamically???
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

but when new widget get added TabLayoutPanel doesn't grow


What do you mean by grow? What do you expect to happen when you add the widget.
 
Nilesh Pat
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you for your replay,

grow means, TabLayoutPanel should increase it's height accordingly the widgets added...

i am using TabLayoutPanel in gwt2.0.


some of my code in Widget.ui.xml

<gwt:TabLayoutPanel ui:field="searchTab"
barHeight="25" barUnit="PX" height="16PC" width="50PC">
<gwt:tab>
<gwt:header>Search</gwt:header>

 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is strange. I usually use DecoratedTabPanel and have not encountered this problem before.
Could you please post SSCCE code which we can try out?
 
Nilesh Pat
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i was previously using gwt 1.6
in which i was using DecoratedTabPanel which was working properly.
but now i am migrating it in gwt2.0
in which i can't use it. So i am using TabLayoutPanel.

code in Widget.ui.xml is,


<gwt:TabLayoutPanel ui:field="searchTab"
barHeight="25" barUnit="PX" height="16PC" width="50PC">
<gwt:tab>
<gwt:header>Search</gwt:header>
<gwt:VerticalPanel ui:field="fltVertPanel">
<gwt:FlexTable ui:field="flexTable2"></gwt:FlexTable>
</gwt:VerticalPanel>
</gwt:tab>
</gwt:TabLayoutPanel>




and in java file,

@UiField
TabLayoutPanel flightSearchTab;

@UiField
FlexTable flexTable2;

@UiField
VerticalPanel fltVertPanel;



my flex table contains all textboxes and all which get added dynamically on clicking some buttons
which increase height. but as height of TabLayoutPanel does not increase.
it get invisible.

so i want to increase height of TabLayoutPanel also on run time.

 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like you are using the UI builder. Don't know about it. Sorry.
My current project uses 2.0 and I can use DecoratedTabPanel. I don't know what problem you are facing because of 2.0.
 
Nilesh Pat
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

i am using GWT 2.0.3
As i search for it also, in UI builder it's difficult to add a Decorated tab panel. so i was using TabLayoutPanel.
but as i said early it is giving problem in auto height.

so now what i done is,
i am using VerticalPanel in UiBinder.
and added DecoratedTabPanel in VerticalPanel in java file not in UiBinder
 
I AM MIGHTY! Especially when I hold this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic