|
|
(67 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | The next sections outline a way to develop a Rich UI application. The IDE helps you to do the tasks quickly.
| |
| | | |
− | For background information, see [http://www.eclipse.org/edt/papers/topics/egl_web_technology.html Web technology for EGL Rich UI].
| |
− |
| |
− | = Create a Handler type of stereotype RUIHandler =
| |
− |
| |
− | <source lang="java">
| |
− | package client;
| |
− |
| |
− | import org.eclipse.edt.rui.widgets.GridLayout;
| |
− |
| |
− | handler MyHandler type RUIhandler{
| |
− | initialUI =[ui],
| |
− | onConstructionFunction = start,
| |
− | cssFile = "css/MyProject.css",
| |
− | title = "MyHandler"}
| |
− |
| |
− | ui GridLayout{columns = 3, rows = 4, cellPadding = 4, children =[]};
| |
− |
| |
− | function start()
| |
− | end
| |
− | end
| |
− | </source>
| |
− |
| |
− | An IDE wizard initially creates a grid layout of 3 columns and 4 rows.
| |
− |
| |
− | = Declare, customize, and display widgets =
| |
− |
| |
− | <source lang="java">
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− | </source>
| |
− |
| |
− | = Assign and code event handlers =
| |
− |
| |
− | <source lang="java">
| |
− |
| |
− | </source>
| |
− |
| |
− | = Write initialization code in the on-construction function =
| |
− |
| |
− | <source lang="java">
| |
− |
| |
− | </source>
| |
− |
| |
− |
| |
− | <br> <br><br> ♦ [[EDT:Code snippets|Code snippets main page]] <br>
| |
− |
| |
− | [[Category:EDT]]
| |