Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

FlowPanel

The FlowPanel is one of the more basic panels that comes with GWT. If you’re familiar with how HTML layout works, then you’ll quickly understand this layout since it models itself after HTML layout. Its layout is also similar to how, in a text editor, words flow and wrap when they reach the edge of the page. The FlowPanel’s child widgets display horizontally and then wrap to the next row down when there is not enough horizontal room left.

For example, the Gadget Desktop application in Chapter 6 has a menu at the top that displays a list of gadgets that can be added to the page. This application adds each item in the list as a link to a FlowPanel widget. The following code builds the panel:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint