|
DevGuideWidgetsAndPanels
Widgets and panels are client-side Java classes used to build user interfaces.
Widgets and PanelsYou construct user interfaces in GWT applications using widgets that are contained within panels. Widgets allow you to interact with the user. Panels control the placement of user interface elements on the page. Widgets and panels work the same way on all browsers; by using them, you eliminate the need to write specialized code for each browser. WidgetsWidgets define your applications input and output with the user. Examples of widgets include the following:
You are not limited to the set of widgets provided by GWT. There are a number of ways to create custom widgets:
You can also use one or more of the many third party widget libraries written for GWT. PanelsPanels contain widgets and other panels. They are used to define the layout of the user interface in the browser. Examples of panels include the following:
StylesVisual styles are applied to widgets using Cascading Style Sheets (CSS). Besides the default browser supplied definitions, each GWT widget and panel has pre-defined style sheet class definitions documented in the class reference documentation. See Also
|
Sign in to add a comment