dialloma wrote:There is my problem. It's about 3 days that I have purchass the GWTDesigner for GWT 1.3.3 but I think that this version doe'snt support all panels. For exemple if code by hand, I can create a class that extends the VerticalPanel, or HorizontalPanel etc....But with GWTDesigner, I think that we can't create directly a class that extends the previous Panels. We always a Composite class and within it We declared the Panel that we want to use. May be It's me that not understand the concept, but if it's possible I will glad to know how to do it.
- Code: Select all
public class A extends VerticalPanel {
.......................................
}
is not possible with GWTDesigner ?
No. It is
intentionally not possible.
As explicitly stated in the
Google GWT docs on
Creating Custom Widgets, the
correct approach to creating a custom widget is to subclass Composite,
not VerticalPanel. If you must subclass VerticalPanel, the subclass should be simple and contain no children (those should be added when the new panel is placed to a Composite).
We don't want to encourage bad design practice and support direct editing of panel subclasses. Widgets and panels are meant to be treated as atomic objects in the GUI builder. You may place them within the design view (as you can with your
A example), but Designer is not a tool for creating them. If you want to create a custom widget composed of multiple atomic widgets, you should create a subclass of Composite as recommended by the GWT docs.
Designer already provided excellent support for doing this in the form of
custom Composites. Not only can you place and edit widgets within a Composite using any panel type, you can also expose any widget or any widget property as a public property of the Composite. Designer also includes excellent support for
visual inheritance so that you can create a hierarchy of custom components that inherit various visual elements from one another.
dialloma wrote:My last question is in wich proportion can we estimation the saving of time if we use GWTDesigner instead the codage by hand ?
For the GUI portion of yoru application, you should be able to create your GUI 5-10 times faster than doing it by hand.