01: package net.xoetrope.samples.xmlbuild;
02:
03: import net.xoetrope.awt.XButton;
04: import net.xoetrope.builder.NavigationHelper;
05: import net.xoetrope.xui.XPageManager;
06: import net.xoetrope.xui.XProjectManager;
07:
08: public class EventHandling extends NavigationHelper {
09:
10: public void nextPage() {
11: if (wasMouseClicked()) {
12: // Do something here...
13: XProjectManager.getPageManager().showPage(
14: (String) getAttribute("next"));
15: }
16: }
17:
18: public void cancel() {
19: if (wasMouseClicked()) {
20: XButton button = (XButton) findComponent("btnCancel");
21: button.setText("Clicked!");
22: }
23: }
24: }
|