3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4 <title>qooxdoo » Demo</title>
5 <link type="text/css" rel="stylesheet" href="../../resource/css/layout.css"/>
7 <link type="text/css" rel="stylesheet" href="../../resource/css/layout_ie.css"/>
9 <script type="text/javascript" src="../../script/qx.js"></script>
12 <script type="text/javascript" src="../../script/layout.js"></script>
14 <script type="text/javascript">
15 qx.core.Init.getInstance().defineMain(function() {
16 new qx.client.Builder().build(qx.ui.core.ClientDocument.getInstance(), document.getElementById('widgets'));
19 // test delegate object
23 alert(e + '\n\nclick received at delegate object\n\n' + this.hello);
27 // test delegate function
29 alert(e + '\n\nclick received at delegate function\n\n');
32 <div id="demoDescription">
33 <p>qx.client.Builder demo.</p>
34 <p>Build your web apps using qooxdooml.</p>
35 <p>Textarea example</p>
37 <textarea id='widgets' style='display:none'>
38 <qx.client.builder.Container>
39 <qx.ui.form.Button id='btn' label='Click Me!!!' location='20,50'>
41 <!-- function body event listener -->
42 <qx.client.builder.EventListener type='click' args='event'>
43 btn.setLabel(btn.getLabel() + ".");
44 alert(event + "\n\nClicked on: " + this.getLabel());
45 </qx.client.builder.EventListener>
48 global object.method delegation
49 when the button is clicked, d.click(event) will be called
51 <qx.client.builder.EventListener type='click' delegate='d.click'/>
54 global function delegation
55 when the button is clicked, f(event) will be called
57 <qx.client.builder.EventListener type='click' delegate='f'/>
60 <qx.ui.basic.Atom id='atom1' label='Test No #1' icon='icon/16/penguin.png' border='qx.renderer.border.BorderPresets.getInstance().black' location='20,90'/>
62 <qx.ui.form.Button label='Test No #2' icon='icon/16/penguin.png' location='20,120'>
63 <qx.client.builder.EventListener type='click'>
64 atom1.setLabel(atom1.getLabel() + ".");
65 </qx.client.builder.EventListener>
67 <qx.ui.basic.Atom label='Test No #3' icon='icon/16/penguin.png' location='20,160'/>
68 <qx.ui.basic.Atom label='a' icon='icon/16/penguin.png' location='20,200'/>
69 <qx.ui.basic.Atom label='b' icon='icon/16/penguin.png' location='20,240'/>
70 </qx.client.builder.Container>