Serge wrote:That's true, but...
I don't want to set "size" because this is a container, and its size will be determined by tabs. When I drop VerticalPanel (just for example) on the "drawing area", I have a rectangle with text "Empty vertical panel". Its size is not set, but it has nice size on the "drawing area" (because of the text) and is easy to select. The text is gone when I add something to the new panel. How did you do this? Is it possible to do the same for a custom composite which is an empty container?
We just know that we can place Label with some text on VerticalPanel and do this when there are no child widgets.
Serge wrote:TabBar does not have getTabs() or setTabs(), but it does have "tabs" property in the Properties window. How did you do this? Is it possible to do the same for a custom composite? My program does not need getTabs() or setTabs(). I'd rather write a special comment or bean info to have "tabs" property.
Do you know how to write BeanInfo's for GWT widgets? I don't know. Problem is that widget should be in "client" package, BeanInfo should be in same package (i.e. also in "client"), but for example PropertyDescriptor is not available in GWT runtime, so you will have compilation error.
For each GWT component we have special support for its features. For TabBar we know that it have concept of tab's, so we support them in model.
So... I don't know better solution than array of String's. I don't see however why this is bad. But if you have idea how to solve your problem in general way, let us know.