Author: kmorin Date: 2009-07-30 17:00:19 +0200 (Thu, 30 Jul 2009) New Revision: 1544 Modified: trunk/guix-test-swing/src/main/java/org/nuiton/guix/demo/Controller.java trunk/guix-test-swing/src/main/java/org/nuiton/guix/demo/GuixDemo.guix Log: update the example files with the new feature Modified: trunk/guix-test-swing/src/main/java/org/nuiton/guix/demo/Controller.java =================================================================== --- trunk/guix-test-swing/src/main/java/org/nuiton/guix/demo/Controller.java 2009-07-30 14:59:58 UTC (rev 1543) +++ trunk/guix-test-swing/src/main/java/org/nuiton/guix/demo/Controller.java 2009-07-30 15:00:19 UTC (rev 1544) @@ -1,3 +1,21 @@ +/** + * *##% guix-test-swing + * Copyright (C) 2009 CodeLutin + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + */ package org.nuiton.guix.demo; public class Controller { @@ -2,6 +20,28 @@ + private java.lang.String text = "controller"; + private int num = 0; + public Controller() { System.out.println("Dude, it's bloody raining"); } + public void test() { + + } + + public java.lang.String getText() { + return text; + } + + public void setText(java.lang.String text) { + this.text = text; + } + + public int getNum() { + return num; + } + + public void setNum(int num) { + this.num = num; + } } Modified: trunk/guix-test-swing/src/main/java/org/nuiton/guix/demo/GuixDemo.guix =================================================================== --- trunk/guix-test-swing/src/main/java/org/nuiton/guix/demo/GuixDemo.guix 2009-07-30 14:59:58 UTC (rev 1543) +++ trunk/guix-test-swing/src/main/java/org/nuiton/guix/demo/GuixDemo.guix 2009-07-30 15:00:19 UTC (rev 1544) @@ -41,7 +41,9 @@ } ]]></script> - <java.util.ArrayList id="controller" /> + <java.util.ArrayList id="list" /> + <org.nuiton.guix.demo.Controller id="c1" text="c1" /> + <org.nuiton.guix.demo.Controller id="c2" num="10" /> <MenuBar border="new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.RAISED)"> <Menu constructor='"menu 1"'> <MenuItem id="item1" text="item1" /> @@ -89,9 +91,14 @@ </Row> <Row> <Cell columns="3"> - <GuixDemo3 id="bt34" text="bt34" /> + <Label text="{c1.getText()} : {c1.getNum()}" /> </Cell> - </Row> + </Row> + <Row> + <Cell columns="3"> + <Label text="{c2.getText()} : {c2.getNum()}" /> + </Cell> + </Row> <Row> <Cell columns="2"> <Label id="label3" text="color" foreground="java.awt.Color.YELLOW" />