author | Jaroslav Tulach <jaroslav.tulach@apidesign.org> |
Sat, 12 Jan 2013 20:24:30 +0100 | |
changeset 435 | fb4ed6cc0d4b |
parent 421 | 0236ad6ab4d2 |
child 437 | d7ec46950980 |
permissions | -rw-r--r-- |
jaroslav@421 | 1 |
package ${package}; |
jaroslav@141 | 2 |
|
jaroslav@435 | 3 |
import org.apidesign.bck2brwsr.htmlpage.api.On; |
jaroslav@435 | 4 |
import static org.apidesign.bck2brwsr.htmlpage.api.OnEvent.*; |
jaroslav@141 | 5 |
import org.apidesign.bck2brwsr.htmlpage.api.Page; |
jaroslav@141 | 6 |
|
jaroslav@421 | 7 |
/** Edit the index.xhtml file. Use 'id' to name certain HTML elements. |
jaroslav@421 | 8 |
* Use this class to define behavior of the elements. |
jaroslav@198 | 9 |
*/ |
jaroslav@421 | 10 |
@Page(xhtml="index.xhtml", className="Index") |
jaroslav@141 | 11 |
public class App { |
jaroslav@435 | 12 |
@On(event = CLICK, id="hello") |
jaroslav@421 | 13 |
static void hello() { |
jaroslav@421 | 14 |
Index.HELLO.setDisabled(true); |
jaroslav@435 | 15 |
Element.alert("Hello World!"); |
jaroslav@141 | 16 |
} |
jaroslav@141 | 17 |
} |