Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EDT:Declaring widgets"
Line 1: | Line 1: | ||
When you write a Rich UI application, the typical process is as follows: | When you write a Rich UI application, the typical process is as follows: | ||
− | * Create a Handler type of stereotype RUIHandler.<br> | + | *Create a Handler type of stereotype RUIHandler.<br> |
− | * Declare the widgets and customize them; for example, by assigning and coding event handlers. <br> | + | *Declare the widgets and customize them; for example, by assigning and coding event handlers. <br> |
− | * Display a given widget by including it either in the '''initialUI''' array of the Rich UI handler or in the '''children''' array of another widget.<br> | + | *Display a given widget by including it either in the '''initialUI''' array of the Rich UI handler or in the '''children''' array of another widget.<br> |
− | * Write initialization code in the on-construction function.<br> | + | *Write initialization code in the on-construction function.<br> |
The following sections give examples of widget declaration and use.<br> | The following sections give examples of widget declaration and use.<br> | ||
− | = | + | |
+ | |||
+ | = Display and Input = | ||
+ | |||
+ | |||
+ | = Button = | ||
<source lang="java"> | <source lang="java"> | ||
Line 14: | Line 19: | ||
</source> | </source> | ||
− | = Button = | + | = Button (DojoButton) = |
<source lang="java"> | <source lang="java"> | ||
</source> | </source> | ||
+ | |||
+ | |||
+ | = Calendar (DojoCalendar) = | ||
+ | |||
+ | <source lang="java"> | ||
+ | |||
+ | </source> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | = Layout = | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | = Visualization = | ||
+ | |||
+ | |||
+ | |||
+ | = Box = | ||
+ | |||
+ | <source lang="java"> | ||
+ | |||
+ | </source> | ||
+ | |||
= Checkbox = | = Checkbox = | ||
Line 50: | Line 91: | ||
</source> | </source> | ||
+ | <br> | ||
= DojoAccordionContainer = | = DojoAccordionContainer = | ||
Line 75: | Line 117: | ||
</source> | </source> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= DojoCheckbox = | = DojoCheckbox = |
Revision as of 10:57, 14 February 2012
When you write a Rich UI application, the typical process is as follows:
- Create a Handler type of stereotype RUIHandler.
- Declare the widgets and customize them; for example, by assigning and coding event handlers.
- Display a given widget by including it either in the initialUI array of the Rich UI handler or in the children array of another widget.
- Write initialization code in the on-construction function.
The following sections give examples of widget declaration and use.
Contents
- 1 Display and Input
- 2 Button
- 3 Button (DojoButton)
- 4 Calendar (DojoCalendar)
- 5 Layout
- 6 Visualization
- 7 Box
- 8 Checkbox
- 9 Combo
- 10 DataGrid and related types
- 11 DIv, FloatLeft, and FloatRight
- 12 DojoAccordionContainer
- 13 DojoBarGraph
- 14 DojoBorderContainer
- 15 DojoBubbleChart
- 16 DojoCheckbox
- 17 DojoColorPalette
- 18 DojoComboBox
- 19 DojoContentPane
- 20 DojoContextMenu
- 21 DojoCurrencyTextBox
- 22 DojoDateTextBox
- 23 DojoDialog
- 24 DojoEditor
- 25 DojoGrid
- 26 DojoHorizontalSlider
- 27 DojoLineGraph
- 28 DojoMenu
- 29 DojoMenuItem
- 30 DojoPieChart and related types
- 31 DojoProgressBar
- 32 DojoRadioGroup
- 33 DojoStackContainer
- 34 DojoTabContainer
- 35 DojoTextArea
- 36 DojoTextField
- 37 DojoTimeTextBox
- 38 DojoTitlePane
- 39 DojoToggleButton
- 40 DojoTooltip
- 41 DojoTooltipDialog
- 42 DojoTree
- 43 DojoTreeNode
- 44 GridLayout and related types
- 45 Grouping
- 46 HTML
- 47 Hyperlink
- 48 Image
- 49 List
- 50 ListMulti
- 51 PasswordTextField
- 52 RadioGroup
- 53 Shadow
- 54 Span
- 55 TextArea
- 56 TextField
- 57 TextLabel
- 58 Tooltip
- 59 Tree and related types
Display and Input
Button
Button (DojoButton)
Calendar (DojoCalendar)
Layout
Visualization
Box
Checkbox
Combo
DIv, FloatLeft, and FloatRight
DojoAccordionContainer
DojoBarGraph
DojoBorderContainer
DojoBubbleChart
DojoCheckbox
DojoColorPalette
DojoComboBox
DojoContentPane
DojoContextMenu
DojoCurrencyTextBox
DojoDateTextBox
DojoDialog
DojoEditor
DojoGrid
DojoHorizontalSlider
DojoLineGraph
DojoMenu
DojoMenuItem
DojoProgressBar
DojoRadioGroup
DojoStackContainer
DojoTabContainer
DojoTextArea
DojoTextField
DojoTimeTextBox
DojoTitlePane
DojoToggleButton
DojoTooltip
DojoTooltipDialog
DojoTree
DojoTreeNode
Grouping
HTML
Hyperlink
Image
List
ListMulti
PasswordTextField
RadioGroup
Shadow
Span
TextArea
TextField
TextLabel
Tooltip
♦ Code snippets main page