Section 10.6. GWT Widgets


10.6. GWT Widgets

Table 10-1 lists some of the widgets that can be used with GWT and their corresponding HTML element types.

Table 10-1. GWT widgets

Widget

Description

AbsolutePanel

A panel that positions all of its children absolutely, allowing them to overlap

Button

A standard push-button widget

ButtonBase

The abstract base class for Button, CheckBox, and RadioButton

CellPanel

A panel whose child widgets are contained within the cells of a table

ChangeListenerCollection

A helper class for implementers of the SourcesChangeEvents interface

CheckBox

A standard checkbox widget (also serves as a base class for RadioButton)

ClickListenerCollection

A helper class for implementers of the SourcesClickEvents interface

ComplexPanel

An abstract base class for panels that can contain multiple child widgets

Composite

A type of widget that can wrap another widget, hiding the wrapped widget's methods

DeckPanel

A panel that displays all of its child widgets in a "deck," where only one can be visible at a time

DialogBox

A form of pop-up that has a caption area at the top and can be dragged by the user

DockPanel

A panel that lays out its child widgets "docked" at its outer edges and allows its last widget to take up the remaining space in its center

FileUpload

A widget that wraps the HTML <input type="file"> element

FlexTable

A flexible table that creates cells on demand

FlowPanel

A panel that formats its child widgets using the default HTML layout behavior

FocusListenerAdapter

An adapter to simplify focus event listeners that do not need all events defined on the FocusListener interface

FocusListenerCollection

A helper class for implementers of the SourcesFocusEvents interface

FocusPanel

A simple panel that makes its contents focusable and adds the ability to catch mouse and keyboard events

FocusWidget

An abstract base class for most widgets that can receive keyboard focus

FormHandlerCollection

A helper class for widgets that accept FormHandlers

FormPanel

A panel that wraps its contents in an HTML <form> element

FormSubmitCompleteEvent

An Event object containing information about form submission events

FormSubmitEvent

An Event object containing information about form submission events

Frame

A widget that wraps an <IFRAME> element, which can contain an arbitrary web site

Grid

A rectangular grid that can contain text, HTML, or a child widget within its cells

HorizontalPanel

A panel that lays out all of its widgets in a single horizontal column

HTML

A widget that can contain arbitrary HTML

HTMLPanel

A panel that contains HTML and can attach child widgets to identified elements within that HTML

HTMLTable

A widget that contains the common table algorithms for Grid and FlexTable

Hyperlink

A widget that serves as an "internal" hyperlink

Image

A widget that displays the image at a given URL

KeyboardListenerAdapter

An adapter to simplify keyboard event listeners that do not need all events defined on the KeyboardListener interface

KeyboardListenerCollection

A helper class for implementers of the SourcesKeyboardEvents interface

Label

A widget that contains arbitrary text, not interpreted as HTML

ListBox

A widget that presents a list of choices to the user, either as a listbox or as a drop-down list

LoadListenerCollection

A helper class for implementers of the SourcesLoadEvents interface

MenuBar

A standard menu bar widget

MenuItem

A widget that can be placed in a MenuBar

MouseListenerAdapter

An adapter to simplify mouse event listeners that do not need all events defined on the MouseListener interface

MouseListenerCollection

A helper class for implementers of the SourcesMouseEvents interface

NamedFrame

A frame that has a "name" associated with it

Panel

An abstract base class for all panels, which are widgets that can contain other widgets

PasswordTextBox

A text box that visually masks its input to prevent eavesdropping

PopupListenerCollection

A helper class for implementers of the SourcesPopupEvents interface

PopupPanel

A panel that can "pop up" over other widgets

RadioButton

A mutually exclusive selection radio button widget

RootPanel

The panel to which all other widgets must ultimately be added

ScrollListenerCollection

A helper class for implementers of the SourcesScrollEvents interface

ScrollPanel

A simple panel that wraps its contents in a scrollable area

SimplePanel

An abstract base class for panels that contain only one widget

StackPanel

A panel that stacks its children vertically, displaying only one at a time, with a header for each one that the user can click to display it

TabBar

A horizontal bar of folder-style tabs, most commonly used as part of a TabPanel

TableListenerCollection

A helper class for implementers of the SourcesTableEvents interface

TabListenerCollection

A helper class for implementers of the SourcesTabEvents interface

TabPanel

A panel that represents a tabbed set of pages, each of which contains another widget

TextArea

A text box that allows multiple lines of text to be entered

TextBox

A standard single-line text box

TextBoxBase

An abstract base class for all text-entry widgets

Tree

A standard hierarchical tree widget

TreeItem

An item that can be contained within a TRee

TreeListenerCollection

A helper class for implementers of the SourcesClickEvents interface

UIObject

The base class for all user-interface objects

VerticalPanel

A panel that lays out all of its widgets in a single vertical column

Widget

The base class for the majority of user-interface objects





Ajax on Java
Ajax on Java
ISBN: 0596101872
EAN: 2147483647
Year: 2007
Pages: 78

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net