[Buix-commits] r1517 - in trunk/guix-test-gwt/src/main/java/org/nuiton/guix: client public
Author: kmorin Date: 2009-07-23 13:51:26 +0200 (Thu, 23 Jul 2009) New Revision: 1517 Removed: 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/public/Application.css trunk/guix-test-gwt/src/main/java/org/nuiton/guix/public/Application.html trunk/guix-test-gwt/src/main/java/org/nuiton/guix/public/GuixDemo.css trunk/guix-test-gwt/src/main/java/org/nuiton/guix/public/Index.html Log: Removes the java files Deleted: 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-23 10:52:07 UTC (rev 1516) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo.java 2009-07-23 11:51:26 UTC (rev 1517) @@ -1,65 +0,0 @@ -package org.nuiton.guix.client; - -import com.google.gwt.user.client.ui.MenuBar; -import com.google.gwt.user.client.ui.TabPanel; -import com.google.gwt.user.client.ui.FlexTable; -import com.google.gwt.user.client.ui.TextBox; -import com.google.gwt.user.client.ui.Label; -import org.nuiton.guix.client.GuixDemo3Abstract; -import org.nuiton.guix.client.GuixDemo2Abstract; - -/** - * 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 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 Deleted: 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-23 10:52:07 UTC (rev 1516) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo2.java 2009-07-23 11:51:26 UTC (rev 1517) @@ -1,47 +0,0 @@ -package org.nuiton.guix.client; - -import com.google.gwt.user.client.ui.ToggleButton; - -/** - * test javadoc Application - */ -public interface GuixDemo2 { - /*---------------------------------------------------------------------------------*/ - /*-- 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 Deleted: 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-23 10:52:07 UTC (rev 1516) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo2Abstract.java 2009-07-23 11:51:26 UTC (rev 1517) @@ -1,141 +0,0 @@ -package org.nuiton.guix.client; - -import com.google.gwt.user.client.ui.ToggleButton; - -/** - * test javadoc Application - */ -public abstract class GuixDemo2Abstract extends com.google.gwt.user.client.ui.FlowPanel implements GuixDemo2 { - /** - * 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 Deleted: 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-23 10:52:07 UTC (rev 1516) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo2Impl.java 2009-07-23 11:51:26 UTC (rev 1517) @@ -1,20 +0,0 @@ -package org.nuiton.guix.client; - -import com.google.gwt.user.client.ui.ToggleButton; - -/** - * test javadoc Application - */ -public class GuixDemo2Impl extends GuixDemo2Abstract { - /*---------------------------------------------------------------------------------*/ - /*-- Constructors -----------------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - /** - * Constructor - */ - public GuixDemo2Impl() { - super(); - } - - } \ No newline at end of file Deleted: 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-23 10:52:07 UTC (rev 1516) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo3.java 2009-07-23 11:51:26 UTC (rev 1517) @@ -1,39 +0,0 @@ -package org.nuiton.guix.client; - -/** - * 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 Deleted: 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-23 10:52:07 UTC (rev 1516) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo3Abstract.java 2009-07-23 11:51:26 UTC (rev 1517) @@ -1,118 +0,0 @@ -package org.nuiton.guix.client; - -/** - * test javadoc Application - */ -public abstract class GuixDemo3Abstract extends com.google.gwt.user.client.ui.Button implements GuixDemo3 { - /** - * 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 Deleted: 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-23 10:52:07 UTC (rev 1516) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemo3Impl.java 2009-07-23 11:51:26 UTC (rev 1517) @@ -1,18 +0,0 @@ -package org.nuiton.guix.client; - -/** - * test javadoc Application - */ -public class GuixDemo3Impl extends GuixDemo3Abstract { - /*---------------------------------------------------------------------------------*/ - /*-- Constructors -----------------------------------------------------------------*/ - /*---------------------------------------------------------------------------------*/ - - /** - * Constructor - */ - public GuixDemo3Impl() { - super(); - } - - } \ No newline at end of file Deleted: 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-23 10:52:07 UTC (rev 1516) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemoAbstract.java 2009-07-23 11:51:26 UTC (rev 1517) @@ -1,502 +0,0 @@ -package org.nuiton.guix.client; - -import com.google.gwt.user.client.ui.MenuBar; -import com.google.gwt.user.client.ui.TabPanel; -import com.google.gwt.user.client.ui.FlexTable; -import com.google.gwt.user.client.ui.TextBox; -import com.google.gwt.user.client.ui.Label; -import org.nuiton.guix.client.GuixDemo3Abstract; -import org.nuiton.guix.client.GuixDemo2Abstract; -import com.google.gwt.user.client.ui.Button; -import com.google.gwt.user.client.Command; - -/** - * test javadoc Application - */ -public abstract class GuixDemoAbstract extends com.google.gwt.user.client.ui.VerticalPanel implements GuixDemo { - 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 Deleted: 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-23 10:52:07 UTC (rev 1516) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/client/GuixDemoImpl.java 2009-07-23 11:51:26 UTC (rev 1517) @@ -1,34 +0,0 @@ -package org.nuiton.guix.client; - -import com.google.gwt.user.client.ui.MenuBar; -import com.google.gwt.user.client.ui.TabPanel; -import com.google.gwt.user.client.ui.FlexTable; -import com.google.gwt.user.client.ui.TextBox; -import com.google.gwt.user.client.ui.Label; -import org.nuiton.guix.client.GuixDemo3Abstract; -import org.nuiton.guix.client.GuixDemo2Abstract; - -/** - * 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 Deleted: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/public/Application.css =================================================================== --- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/public/Application.css 2009-07-23 10:52:07 UTC (rev 1516) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/public/Application.css 2009-07-23 11:51:26 UTC (rev 1517) @@ -1,13 +0,0 @@ -/** Add css rules here for your application. */ -button { - display: block; - font-size: 16pt -} - -.widePanel { - width: 100% -} - -img { - margin-top: 20px; -} \ No newline at end of file Deleted: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/public/Application.html =================================================================== --- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/public/Application.html 2009-07-23 10:52:07 UTC (rev 1516) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/public/Application.html 2009-07-23 11:51:26 UTC (rev 1517) @@ -1,36 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<!-- The HTML 4.01 Transitional DOCTYPE declaration--> -<!-- above set at the top of the file will set --> -<!-- the browser's rendering engine into --> -<!-- "Quirks Mode". Replacing this declaration --> -<!-- with a "Standards Mode" doctype is supported, --> -<!-- but may lead to some differences in layout. --> - -<html> - <head> - <meta http-equiv="content-type" content="text/html; charset=UTF-8"> - <!-- --> - <!-- Any title is fine --> - <!-- --> - <title>Application</title> - - <!-- --> - <!-- This script loads your compiled module. --> - <!-- If you add any GWT meta tags, they must --> - <!-- be added before this line. --> - <!-- --> - <script type="text/javascript" language="javascript" src="org.nuiton.guix.Application.nocache.js"></script> - </head> - - <!-- --> - <!-- The body can have arbitrary html, or --> - <!-- you can leave the body empty if you want --> - <!-- to create a completely dynamic UI. --> - <!-- --> - <body> - - <!-- OPTIONAL: include this if you want history support --> - <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe> - - </body> -</html> Deleted: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/public/GuixDemo.css =================================================================== --- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/public/GuixDemo.css 2009-07-23 10:52:07 UTC (rev 1516) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/public/GuixDemo.css 2009-07-23 11:51:26 UTC (rev 1517) @@ -1,23 +0,0 @@ -#button -{ - foreground: red; -} - -.Cell { - border: 1px solid black; - font-weight: bold; -} - -.Row { - border: 2px outset red; -} - -.Table { -} - - -.bold -{ - font : bold; -} - Deleted: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/public/Index.html =================================================================== --- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/public/Index.html 2009-07-23 10:52:07 UTC (rev 1516) +++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/public/Index.html 2009-07-23 11:51:26 UTC (rev 1517) @@ -1,7 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?><!DOCTYPEHTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><!--The HTML 4.01 Transitional DOCTYPE declaration above set at the top of the file will set the browser's rendering engine into "Quirks Mode". Replacing this declaration with a "Standards Mode" doctype is supported, but may lead to some differences in layout.--><html> - <head> - <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> - <title>Guix Demo</title><!--This script loads your compiled module. If you add any GWT meta tags, they must be added before this line.--><script type="text/javascript" language="javascript" src="org.nuiton.guix.Index.nocache.js" /> - </head><!--The body can have arbitrary html, or you can leave the body empty if you want to create a completely dynamic UI.--><body><!--OPTIONAL: include this if you want history support--><iframe src="javascript:''" id="__gwt_historyFrame" tabIndex="-1" style="position:absolute;width:0;height:0;border:0" /> - </body> -</html> \ No newline at end of file
participants (1)
-
kmorin@users.labs.libre-entreprise.org