• Embed Doc
  • Readcast
  • Collections
  • 2
    CommentGo Back
Download
 
© 2009 Marty Hall
The Goole Web Toolkit GWT:Laying out Windows with Panels
(GWT 1.6 Version)
 
Originals of Slides and Source Code for Examples:http://courses.coreservlets.com/Course-Materials/ajax.html
Customized Java EE Training: http://courses.coreservlets.com/ 
Servlets, JSP, Struts, JSF/MyFaces/Facelets, Ajax, GWT, Spring, Hibernate/JPA, Java 5 & 6.Developed and taught by well-known author and developer. At public venues or onsite at
 your 
location.
© 2009 Marty Hall
For live Ajax & GWT training, see trainingcourses a p:courses.coreserves.com.
Taught by the author of 
Core Servlets and JSP 
,
More 
, .venues, or customized versions can be held on-siteat yourorganization.
 
Customized Java EE Training: http://courses.coreservlets.com/ 
Servlets, JSP, Struts, JSF/MyFaces/Facelets, Ajax, GWT, Spring, Hibernate/JPA, Java 5 & 6.Developed and taught by well-known author and developer. At public venues or onsite at
 your 
location.
 
Courses developed and taught by Marty Hall
 – Java 5, Java 6, intermediate/beginning servlets/JSP, advanced servlets/JSP, Struts, JSF, Ajax, GWT, custom mix of topics
Courses developed and taught by coreservlets.com experts (edited by Marty)
 – Spring, Hibernate, EJB3, Ruby/Rails
Contact hall@coreservlets.com for details
 
Topics in This Section
Strategy behind Panel usage
Similar to use of LayoutManagersin desktop Java
Most common Panel types
orzontaaneVerticalPanel DockPanelGridHorizontalSplitPanelVerticalSplitPanelopupane
5
© 2009 Marty Hall
Overview
Customized Java EE Training: http://courses.coreservlets.com/ 
Servlets, JSP, Struts, JSF/MyFaces/Facelets, Ajax, GWT, Spring, Hibernate/JPA, Java 5 & 6.Developed and taught by well-known author and developer. At public venues or onsite at
 your 
location.
 
Layout Strategies
HTML-based layout
rte y an, esgnate paces or nvuacontrolsHTML body contains a lot of contentBest when GWT is used for
A traditional Web application with some pieces of Ajax-enabled contentComplex page where HTML layout does not change
Java-based layout
 Java uses Panels to build up overall layout
Similar to way LayoutManagersare used in desktop Java
es wen s use o
Mimic a desktop applicationCreate an application where HTML layout changes on fly
7
HTML-Based Layout
HTML
<body>
Regular HTML 
<div id="id-1"></div>
Regular HTML 
<div id="id-2"></div>
egua
<v =-><v>
Regular HTML 
</body>
ava
 public void onModuleLoad() {SomeWidgetw1 = …;RootPanel.get("id-1").add(w1);SomeWidgetw2 = …;RootPanel.get("id-2").add(w2);omegew = ;RootPanel.get("id-3").add(w3);}
8
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...

good one, came to know about coreservlets website. thanks for sharing!

You must be to leave a comment.
Submit
Characters: ...