A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
16
Task/Hello-world-Graphical/EGL/hello-world-graphical.egl
Normal file
16
Task/Hello-world-Graphical/EGL/hello-world-graphical.egl
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import org.eclipse.edt.rui.widgets.*;
|
||||
import dojo.widgets.*;
|
||||
|
||||
handler HelloWorld type RUIhandler{initialUI =[ui]}
|
||||
|
||||
ui Box {columns=1, children=[nameField, helloLabel, goButton]};
|
||||
|
||||
nameField DojoTextField {placeHolder = "What's your name?", text = "World"};
|
||||
helloLabel TextLabel {};
|
||||
goButton DojoButton {text = "Say Goodbye", onClick ::= onClick_goButton};
|
||||
|
||||
function onClick_goButton(e Event in)
|
||||
helloLabel.text = "Goodbye, " + nameField.text + "!";
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue