📜  GWT-表单小部件

📅  最后修改于: 2020-10-25 04:39:33             🧑  作者: Mango


表单小部件允许用户输入数据并为他们提供与应用程序的交互功能。每个Form小部件都从Widget类继承属性,而Widget类又从UIObject和Wigdet类继承属性。

Sr.No. Widget & Description
1 GWT UIObject Class

This widget contains text, not interpreted as HTML using a

element, causing it to be displayed with block layout.

2 GWT Widget Class

This widget can contain HTML text and displays the html content using a

element, causing it to be displayed with block layout.

表单小部件

以下是一些重要的表单小部件

Sr.No. Widget & Description
1 Button

This widget represents a standard push button.

2 PushButton

This widget represents a normal push button with custom styling.

3 ToggleButton

This widget represents a stylish stateful button which allows the user to toggle between up and down states.

4 CheckBox

This widget represents a standard check box widget. This class also serves as a base class for RadioButton.

5 RadioButton

This widget represents a mutually-exclusive selection radio button widget.

6 ListBox

This widget represents a list of choices to the user, either as a list box or as a drop-down list.

7 SuggestBox

This widget represents a text box or text area which displays a pre-configured set of selections that match the user’s input. Each SuggestBox is associated with a single SuggestOracle. The SuggestOracle is used to provide a set of selections given a specific query string.

8 TextBox

This widget represents a single line text box.

9 PasswordTextBox

This widget represents a text box that visually masks its input to prevent eavesdropping..

10 TextArea

This widget represents a text box that allows multiple lines of text to be entered.

11 RichTextArea

This widget represents a rich text editor that allows complex styling and formatting.

12 FileUpload

This widget wraps the HTML element.

13 Hidden

This widget represets a hidden field in an HTML form.