Author: kmorin Date: 2009-07-22 15:44:11 +0200 (Wed, 22 Jul 2009) New Revision: 1509 Modified: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo.java trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo2.java trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo2Abstract.java trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo2Impl.java trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo3.java trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo3Abstract.java trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo3Impl.java trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemoAbstract.java trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemoImpl.java trunk/guix-test-gwt/src/main/java/org/nuiton/guix/demo/GuixDemo.css trunk/guix-test-gwt/src/main/java/org/nuiton/guix/demo/GuixDemo.guix Log: example with the binding Modified: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo.java =================================================================== --- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo.java 2009-07-22 13:10:50 UTC (rev 1508) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo.java 2009-07-22 13:44:11 UTC (rev 1509) @@ -12,52 +12,54 @@ * test javadoc Application */ public interface GuixDemo { - /*---------------------------------------------------------------------------------*/ - /*-- public acessor methods -------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - public GuixDemo3Abstract getBt3(); - - public GuixDemo3Abstract getBt31(); - - public GuixDemo3Abstract getBt32(); - - public GuixDemo3Abstract getBt34(); - - public GuixDemo2Abstract getGd2(); - - public com.google.gwt.user.client.ui.FlexTable getTable1(); - - /*---------------------------------------------------------------------------------*/ - /*-- public mutator methods -------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - public void beforeBinding(); - - public void beforeCreation(); - - public void beforeInitialization(); - - /** - * Components creation - */ - public void componentsCreation(); - - /** - * components layout - */ - public void componentsTree(); - - public void inTheEnd(); - - /** - * initilization of databinding - */ - public void initDataBinding(); - - /** - * initialization - */ - public void initialize(); - -} \ No newline at end of file + /*---------------------------------------------------------------------------------*/ + /*-- public acessor methods -------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + public GuixDemo3Abstract getBt3(); + + public GuixDemo3Abstract getBt31(); + + public GuixDemo3Abstract getBt32(); + + public GuixDemo3Abstract getBt34(); + + public GuixDemo2Abstract getGd2(); + + public GuixDemo2Abstract getGd22(); + + public com.google.gwt.user.client.ui.FlexTable getTable1(); + + /*---------------------------------------------------------------------------------*/ + /*-- public mutator methods -------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + public void beforeBinding(); + + public void beforeCreation(); + + public void beforeInitialization(); + + /** + * Components creation + */ + public void componentsCreation(); + + /** + * components layout + */ + public void componentsTree(); + + public void inTheEnd(); + + /** + * initilization of databinding + */ + public void initDataBinding(); + + /** + * initialization + */ + public void initialize(); + + } \ No newline at end of file Modified: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo2.java =================================================================== --- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo2.java 2009-07-22 13:10:50 UTC (rev 1508) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo2.java 2009-07-22 13:44:11 UTC (rev 1509) @@ -6,36 +6,42 @@ * test javadoc Application */ public interface GuixDemo2 { - /*---------------------------------------------------------------------------------*/ - /*-- public mutator methods -------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - public void beforeBinding(); - - public void beforeCreation(); - - public void beforeInitialization(); - - /** - * Components creation - */ - public void componentsCreation(); - - /** - * components layout - */ - public void componentsTree(); - - public void inTheEnd(); - - /** - * initilization of databinding - */ - public void initDataBinding(); - - /** - * initialization - */ - public void initialize(); - -} \ No newline at end of file + /*---------------------------------------------------------------------------------*/ + /*-- public acessor methods -------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + public ToggleButton getButton(); + + /*---------------------------------------------------------------------------------*/ + /*-- public mutator methods -------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + public void beforeBinding(); + + public void beforeCreation(); + + public void beforeInitialization(); + + /** + * Components creation + */ + public void componentsCreation(); + + /** + * components layout + */ + public void componentsTree(); + + public void inTheEnd(); + + /** + * initilization of databinding + */ + public void initDataBinding(); + + /** + * initialization + */ + public void initialize(); + + } \ No newline at end of file Modified: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo2Abstract.java =================================================================== --- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo2Abstract.java 2009-07-22 13:10:50 UTC (rev 1508) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo2Abstract.java 2009-07-22 13:44:11 UTC (rev 1509) @@ -6,100 +6,136 @@ * test javadoc Application */ public abstract class GuixDemo2Abstract extends com.google.gwt.user.client.ui.FlowPanel implements GuixDemo2 { - /** - * test javadoc Application - */ - private final ToggleButton button = new ToggleButton(); - - /*---------------------------------------------------------------------------------*/ - /*-- Constructors -----------------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - /** - * Constructor - */ - public GuixDemo2Abstract() { - initialize(); - } - - /*---------------------------------------------------------------------------------*/ - /*-- public acessor methods -------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - public ToggleButton getButton() { - return button; - } - - /*---------------------------------------------------------------------------------*/ - /*-- public mutator methods -------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - public void beforeBinding() { - - } - - public void beforeCreation() { - - } - - public void beforeInitialization() { - - } - - /** - * Components creation - */ - public void componentsCreation() { - createButton(); - } - - /** - * Components initialization - */ - public void componentsTree() { - this.add(button); - } - - public void inTheEnd() { - - } - - /** - * initilization of databinding - */ - public void initDataBinding() { - //TODO - } - - /** - * initialization - */ - public void initialize() { - beforeCreation(); - componentsCreation(); - - beforeInitialization(); - componentsTree(); - beforeBinding(); - initDataBinding(); - inTheEnd(); - } - - /*---------------------------------------------------------------------------------*/ - /*-- ui creation methods ----------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - /** - * button creation - */ - private void createButton() { - button.setText("Push me"); - button.setDown(true); - button.addClickListener(new com.google.gwt.user.client.ui.ClickListener() { - public void onClick(com.google.gwt.user.client.ui.Widget widget){ - System.out.println("test"); - } - }); - } - -} \ No newline at end of file + /** + * List of the active bindings + */ + private java.util.List<String> activeBindings = new java.util.ArrayList<String>(); + private final com.google.gwt.user.client.ui.ToggleButton button = new ToggleButton("Up","Down"); + /** + * test javadoc Application + */ + private final org.nuiton.guix.client.GuixDemo2Abstract guixdemo2 = this; + + /*---------------------------------------------------------------------------------*/ + /*-- Constructors -----------------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + /** + * Constructor + */ + public GuixDemo2Abstract() { + initialize(); + } + + /*---------------------------------------------------------------------------------*/ + /*-- JAXXObject implementation ----------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + public void applyDataBinding(String _binding) { + processDataBinding(_binding); + } + + public void processDataBinding(String _binding) { + if (activeBindings.contains(_binding)) { + return; + } + activeBindings.add(_binding); + try{ + + } finally { + activeBindings.remove(_binding); + } + } + + public void removeDataBinding(String _binding) { + + } + + /*---------------------------------------------------------------------------------*/ + /*-- public acessor methods -------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + public java.util.List<String> getActiveBindings() { + return activeBindings; + } + + public com.google.gwt.user.client.ui.ToggleButton getButton() { + return button; + } + + public org.nuiton.guix.client.GuixDemo2Abstract getGuixdemo2() { + return guixdemo2; + } + + /*---------------------------------------------------------------------------------*/ + /*-- public mutator methods -------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + public void beforeBinding() { + + } + + public void beforeCreation() { + + } + + public void beforeInitialization() { + + } + + /** + * Components creation + */ + public void componentsCreation() { + createButton(); + } + + /** + * Components initialization + */ + public void componentsTree() { + this.add(button); + } + + public void inTheEnd() { + + } + + /** + * initilization of databinding + */ + public void initDataBinding() { + //TODO + } + + /** + * initialization + */ + public void initialize() { + beforeCreation(); + componentsCreation(); + + beforeInitialization(); + componentsTree(); + beforeBinding(); + initDataBinding(); + inTheEnd(); + } + + /*---------------------------------------------------------------------------------*/ + /*-- ui creation methods ----------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + /** + * button creation + */ + private void createButton() { + button.setDown(true); + button.addClickListener(new com.google.gwt.user.client.ui.ClickListener() { + public void onClick(com.google.gwt.user.client.ui.Widget arg0){ + System.out.println("hey dude !"); + } + }); + } + + } \ No newline at end of file Modified: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo2Impl.java =================================================================== --- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo2Impl.java 2009-07-22 13:10:50 UTC (rev 1508) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo2Impl.java 2009-07-22 13:44:11 UTC (rev 1509) @@ -6,15 +6,15 @@ * test javadoc Application */ public class GuixDemo2Impl extends GuixDemo2Abstract { - /*---------------------------------------------------------------------------------*/ - /*-- Constructors -----------------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - /** - * Constructor - */ - public GuixDemo2Impl() { - super(); - } - -} \ No newline at end of file + /*---------------------------------------------------------------------------------*/ + /*-- Constructors -----------------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + /** + * Constructor + */ + public GuixDemo2Impl() { + super(); + } + + } \ No newline at end of file Modified: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo3.java =================================================================== --- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo3.java 2009-07-22 13:10:50 UTC (rev 1508) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo3.java 2009-07-22 13:44:11 UTC (rev 1509) @@ -4,36 +4,36 @@ * test javadoc Application */ public interface GuixDemo3 { - /*---------------------------------------------------------------------------------*/ - /*-- public mutator methods -------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - public void beforeBinding(); - - public void beforeCreation(); - - public void beforeInitialization(); - - /** - * Components creation - */ - public void componentsCreation(); - - /** - * components layout - */ - public void componentsTree(); - - public void inTheEnd(); - - /** - * initilization of databinding - */ - public void initDataBinding(); - - /** - * initialization - */ - public void initialize(); - -} \ No newline at end of file + /*---------------------------------------------------------------------------------*/ + /*-- public mutator methods -------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + public void beforeBinding(); + + public void beforeCreation(); + + public void beforeInitialization(); + + /** + * Components creation + */ + public void componentsCreation(); + + /** + * components layout + */ + public void componentsTree(); + + public void inTheEnd(); + + /** + * initilization of databinding + */ + public void initDataBinding(); + + /** + * initialization + */ + public void initialize(); + + } \ No newline at end of file Modified: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo3Abstract.java =================================================================== --- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo3Abstract.java 2009-07-22 13:10:50 UTC (rev 1508) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo3Abstract.java 2009-07-22 13:44:11 UTC (rev 1509) @@ -4,70 +4,115 @@ * test javadoc Application */ public abstract class GuixDemo3Abstract extends com.google.gwt.user.client.ui.Button implements GuixDemo3 { - /*---------------------------------------------------------------------------------*/ - /*-- Constructors -----------------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - /** - * Constructor - */ - public GuixDemo3Abstract() { - initialize(); - } - - /*---------------------------------------------------------------------------------*/ - /*-- public mutator methods -------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - public void beforeBinding() { - - } - - public void beforeCreation() { - - } - - public void beforeInitialization() { - - } - - /** - * Components creation - */ - public void componentsCreation() { - - } - - /** - * Components initialization - */ - public void componentsTree() { - this.setText("GuixDemo3"); - } - - public void inTheEnd() { - - } - - /** - * initilization of databinding - */ - public void initDataBinding() { - //TODO - } - - /** - * initialization - */ - public void initialize() { - beforeCreation(); - componentsCreation(); - - beforeInitialization(); - componentsTree(); - beforeBinding(); - initDataBinding(); - inTheEnd(); - } - -} \ No newline at end of file + /** + * List of the active bindings + */ + private java.util.List<String> activeBindings = new java.util.ArrayList<String>(); + /** + * test javadoc Application + */ + private final org.nuiton.guix.client.GuixDemo3Abstract guixdemo3 = this; + + /*---------------------------------------------------------------------------------*/ + /*-- Constructors -----------------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + /** + * Constructor + */ + public GuixDemo3Abstract() { + initialize(); + } + + /*---------------------------------------------------------------------------------*/ + /*-- JAXXObject implementation ----------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + public void applyDataBinding(String _binding) { + processDataBinding(_binding); + } + + public void processDataBinding(String _binding) { + if (activeBindings.contains(_binding)) { + return; + } + activeBindings.add(_binding); + try{ + + } finally { + activeBindings.remove(_binding); + } + } + + public void removeDataBinding(String _binding) { + + } + + /*---------------------------------------------------------------------------------*/ + /*-- public acessor methods -------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + public java.util.List<String> getActiveBindings() { + return activeBindings; + } + + public org.nuiton.guix.client.GuixDemo3Abstract getGuixdemo3() { + return guixdemo3; + } + + /*---------------------------------------------------------------------------------*/ + /*-- public mutator methods -------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + public void beforeBinding() { + + } + + public void beforeCreation() { + + } + + public void beforeInitialization() { + + } + + /** + * Components creation + */ + public void componentsCreation() { + + } + + /** + * Components initialization + */ + public void componentsTree() { + this.setText("GuixDemo3"); + } + + public void inTheEnd() { + + } + + /** + * initilization of databinding + */ + public void initDataBinding() { + //TODO + } + + /** + * initialization + */ + public void initialize() { + beforeCreation(); + componentsCreation(); + + beforeInitialization(); + componentsTree(); + beforeBinding(); + initDataBinding(); + inTheEnd(); + } + + } \ No newline at end of file Modified: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo3Impl.java =================================================================== --- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo3Impl.java 2009-07-22 13:10:50 UTC (rev 1508) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo3Impl.java 2009-07-22 13:44:11 UTC (rev 1509) @@ -4,15 +4,15 @@ * test javadoc Application */ public class GuixDemo3Impl extends GuixDemo3Abstract { - /*---------------------------------------------------------------------------------*/ - /*-- Constructors -----------------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - /** - * Constructor - */ - public GuixDemo3Impl() { - super(); - } - -} \ No newline at end of file + /*---------------------------------------------------------------------------------*/ + /*-- Constructors -----------------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + /** + * Constructor + */ + public GuixDemo3Impl() { + super(); + } + + } \ No newline at end of file Modified: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemoAbstract.java =================================================================== --- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemoAbstract.java 2009-07-22 13:10:50 UTC (rev 1508) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemoAbstract.java 2009-07-22 13:44:11 UTC (rev 1509) @@ -9,360 +9,494 @@ import org.nuiton.guix.client.GuixDemo2Abstract; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.Command; -import com.google.gwt.user.client.ui.PopupPanel; /** * test javadoc Application */ public abstract class GuixDemoAbstract extends com.google.gwt.user.client.ui.VerticalPanel implements GuixDemo { - private final MenuBar $Menu2 = new MenuBar(); - private final MenuBar $Menu4 = new MenuBar(); - private final MenuBar $Menu6 = new MenuBar(); - private final MenuBar $MenuBar1 = new MenuBar(); - private final TabPanel $TabPanel9 = new TabPanel(); - private final GuixDemo3Abstract bt3 = new GuixDemo3Impl(); - private final GuixDemo3Abstract bt31 = new GuixDemo3Impl(); - private final GuixDemo3Abstract bt32 = new GuixDemo3Impl(); - private final GuixDemo3Abstract bt34 = new GuixDemo3Impl(); - private final GuixDemo2Abstract gd2 = new GuixDemo2Impl(); - private final Label label = new Label(); - private final Label label2 = new Label(); - private final Label label3 = new Label(); - private final FlexTable table1 = new FlexTable(); - /** - * javadoc textfield - */ - private final TextBox textfield = new TextBox(); - - /* begin raw body code */ - private Button b = new Button("test"); - private Command cmd = new Command() { - public void execute() { - final com.google.gwt.user.client.ui.PopupPanel pp = new com.google.gwt.user.client.ui.PopupPanel(true); - pp.add(new com.google.gwt.user.client.ui.Label("Action performed!")); - pp.show(); - } - }; - public enum Day { - SUNDAY, MONDAY, TUESDAY, WEDNESDAY, - THURSDAY, FRIDAY, SATURDAY - } - /* end raw body code */ - /*---------------------------------------------------------------------------------*/ - /*-- Statics methods --------------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - public static void testSameName() { - System.out.println("load the script file with the same name"); - } - - /*---------------------------------------------------------------------------------*/ - /*-- Constructors -----------------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - /** - * Constructor - */ - public GuixDemoAbstract() { - initialize(); - } - - /*---------------------------------------------------------------------------------*/ - /*-- public acessor methods -------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - public MenuBar get$Menu2() { - return $Menu2; - } - - public MenuBar get$Menu4() { - return $Menu4; - } - - public MenuBar get$Menu6() { - return $Menu6; - } - - public MenuBar get$MenuBar1() { - return $MenuBar1; - } - - public TabPanel get$TabPanel9() { - return $TabPanel9; - } - - public GuixDemo3Abstract getBt3() { - return bt3; - } - - public GuixDemo3Abstract getBt31() { - return bt31; - } - - public GuixDemo3Abstract getBt32() { - return bt32; - } - - public GuixDemo3Abstract getBt34() { - return bt34; - } - - public GuixDemo2Abstract getGd2() { - return gd2; - } - - public Label getLabel() { - return label; - } - - public Label getLabel2() { - return label2; - } - - public Label getLabel3() { - return label3; - } - - public FlexTable getTable1() { - return table1; - } - - public TextBox getTextfield() { - return textfield; - } - - /*---------------------------------------------------------------------------------*/ - /*-- public mutator methods -------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - public void beforeBinding() { - this.add(b); - } - - public void beforeCreation() { - System.out.println("before Creation"); - } - - public void beforeInitialization() { - - } - - /** - * Components creation - */ - public void componentsCreation() { - create$MenuBar1(); - create$TabPanel9(); - createTextfield(); - createLabel(); - createLabel2(); - createBt3(); - createBt31(); - createBt32(); - createBt34(); - createLabel3(); - createTable1(); - createGd2(); - } - - /** - * Components initialization - */ - public void componentsTree() { - this.add($MenuBar1); - $MenuBar1.addItem("menu 1",$Menu2); - $Menu2.addItem("item11",cmd); - $Menu2.addItem("item12",cmd); - $MenuBar1.addItem("menu 2",$Menu4); - $Menu4.addItem("item21",cmd); - $Menu4.addItem("item22",$Menu6); - $Menu6.addItem("item221",cmd); - $Menu6.addItem("item222",cmd); - this.add($TabPanel9); - $TabPanel9.add(table1,"Table"); - table1.getRowFormatter().addStyleName(0,"Row"); - table1.setWidget(0,0,textfield); - table1.getFlexCellFormatter().setHorizontalAlignment(0,0,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); - table1.getFlexCellFormatter().setVerticalAlignment(0,0,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); - table1.getFlexCellFormatter().addStyleName(0,0, "Cell"); - table1.setWidget(0,1,label); - table1.getFlexCellFormatter().setHorizontalAlignment(0,1,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); - table1.getFlexCellFormatter().setVerticalAlignment(0,1,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); - table1.getFlexCellFormatter().addStyleName(0,1, "Cell"); - table1.setWidget(0,2,label2); - table1.getFlexCellFormatter().setRowSpan(0,2,3); - table1.getFlexCellFormatter().setHorizontalAlignment(0,2,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); - table1.getFlexCellFormatter().setVerticalAlignment(0,2,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); - table1.getFlexCellFormatter().addStyleName(0,2, "Cell"); - table1.getRowFormatter().addStyleName(1,"Row"); - table1.setWidget(1,0,bt3); - table1.getFlexCellFormatter().setColSpan(1,0,3); - table1.getFlexCellFormatter().setHorizontalAlignment(1,0,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); - table1.getFlexCellFormatter().setVerticalAlignment(1,0,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); - table1.getFlexCellFormatter().addStyleName(1,0, "Cell"); - table1.getRowFormatter().addStyleName(2,"Row"); - table1.setWidget(2,0,bt31); - table1.getFlexCellFormatter().setColSpan(2,0,2); - table1.getFlexCellFormatter().setHorizontalAlignment(2,0,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); - table1.getFlexCellFormatter().setVerticalAlignment(2,0,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); - table1.getFlexCellFormatter().addStyleName(2,0, "Cell"); - table1.setWidget(2,2,bt32); - table1.getFlexCellFormatter().setHorizontalAlignment(2,2,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); - table1.getFlexCellFormatter().setVerticalAlignment(2,2,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); - table1.getFlexCellFormatter().addStyleName(2,2, "Cell"); - table1.getRowFormatter().addStyleName(3,"Row"); - table1.setWidget(3,0,bt34); - table1.getFlexCellFormatter().setColSpan(3,0,3); - table1.getFlexCellFormatter().setHorizontalAlignment(3,0,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); - table1.getFlexCellFormatter().setVerticalAlignment(3,0,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); - table1.getFlexCellFormatter().addStyleName(3,0, "Cell"); - table1.getRowFormatter().addStyleName(4,"Row"); - table1.setWidget(4,0,label3); - table1.getFlexCellFormatter().setColSpan(4,0,2); - table1.getFlexCellFormatter().setHorizontalAlignment(4,0,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); - table1.getFlexCellFormatter().setVerticalAlignment(4,0,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); - table1.getFlexCellFormatter().addStyleName(4,0, "Cell"); - $TabPanel9.add(gd2,"GD2"); - } - - public void inTheEnd() { - - } - - /** - * initilization of databinding - */ - public void initDataBinding() { - //TODO - } - - /** - * initialization - */ - public void initialize() { - beforeCreation(); - componentsCreation(); - b.addClickListener(new com.google.gwt.user.client.ui.ClickListener() { - public void onClick(com.google.gwt.user.client.ui.Widget sender) { - if(gd2.getButton().isDown()) { - table1.setSize(String.valueOf(com.google.gwt.user.client.Random.nextInt(800) + "px"), - String.valueOf(com.google.gwt.user.client.Random.nextInt(400)) + "px"); - } - } - }); - beforeInitialization(); - componentsTree(); - beforeBinding(); - initDataBinding(); - inTheEnd(); - } - - /** - * - * test - * @since 0.0.1 - * - */ - public void test2(String test) throws NullPointerException, ArrayIndexOutOfBoundsException { - System.out.println(test); - } - - /*---------------------------------------------------------------------------------*/ - /*-- ui creation methods ----------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - /** - * $MenuBar1 creation - */ - private void create$MenuBar1() { - - } - - /** - * $TabPanel9 creation - */ - private void create$TabPanel9() { - $TabPanel9.setSize("800px","400px"); - } - - /** - * bt3 creation - */ - private void createBt3() { - bt3.setText("bt3"); - bt3.addClickListener(new com.google.gwt.user.client.ui.ClickListener() { - public void onClick(com.google.gwt.user.client.ui.Widget widget){ - System.out.println("beau gosse"); - } - }); - } - - /** - * bt31 creation - */ - private void createBt31() { - bt31.setText("bt31"); - } - - /** - * bt32 creation - */ - private void createBt32() { - bt32.setText("bt32"); - } - - /** - * bt34 creation - */ - private void createBt34() { - bt34.setText("bt34"); - } - - /** - * gd2 creation - */ - private void createGd2() { - - } - - /** - * label creation - */ - private void createLabel() { - - } - - /** - * label2 creation - */ - private void createLabel2() { - label2.setText("color"); - } - - /** - * label3 creation - */ - private void createLabel3() { - label3.setText("color"); - } - - /** - * table1 creation - */ - private void createTable1() { - table1.addStyleName("Table"); - } - - /** - * textfield creation - */ - private void createTextfield() { - textfield.setText("test"); - textfield.addFocusListener(new com.google.gwt.user.client.ui.FocusListenerAdapter() { - public void onFocus(com.google.gwt.user.client.ui.Widget widget){ - System.out.println("dude !"); - } - }); - } - -} \ No newline at end of file + private final com.google.gwt.user.client.ui.MenuBar $Menu2 = new MenuBar(); + private final com.google.gwt.user.client.ui.MenuBar $Menu4 = new MenuBar(); + private final com.google.gwt.user.client.ui.MenuBar $Menu6 = new MenuBar(); + private final MenuBar $MenuBar1 = new MenuBar(); + private final com.google.gwt.user.client.ui.TabPanel $TabPanel9 = new TabPanel(); + /** + * List of the active bindings + */ + private java.util.List<String> activeBindings = new java.util.ArrayList<String>(); + private final org.nuiton.guix.client.GuixDemo3Abstract bt3 = new GuixDemo3Impl(); + private final org.nuiton.guix.client.GuixDemo3Abstract bt31 = new GuixDemo3Impl(); + private final org.nuiton.guix.client.GuixDemo3Abstract bt32 = new GuixDemo3Impl(); + private final org.nuiton.guix.client.GuixDemo3Abstract bt34 = new GuixDemo3Impl(); + private final org.nuiton.guix.client.GuixDemo2Abstract gd2 = new GuixDemo2Impl(); + private final org.nuiton.guix.client.GuixDemo2Abstract gd22 = new GuixDemo2Impl(); + /** + * test javadoc Application + */ + private final org.nuiton.guix.client.GuixDemoAbstract guixdemo = this; + private final com.google.gwt.user.client.ui.Label label = new Label(); + private final com.google.gwt.user.client.ui.Label label2 = new Label(); + private final com.google.gwt.user.client.ui.Label label3 = new Label(); + private final FlexTable table1 = new FlexTable(); + /** + * javadoc textfield + */ + private final com.google.gwt.user.client.ui.TextBox textfield = new TextBox(); + + /* begin raw body code */ + + private Button b = new Button("test"); + private Command cmd = new Command() { + public void execute() { + final com.google.gwt.user.client.ui.PopupPanel pp = new com.google.gwt.user.client.ui.PopupPanel(true); + pp.add(new com.google.gwt.user.client.ui.Label("Action performed!")); + pp.show(); + } + }; + public enum Day { + SUNDAY, MONDAY, TUESDAY, WEDNESDAY, + THURSDAY, FRIDAY, SATURDAY + } + + /* end raw body code */ + + /*---------------------------------------------------------------------------------*/ + /*-- Constructors -----------------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + /** + * Constructor + */ + public GuixDemoAbstract() { + initialize(); + } + + /*---------------------------------------------------------------------------------*/ + /*-- JAXXObject implementation ----------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + public void applyDataBinding(String _binding) { + if("textfield.enabled".equals(_binding)) { + if(getGd2() != null && getGd2().getButton() != null) { + getGd2().getButton().addClickListener(new com.google.gwt.user.client.ui.ClickListener() { + public void onClick(com.google.gwt.user.client.ui.Widget arg0) { + onChangeFromgd2getButtondown(); + } + }); + } + if(getGd22() != null && getGd22().getButton() != null) { + getGd22().getButton().addClickListener(new com.google.gwt.user.client.ui.ClickListener() { + public void onClick(com.google.gwt.user.client.ui.Widget arg0) { + onChangeFromgd22buttonisSelected(); + } + }); + } + } + else if("label.text".equals(_binding)) { + if(getTextfield() != null) { + getTextfield().addKeyboardListener(new com.google.gwt.user.client.ui.KeyboardListener() { + public void onKeyDown(com.google.gwt.user.client.ui.Widget arg0, char arg1, int arg2) { + onChangeFromtextfieldgetText(); + } + public void onKeyPress(com.google.gwt.user.client.ui.Widget arg0, char arg1, int arg2) { + onChangeFromtextfieldgetText(); + } + public void onKeyUp(com.google.gwt.user.client.ui.Widget arg0, char arg1, int arg2) { + onChangeFromtextfieldgetText(); + } + }); + } + } + + processDataBinding(_binding); + } + + public void processDataBinding(String _binding) { + if (activeBindings.contains(_binding)) { + return; + } + activeBindings.add(_binding); + try{ + if("textfield.enabled".equals(_binding)) { + textfield.setEnabled(getGd2().getButton().isDown() && getGd22().getButton().isDown()); + } + else if("label.text".equals(_binding)) { + label.setText(getTextfield().getText()); + } + + } finally { + activeBindings.remove(_binding); + } + } + + public void removeDataBinding(String _binding) { + if("textfield.enabled".equals(_binding)) { + if(getGd2() != null && getGd2().getButton() != null) { + getGd2().getButton().removeClickListener(new com.google.gwt.user.client.ui.ClickListener() { + public void onClick(com.google.gwt.user.client.ui.Widget arg0) { + onChangeFromgd2getButtondown(); + } + }); + } + if(getGd22() != null && getGd22().getButton() != null) { + getGd22().getButton().removeClickListener(new com.google.gwt.user.client.ui.ClickListener() { + public void onClick(com.google.gwt.user.client.ui.Widget arg0) { + onChangeFromgd22buttonisSelected(); + } + }); + } + } + else if("label.text".equals(_binding)) { + if(getTextfield() != null) { + getTextfield().removeKeyboardListener(new com.google.gwt.user.client.ui.KeyboardListener() { + public void onKeyDown(com.google.gwt.user.client.ui.Widget arg0, char arg1, int arg2) { + onChangeFromtextfieldgetText(); + } + public void onKeyPress(com.google.gwt.user.client.ui.Widget arg0, char arg1, int arg2) { + onChangeFromtextfieldgetText(); + } + public void onKeyUp(com.google.gwt.user.client.ui.Widget arg0, char arg1, int arg2) { + onChangeFromtextfieldgetText(); + } + }); + } + } + } + + /*---------------------------------------------------------------------------------*/ + /*-- public acessor methods -------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + public com.google.gwt.user.client.ui.MenuBar get$Menu2() { + return $Menu2; + } + + public com.google.gwt.user.client.ui.MenuBar get$Menu4() { + return $Menu4; + } + + public com.google.gwt.user.client.ui.MenuBar get$Menu6() { + return $Menu6; + } + + public MenuBar get$MenuBar1() { + return $MenuBar1; + } + + public com.google.gwt.user.client.ui.TabPanel get$TabPanel9() { + return $TabPanel9; + } + + public java.util.List<String> getActiveBindings() { + return activeBindings; + } + + public org.nuiton.guix.client.GuixDemo3Abstract getBt3() { + return bt3; + } + + public org.nuiton.guix.client.GuixDemo3Abstract getBt31() { + return bt31; + } + + public org.nuiton.guix.client.GuixDemo3Abstract getBt32() { + return bt32; + } + + public org.nuiton.guix.client.GuixDemo3Abstract getBt34() { + return bt34; + } + + public org.nuiton.guix.client.GuixDemo2Abstract getGd2() { + return gd2; + } + + public org.nuiton.guix.client.GuixDemo2Abstract getGd22() { + return gd22; + } + + public org.nuiton.guix.client.GuixDemoAbstract getGuixdemo() { + return guixdemo; + } + + public com.google.gwt.user.client.ui.Label getLabel() { + return label; + } + + public com.google.gwt.user.client.ui.Label getLabel2() { + return label2; + } + + public com.google.gwt.user.client.ui.Label getLabel3() { + return label3; + } + + public FlexTable getTable1() { + return table1; + } + + public com.google.gwt.user.client.ui.TextBox getTextfield() { + return textfield; + } + + /*---------------------------------------------------------------------------------*/ + /*-- public mutator methods -------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + public void beforeBinding() { + this.add(b); + } + + public void beforeCreation() { + System.out.println("before Creation"); + } + + public void beforeInitialization() { + + } + + /** + * Components creation + */ + public void componentsCreation() { + create$MenuBar1(); + create$TabPanel9(); + createTextfield(); + createLabel(); + createLabel2(); + createBt3(); + createBt31(); + createBt32(); + createBt34(); + createLabel3(); + createTable1(); + createGd2(); + createGd22(); + } + + /** + * Components initialization + */ + public void componentsTree() { + this.add($MenuBar1); + $MenuBar1.addItem("menu 1",$Menu2); + $Menu2.addItem("item11",cmd); + $Menu2.addItem("item12",cmd); + $MenuBar1.addItem("menu 2",$Menu4); + $Menu4.addItem("item21",cmd); + $Menu4.addItem("item22",$Menu6); + $Menu6.addItem("item221",cmd); + $Menu6.addItem("item222",cmd); + this.add($TabPanel9); + $TabPanel9.add(table1,"Table"); + table1.getRowFormatter().addStyleName(0,"Row"); + table1.setWidget(0,0,textfield); + table1.getFlexCellFormatter().setHorizontalAlignment(0,0,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); + table1.getFlexCellFormatter().setVerticalAlignment(0,0,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); + table1.getFlexCellFormatter().addStyleName(0,0, "Cell"); + table1.setWidget(0,1,label); + table1.getFlexCellFormatter().setHorizontalAlignment(0,1,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); + table1.getFlexCellFormatter().setVerticalAlignment(0,1,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); + table1.getFlexCellFormatter().addStyleName(0,1, "Cell"); + table1.setWidget(0,2,label2); + table1.getFlexCellFormatter().setRowSpan(0,2,3); + table1.getFlexCellFormatter().setHorizontalAlignment(0,2,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); + table1.getFlexCellFormatter().setVerticalAlignment(0,2,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); + table1.getFlexCellFormatter().addStyleName(0,2, "Cell"); + table1.getRowFormatter().addStyleName(1,"Row"); + table1.setWidget(1,0,bt3); + table1.getFlexCellFormatter().setColSpan(1,0,3); + table1.getFlexCellFormatter().setHorizontalAlignment(1,0,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); + table1.getFlexCellFormatter().setVerticalAlignment(1,0,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); + table1.getFlexCellFormatter().addStyleName(1,0, "Cell"); + table1.getRowFormatter().addStyleName(2,"Row"); + table1.setWidget(2,0,bt31); + table1.getFlexCellFormatter().setColSpan(2,0,2); + table1.getFlexCellFormatter().setHorizontalAlignment(2,0,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); + table1.getFlexCellFormatter().setVerticalAlignment(2,0,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); + table1.getFlexCellFormatter().addStyleName(2,0, "Cell"); + table1.setWidget(2,2,bt32); + table1.getFlexCellFormatter().setHorizontalAlignment(2,2,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); + table1.getFlexCellFormatter().setVerticalAlignment(2,2,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); + table1.getFlexCellFormatter().addStyleName(2,2, "Cell"); + table1.getRowFormatter().addStyleName(3,"Row"); + table1.setWidget(3,0,bt34); + table1.getFlexCellFormatter().setColSpan(3,0,3); + table1.getFlexCellFormatter().setHorizontalAlignment(3,0,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); + table1.getFlexCellFormatter().setVerticalAlignment(3,0,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); + table1.getFlexCellFormatter().addStyleName(3,0, "Cell"); + table1.getRowFormatter().addStyleName(4,"Row"); + table1.setWidget(4,0,label3); + table1.getFlexCellFormatter().setColSpan(4,0,2); + table1.getFlexCellFormatter().setHorizontalAlignment(4,0,com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_DEFAULT); + table1.getFlexCellFormatter().setVerticalAlignment(4,0,com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_TOP); + table1.getFlexCellFormatter().addStyleName(4,0, "Cell"); + $TabPanel9.add(gd2,"GD2"); + $TabPanel9.add(gd22,"GD22"); + } + + public void inTheEnd() { + + } + + /** + * initilization of databinding + */ + public void initDataBinding() { + //TODO + applyDataBinding("textfield.enabled"); + applyDataBinding("label.text"); + } + + /** + * initialization + */ + public void initialize() { + beforeCreation(); + componentsCreation(); + b.addClickListener(new com.google.gwt.user.client.ui.ClickListener() { + public void onClick(com.google.gwt.user.client.ui.Widget sender) { + if(gd2.getButton().isDown()) { + table1.setSize(String.valueOf(com.google.gwt.user.client.Random.nextInt(800)), + String.valueOf(com.google.gwt.user.client.Random.nextInt(400))); + } + } + }); + beforeInitialization(); + componentsTree(); + beforeBinding(); + initDataBinding(); + inTheEnd(); + } + + public void onChangeFromgd22buttonisSelected() { + processDataBinding("textfield.enabled"); + } + + public void onChangeFromgd2getButtondown() { + processDataBinding("textfield.enabled"); + } + + public void onChangeFromtextfieldgetText() { + processDataBinding("label.text"); + } + + /** + * + * test + * @since 0.0.1 + * + */ + public void test2(String test) throws NullPointerException, ArrayIndexOutOfBoundsException { + System.out.println(test); + } + + public void testSameName() { + System.out.println("load the script file with the same name"); + } + + /*---------------------------------------------------------------------------------*/ + /*-- ui creation methods ----------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + /** + * $MenuBar1 creation + */ + private void create$MenuBar1() { + + } + + /** + * $TabPanel9 creation + */ + private void create$TabPanel9() { + $TabPanel9.setSize("800px","400px"); + } + + /** + * bt3 creation + */ + private void createBt3() { + bt3.setText("bt3"); + bt3.addClickListener(new com.google.gwt.user.client.ui.ClickListener() { + public void onClick(com.google.gwt.user.client.ui.Widget arg0){ + System.out.println("beau gosse"); + } + }); + } + + /** + * bt31 creation + */ + private void createBt31() { + bt31.setText("bt31"); + } + + /** + * bt32 creation + */ + private void createBt32() { + bt32.setText("bt32"); + } + + /** + * bt34 creation + */ + private void createBt34() { + bt34.setText("bt34"); + } + + /** + * gd2 creation + */ + private void createGd2() { + + } + + /** + * gd22 creation + */ + private void createGd22() { + + } + + /** + * label creation + */ + private void createLabel() { + + } + + /** + * label2 creation + */ + private void createLabel2() { + label2.setText("color"); + } + + /** + * label3 creation + */ + private void createLabel3() { + label3.setText("color"); + } + + /** + * table1 creation + */ + private void createTable1() { + table1.addStyleName("Table"); + } + + /** + * textfield creation + */ + private void createTextfield() { + textfield.setText("test"); + textfield.addFocusListener(new com.google.gwt.user.client.ui.FocusListenerAdapter() { + public void onFocus(com.google.gwt.user.client.ui.Widget arg0){ + System.out.println("dude !"); + } + }); + } + + } \ No newline at end of file Modified: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemoImpl.java =================================================================== --- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemoImpl.java 2009-07-22 13:10:50 UTC (rev 1508) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemoImpl.java 2009-07-22 13:44:11 UTC (rev 1509) @@ -12,23 +12,23 @@ * test javadoc Application */ public class GuixDemoImpl extends GuixDemoAbstract implements com.google.gwt.core.client.EntryPoint { - /*---------------------------------------------------------------------------------*/ - /*-- Constructors -----------------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - /** - * Constructor - */ - public GuixDemoImpl() { - super(); - } - - /*---------------------------------------------------------------------------------*/ - /*-- public mutator methods -------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - public void onModuleLoad() { - com.google.gwt.user.client.ui.RootPanel.get().add(this); - } - -} \ No newline at end of file + /*---------------------------------------------------------------------------------*/ + /*-- Constructors -----------------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + /** + * Constructor + */ + public GuixDemoImpl() { + super(); + } + + /*---------------------------------------------------------------------------------*/ + /*-- public mutator methods -------------------------------------------------------*/ + /*---------------------------------------------------------------------------------*/ + + public void onModuleLoad() { + com.google.gwt.user.client.ui.RootPanel.get().add(this); + } + + } \ No newline at end of file Modified: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/demo/GuixDemo.css =================================================================== --- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/demo/GuixDemo.css 2009-07-22 13:10:50 UTC (rev 1508) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/demo/GuixDemo.css 2009-07-22 13:44:11 UTC (rev 1509) @@ -11,6 +11,6 @@ .bold { - font : bold; + font-weight : bold; } Modified: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/demo/GuixDemo.guix =================================================================== --- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/demo/GuixDemo.guix 2009-07-22 13:10:50 UTC (rev 1508) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/demo/GuixDemo.guix 2009-07-22 13:44:11 UTC (rev 1509) @@ -47,15 +47,15 @@ ]]></script> <MenuBar> - <Menu text='menu 1'> - <MenuItem id="item1" text="item11" command='cmd' /> - <MenuItem text="item12" command='cmd' /> + <Menu text="menu 1"> + <MenuItem id="item1" text="item11" action='cmd' /> + <MenuItem text="item12" action='cmd' /> </Menu> - <Menu text='menu 2'> - <MenuItem text="item21" command='cmd' /> - <Menu text="item22"> - <MenuItem text="item221" command='cmd' /> - <MenuItem text="item222" command='cmd' /> + <Menu text="menu 2"> + <MenuItem text="item21" action='cmd' /> + <Menu text='item22'> + <MenuItem text="item221" action='cmd' /> + <MenuItem text="item222" action='cmd' /> </Menu> </Menu> </MenuBar> @@ -64,7 +64,7 @@ <Row> <Cell> <!-- javadoc textfield --> - <TextField id="textfield" text='test' enabled="{gd2.getButton().isSelected()}" onFocus='{System.out.println("dude !")}'/> + <TextField id="textfield" text='test' enabled="{gd2.getButton().down && gd22.button.isSelected()}" onFocus='{System.out.println("dude !")}'/> </Cell> <Cell> <Label id="label" text="{textfield.getText()}" styleClass="bold" /> @@ -98,5 +98,6 @@ </Row> </Table> <GuixDemo2 id="gd2" name="GD2" /> + <GuixDemo2 id="gd22" name="GD22" /> </TabPanel> </Application>