Jaxx-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2004 -----
- December
- November
- October
- September
- August
July 2009
- 3 participants
- 68 discussions
[Buix-commits] r1517 - in trunk/guix-test-gwt/src/main/java/org/nuiton/guix: client public
by kmorin@users.labs.libre-entreprise.org 23 Jul '09
by kmorin@users.labs.libre-entreprise.org 23 Jul '09
23 Jul '09
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
1
0
[Buix-commits] r1516 - in trunk/maven-guix-plugin: . src/main/java/org/nuiton/guix
by kmorin@users.labs.libre-entreprise.org 23 Jul '09
by kmorin@users.labs.libre-entreprise.org 23 Jul '09
23 Jul '09
Author: kmorin
Date: 2009-07-23 12:52:07 +0200 (Thu, 23 Jul 2009)
New Revision: 1516
Modified:
trunk/maven-guix-plugin/pom.xml
trunk/maven-guix-plugin/src/main/java/org/nuiton/guix/GuixMojo.java
Log:
Add the target directory to the classpath
Modified: trunk/maven-guix-plugin/pom.xml
===================================================================
--- trunk/maven-guix-plugin/pom.xml 2009-07-23 10:51:30 UTC (rev 1515)
+++ trunk/maven-guix-plugin/pom.xml 2009-07-23 10:52:07 UTC (rev 1516)
@@ -42,13 +42,11 @@
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
- <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-project</artifactId>
- <scope>provided</scope>
</dependency>
<!-- other dependencies -->
Modified: trunk/maven-guix-plugin/src/main/java/org/nuiton/guix/GuixMojo.java
===================================================================
--- trunk/maven-guix-plugin/src/main/java/org/nuiton/guix/GuixMojo.java 2009-07-23 10:51:30 UTC (rev 1515)
+++ trunk/maven-guix-plugin/src/main/java/org/nuiton/guix/GuixMojo.java 2009-07-23 10:52:07 UTC (rev 1516)
@@ -23,6 +23,7 @@
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.project.MavenProject;
import org.nuiton.guix.generator.GwtGenerator;
import org.nuiton.guix.generator.SwingGenerator;
@@ -30,32 +31,39 @@
* Launches the program
*
* @author morin
- * @goal testMojo
+ * @goal generate
+ * @phase process-sources
+ * @requiresDependencyResolution compile
+ * @requiresProject
*/
-public class GuixMojo extends AbstractMojo
-{
-
+public class GuixMojo extends AbstractMojo {
+
/**
- * Directory of the files to compile.
- * @parameter expression="${guix.guixFilesDir}" default-value="${maven.src.dir}/main/java"
- * @since 0.0.1
- */
+ * Project dependencies.
+ *
+ * @parameter default-value="${project}"
+ * @required
+ * @readonly
+ */
+ protected MavenProject project;
+ /**
+ * Directory of the files to compile.
+ * @parameter expression="${guix.guixFilesDir}" default-value="${maven.src.dir}/main/java"
+ * @since 0.0.1
+ */
private String guixFilesDir;
-
/**
* Directory of the generated files.
- * @parameter expression="${guix.targetDirectory}" default-value="generatedFiles"
+ * @parameter expression="${guix.targetDirectory}" default-value="${basedir}/target/generatedFiles"
* @since 0.0.1
*/
private String targetDirectory;
-
/**
* Directory of the generated files.
* @parameter expression="${guix.rootPackage}" default-value=""
* @since 0.0.1
*/
private String rootPackage;
-
/**
* Main class of the application to generate.
* @parameter expression="${guix.mainClass}"
@@ -63,14 +71,12 @@
* @since 0.0.1
*/
private String mainClass;
-
/**
* Generation language
* @parameter expression="${guix.generationLanguage}" default-value="Swing"
* @since 0.0.1
*/
private String generationLanguage;
-
/**
* Generation language
* @parameter expression="${guix.launcherName}" default-value="Main"
@@ -79,32 +85,36 @@
private String launcherName;
@Override
- public void execute() throws MojoExecutionException, MojoFailureException {
+ public void execute() throws MojoExecutionException, MojoFailureException {
File guixFilesDir = new File(this.guixFilesDir);
File targetDirectory = new File(this.targetDirectory);
Class generatorClass = null;
- if(generationLanguage.equalsIgnoreCase("Swing")) {
+ if (generationLanguage.equalsIgnoreCase("Swing")) {
generatorClass = SwingGenerator.class;
SwingGuixInitializer.initialize();
}
- else if(generationLanguage.equalsIgnoreCase("GWT")) {
+ else if (generationLanguage.equalsIgnoreCase("GWT")) {
generatorClass = GwtGenerator.class;
GwtGuixInitializer.initialize();
}
- if(!targetDirectory.exists())
+ if (!targetDirectory.exists()) {
targetDirectory.mkdirs();
-
- if(guixFilesDir.exists() && guixFilesDir.isDirectory()) {
+ }
+ fixCompileSourceRoots(targetDirectory);
+
+ if (guixFilesDir.exists() && guixFilesDir.isDirectory()) {
ArrayList<File> guixFiles = goDeeperInto(guixFilesDir);
GuixLauncher gcl = new GuixLauncher(guixFiles.toArray(
- new File[guixFiles.size()]),targetDirectory,rootPackage,
- guixFilesDir,mainClass,generatorClass,launcherName);
+ new File[guixFiles.size()]), targetDirectory, rootPackage,
+ guixFilesDir, mainClass, generatorClass, launcherName);
boolean result = gcl.compile();
-// if(result)
-// getLog().info("Compilation succeeded !");
-// else
-// getLog().error("Compilation failed...");
+ if (result) {
+ getLog().info("Compilation succeeded !");
+ }
+ else {
+ getLog().error("Compilation failed...");
+ }
getLog().info("Compilation over");
}
else {
@@ -115,11 +125,11 @@
private ArrayList<File> goDeeperInto(File dir) {
getLog().debug("goind deeper into " + dir.getPath());
ArrayList<File> result = new ArrayList<File>();
- for(File f : dir.listFiles()) {
- if(f.isDirectory() && !f.isHidden()) {
+ for (File f : dir.listFiles()) {
+ if (f.isDirectory() && !f.isHidden()) {
result.addAll(goDeeperInto(f));
}
- else if(f.getName().endsWith(".guix")) {
+ else if (f.getName().endsWith(".guix")) {
getLog().debug("found " + f.getName());
result.add(f);
}
@@ -127,4 +137,12 @@
return result;
}
+ protected void fixCompileSourceRoots(File targetDirectory) {
+ //fixme should remove this silly test when we will make real maven plugin tests :)
+ if (project != null) {
+ if (!project.getCompileSourceRoots().contains(targetDirectory.getPath())) {
+ project.addCompileSourceRoot(targetDirectory.getPath());
+ }
+ }
+ }
}
1
0
[Buix-commits] r1515 - in trunk/guix-test-swing: . src/main/java/org/nuiton/guix
by kmorin@users.labs.libre-entreprise.org 23 Jul '09
by kmorin@users.labs.libre-entreprise.org 23 Jul '09
23 Jul '09
Author: kmorin
Date: 2009-07-23 12:51:30 +0200 (Thu, 23 Jul 2009)
New Revision: 1515
Removed:
trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemoAbstract.java
Modified:
trunk/guix-test-swing/pom.xml
Log:
Update the example
Modified: trunk/guix-test-swing/pom.xml
===================================================================
--- trunk/guix-test-swing/pom.xml 2009-07-23 10:51:11 UTC (rev 1514)
+++ trunk/guix-test-swing/pom.xml 2009-07-23 10:51:30 UTC (rev 1515)
@@ -30,10 +30,6 @@
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
</dependency>
- <dependency>
- <groupId>net.java.dev.beansbinding</groupId>
- <artifactId>beansbinding</artifactId>
- </dependency>
<dependency>
<groupId>junit</groupId>
@@ -72,9 +68,23 @@
<!-- *** Build Environment ************************************** -->
<!-- ************************************************************* -->
-
-
<build>
+ <resources>
+ <resource>
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**/*.guix</include>
+ <include>**/*.jaxx</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ </resources>
+
<pluginManagement>
<plugins>
@@ -100,8 +110,8 @@
<artifactId>maven-guix-plugin</artifactId>
<version>${project.version}</version>
<configuration>
- <guixFilesDir>guix-test-swing/src/main/java/org/nuiton/guix/demo/</guixFilesDir>
- <targetDirectory>guix-test-swing/target/generatedFiles/</targetDirectory>
+ <guixFilesDir>${project.basedir}/src/main/java/org/nuiton/guix/demo/</guixFilesDir>
+ <targetDirectory>${project.basedir}/target/generatedFiles/</targetDirectory>
<rootPackage>org.nuiton.guix</rootPackage>
<mainClass>org.nuiton.guix.GuixDemo</mainClass>
<launcherName>Main</launcherName>
@@ -109,9 +119,8 @@
</configuration>
<executions>
<execution>
- <phase>compile</phase>
<goals>
- <goal>testMojo</goal>
+ <goal>generate</goal>
</goals>
</execution>
</executions>
Deleted: trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemoAbstract.java
===================================================================
--- trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemoAbstract.java 2009-07-23 10:51:11 UTC (rev 1514)
+++ trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemoAbstract.java 2009-07-23 10:51:30 UTC (rev 1515)
@@ -1,806 +0,0 @@
-package org.nuiton.guix;
-
-import java.util.ArrayList;
-import javax.swing.JMenuBar;
-import javax.swing.JMenu;
-import javax.swing.JMenuItem;
-import javax.swing.JToolBar;
-import javax.swing.JButton;
-import javax.swing.JTabbedPane;
-import javax.swing.JPanel;
-import javax.swing.JTextField;
-import javax.swing.JLabel;
-import org.nuiton.guix.GuixDemo3Abstract;
-import org.nuiton.guix.GuixDemo2Abstract;
-import java.awt.Button;
-import java.awt.event.ActionListener;
-import java.awt.event.ActionEvent;
-import java.awt.BorderLayout;
-
-/**
- * test javadoc Application
- */
-public abstract class GuixDemoAbstract extends javax.swing.JFrame implements GuixDemo {
- private javax.swing.JButton $Button6;
- private javax.swing.JButton $Button7;
- private javax.swing.JToolBar $JToolBar5;
- private javax.swing.JMenu $Menu2;
- private javax.swing.JMenu $Menu4;
- private javax.swing.JMenuBar $MenuBar1;
- private javax.swing.JMenuItem $MenuItem3;
- /**
- * List of the active bindings
- */
- private java.util.List<String> activeBindings = new java.util.ArrayList<String>();
- private javax.swing.JButton bouton1;
- private org.nuiton.guix.GuixDemo3Abstract bt3;
- private org.nuiton.guix.GuixDemo3Abstract bt31;
- private org.nuiton.guix.GuixDemo3Abstract bt32;
- private org.nuiton.guix.GuixDemo3Abstract bt34;
- private java.util.ArrayList controller;
- private org.nuiton.guix.GuixDemo2Abstract gd2;
- private org.nuiton.guix.GuixDemo2Abstract gd22;
- /**
- * test javadoc Application
- */
- private org.nuiton.guix.GuixDemoAbstract guixdemo = this;
- private javax.swing.JMenuItem item1;
- private javax.swing.JLabel label;
- private javax.swing.JLabel label2;
- private javax.swing.JLabel label3;
- private javax.swing.JTabbedPane tabPanel;
- private javax.swing.JPanel table;
- /**
- * javadoc textfield
- */
- private javax.swing.JTextField textfield;
-
- /* begin raw body code */
-
- private Button b = new Button("test");
- 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();
- }
-
- /*---------------------------------------------------------------------------------*/
- /*-- JAXXObject implementation ----------------------------------------------------*/
- /*---------------------------------------------------------------------------------*/
-
- public void applyDataBinding(String _binding) {
- if("textfield.enabled".equals(_binding)) {
- if(getGd2() != null) {
- getGd2().addPropertyChangeListener(new java.beans.PropertyChangeListener() {
- public void propertyChange(java.beans.PropertyChangeEvent arg0) {
- onChangeFromgetGd2getButtonisSelected();
- }
- });
- }
- if(getGd2() != null && getGd2().getButton() != null) {
- getGd2().getButton().addPropertyChangeListener(new java.beans.PropertyChangeListener() {
- public void propertyChange(java.beans.PropertyChangeEvent arg0) {
- onChangeFromgetGd2getButtonisSelected();
- }
- });
- }
- if(getGd2() != null && getGd2().getButton() != null) {
- getGd2().getButton().getModel().addChangeListener(new javax.swing.event.ChangeListener() {
- public void stateChanged(javax.swing.event.ChangeEvent arg0) {
- onChangeFromgetGd2getButtonisSelected();
- }
- });
- }
- if(getGd22() != null) {
- getGd22().addPropertyChangeListener(new java.beans.PropertyChangeListener() {
- public void propertyChange(java.beans.PropertyChangeEvent arg0) {
- onChangeFromgetGd22getButtonisSelected();
- }
- });
- }
- if(getGd22() != null && getGd22().getButton() != null) {
- getGd22().getButton().addPropertyChangeListener(new java.beans.PropertyChangeListener() {
- public void propertyChange(java.beans.PropertyChangeEvent arg0) {
- onChangeFromgetGd22getButtonisSelected();
- }
- });
- }
- if(getGd22() != null && getGd22().getButton() != null) {
- getGd22().getButton().getModel().addChangeListener(new javax.swing.event.ChangeListener() {
- public void stateChanged(javax.swing.event.ChangeEvent arg0) {
- onChangeFromgetGd22getButtonisSelected();
- }
- });
- }
- }
- else if("label.text".equals(_binding)) {
- if(getTextfield() != null) {
- getTextfield().addPropertyChangeListener(new java.beans.PropertyChangeListener() {
- public void propertyChange(java.beans.PropertyChangeEvent arg0) {
- onChangeFromtextfieldgetText();
- }
- });
- }
- if(getTextfield() != null) {
- getTextfield().getDocument().addDocumentListener(new javax.swing.event.DocumentListener() {
- public void insertUpdate(javax.swing.event.DocumentEvent arg0) {
- onChangeFromtextfieldgetText();
- }
- public void removeUpdate(javax.swing.event.DocumentEvent arg0) {
- onChangeFromtextfieldgetText();
- }
- public void changedUpdate(javax.swing.event.DocumentEvent arg0) {
- onChangeFromtextfieldgetText();
- }
- });
- }
- }
-
- processDataBinding(_binding);
- }
-
- public void firePropertyChange(String name, Object oldValue, Object newValue) {
- super.firePropertyChange(name, oldValue, newValue);
- }
-
- public void processDataBinding(String _binding) {
- if (activeBindings.contains(_binding)) {
- return;
- }
- activeBindings.add(_binding);
- try{
- if("textfield.enabled".equals(_binding)) {
- textfield.setEnabled(getGd2().getButton().isSelected() && getGd22().getButton().isSelected());
- }
- else if("label.text".equals(_binding)) {
- label.setText("label : " + textfield.getText());
- }
-
- } finally {
- activeBindings.remove(_binding);
- }
- }
-
- public void removeDataBinding(String _binding) {
- if("textfield.enabled".equals(_binding)) {
- if(getGd2() != null) {
- getGd2().removePropertyChangeListener(new java.beans.PropertyChangeListener() {
- public void propertyChange(java.beans.PropertyChangeEvent arg0) {
- onChangeFromgetGd2getButtonisSelected();
- }
- });
- }
- if(getGd2() != null && getGd2().getButton() != null) {
- getGd2().getButton().removePropertyChangeListener(new java.beans.PropertyChangeListener() {
- public void propertyChange(java.beans.PropertyChangeEvent arg0) {
- onChangeFromgetGd2getButtonisSelected();
- }
- });
- }
- if(getGd2() != null && getGd2().getButton() != null) {
- getGd2().getButton().getModel().removeChangeListener(new javax.swing.event.ChangeListener() {
- public void stateChanged(javax.swing.event.ChangeEvent arg0) {
- onChangeFromgetGd2getButtonisSelected();
- }
- });
- }
- if(getGd22() != null) {
- getGd22().removePropertyChangeListener(new java.beans.PropertyChangeListener() {
- public void propertyChange(java.beans.PropertyChangeEvent arg0) {
- onChangeFromgetGd22getButtonisSelected();
- }
- });
- }
- if(getGd22() != null && getGd22().getButton() != null) {
- getGd22().getButton().removePropertyChangeListener(new java.beans.PropertyChangeListener() {
- public void propertyChange(java.beans.PropertyChangeEvent arg0) {
- onChangeFromgetGd22getButtonisSelected();
- }
- });
- }
- if(getGd22() != null && getGd22().getButton() != null) {
- getGd22().getButton().getModel().removeChangeListener(new javax.swing.event.ChangeListener() {
- public void stateChanged(javax.swing.event.ChangeEvent arg0) {
- onChangeFromgetGd22getButtonisSelected();
- }
- });
- }
- }
- else if("label.text".equals(_binding)) {
- if(getTextfield() != null) {
- getTextfield().removePropertyChangeListener(new java.beans.PropertyChangeListener() {
- public void propertyChange(java.beans.PropertyChangeEvent arg0) {
- onChangeFromtextfieldgetText();
- }
- });
- }
- if(getTextfield() != null) {
- getTextfield().getDocument().removeDocumentListener(new javax.swing.event.DocumentListener() {
- public void insertUpdate(javax.swing.event.DocumentEvent arg0) {
- onChangeFromtextfieldgetText();
- }
- public void removeUpdate(javax.swing.event.DocumentEvent arg0) {
- onChangeFromtextfieldgetText();
- }
- public void changedUpdate(javax.swing.event.DocumentEvent arg0) {
- onChangeFromtextfieldgetText();
- }
- });
- }
- }
- }
-
- /*---------------------------------------------------------------------------------*/
- /*-- public acessor methods -------------------------------------------------------*/
- /*---------------------------------------------------------------------------------*/
-
- public javax.swing.JButton get$Button6() {
- return $Button6;
- }
-
- public javax.swing.JButton get$Button7() {
- return $Button7;
- }
-
- public javax.swing.JToolBar get$JToolBar5() {
- return $JToolBar5;
- }
-
- public javax.swing.JMenu get$Menu2() {
- return $Menu2;
- }
-
- public javax.swing.JMenu get$Menu4() {
- return $Menu4;
- }
-
- public javax.swing.JMenuBar get$MenuBar1() {
- return $MenuBar1;
- }
-
- public javax.swing.JMenuItem get$MenuItem3() {
- return $MenuItem3;
- }
-
- public java.util.List<String> getActiveBindings() {
- return activeBindings;
- }
-
- public javax.swing.JButton getBouton1() {
- return bouton1;
- }
-
- public org.nuiton.guix.GuixDemo3Abstract getBt3() {
- return bt3;
- }
-
- public org.nuiton.guix.GuixDemo3Abstract getBt31() {
- return bt31;
- }
-
- public org.nuiton.guix.GuixDemo3Abstract getBt32() {
- return bt32;
- }
-
- public org.nuiton.guix.GuixDemo3Abstract getBt34() {
- return bt34;
- }
-
- public java.util.ArrayList getController() {
- return controller;
- }
-
- public org.nuiton.guix.GuixDemo2Abstract getGd2() {
- return gd2;
- }
-
- public org.nuiton.guix.GuixDemo2Abstract getGd22() {
- return gd22;
- }
-
- public org.nuiton.guix.GuixDemoAbstract getGuixdemo() {
- return guixdemo;
- }
-
- public javax.swing.JMenuItem getItem1() {
- return item1;
- }
-
- public javax.swing.JLabel getLabel() {
- return label;
- }
-
- public javax.swing.JLabel getLabel2() {
- return label2;
- }
-
- public javax.swing.JLabel getLabel3() {
- return label3;
- }
-
- public javax.swing.JTabbedPane getTabPanel() {
- return tabPanel;
- }
-
- public javax.swing.JPanel getTable() {
- return table;
- }
-
- public javax.swing.JTextField getTextfield() {
- return textfield;
- }
-
- /*---------------------------------------------------------------------------------*/
- /*-- public mutator methods -------------------------------------------------------*/
- /*---------------------------------------------------------------------------------*/
-
- public void set$Button6(javax.swing.JButton newValue) {
- this.$Button6 = newValue;
- }
-
- public void set$Button7(javax.swing.JButton newValue) {
- this.$Button7 = newValue;
- }
-
- public void set$JToolBar5(javax.swing.JToolBar newValue) {
- this.$JToolBar5 = newValue;
- }
-
- public void set$Menu2(javax.swing.JMenu newValue) {
- this.$Menu2 = newValue;
- }
-
- public void set$Menu4(javax.swing.JMenu newValue) {
- this.$Menu4 = newValue;
- }
-
- public void set$MenuBar1(javax.swing.JMenuBar newValue) {
- this.$MenuBar1 = newValue;
- }
-
- public void set$MenuItem3(javax.swing.JMenuItem newValue) {
- this.$MenuItem3 = newValue;
- }
-
- public void setBouton1(javax.swing.JButton newValue) {
- this.bouton1 = newValue;
- }
-
- public void setBt3(org.nuiton.guix.GuixDemo3Abstract newValue) {
- this.bt3 = newValue;
- }
-
- public void setBt31(org.nuiton.guix.GuixDemo3Abstract newValue) {
- this.bt31 = newValue;
- }
-
- public void setBt32(org.nuiton.guix.GuixDemo3Abstract newValue) {
- this.bt32 = newValue;
- }
-
- public void setBt34(org.nuiton.guix.GuixDemo3Abstract newValue) {
- this.bt34 = newValue;
- }
-
- public void setController(java.util.ArrayList newValue) {
- this.controller = newValue;
- }
-
- public void setGd2(org.nuiton.guix.GuixDemo2Abstract newValue) {
- this.gd2 = newValue;
- }
-
- public void setGd22(org.nuiton.guix.GuixDemo2Abstract newValue) {
- this.gd22 = newValue;
- }
-
- public void setGuixdemo(org.nuiton.guix.GuixDemoAbstract newValue) {
- this.guixdemo = newValue;
- }
-
- public void setItem1(javax.swing.JMenuItem newValue) {
- this.item1 = newValue;
- }
-
- public void setLabel(javax.swing.JLabel newValue) {
- this.label = newValue;
- }
-
- public void setLabel2(javax.swing.JLabel newValue) {
- this.label2 = newValue;
- }
-
- public void setLabel3(javax.swing.JLabel newValue) {
- this.label3 = newValue;
- }
-
- public void setTabPanel(javax.swing.JTabbedPane newValue) {
- this.tabPanel = newValue;
- }
-
- public void setTable(javax.swing.JPanel newValue) {
- this.table = newValue;
- }
-
- public void setTextfield(javax.swing.JTextField newValue) {
- this.textfield = newValue;
- }
-
- /*---------------------------------------------------------------------------------*/
- /*-- public mutator methods -------------------------------------------------------*/
- /*---------------------------------------------------------------------------------*/
-
- public void beforeBinding() {
- this.add(b, BorderLayout.SOUTH);
- }
-
- public void beforeCreation() {
- System.out.println("before Creation");
- }
-
- public void beforeInitialization() {
-
- }
-
- /**
- * Components creation
- */
- public void componentsCreation() {
- createController();
- create$Menu2();
- createItem1();
- create$MenuItem3();
- create$Menu4();
- create$MenuBar1();
- create$JToolBar5();
- createBouton1();
- create$Button6();
- create$Button7();
- createTabPanel();
- createTextfield();
- createLabel();
- createLabel2();
- createBt3();
- createBt31();
- createBt32();
- createBt34();
- createLabel3();
- createTable();
- createGd2();
- createGd22();
- }
-
- /**
- * components layout
- */
- public void componentsTree() {
- this.setTitle("Guix Swing Demo");
- this.setSize(800,600);
- this.setLayout(new BorderLayout());
- this.setJMenuBar($MenuBar1);
- $MenuBar1.add($Menu2);
- $Menu2.add(item1);
- $Menu2.add($MenuItem3);
- $MenuBar1.add($Menu4);
- this.add($JToolBar5,BorderLayout.NORTH);
- $JToolBar5.add(bouton1);
- $JToolBar5.add($Button6);
- $JToolBar5.add($Button7);
- this.add(tabPanel,BorderLayout.CENTER);
- tabPanel.add(table);
- table.add(textfield, new java.awt.GridBagConstraints (0,0,1,1,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(1,1,1,1),1,1));
- table.add(label, new java.awt.GridBagConstraints (1,0,1,1,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(1,1,1,1),1,1));
- table.add(label2, new java.awt.GridBagConstraints (2,0,1,3,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(1,1,1,1),1,1));
- table.add(bt3, new java.awt.GridBagConstraints (3,1,3,1,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(0,0,0,0),1,1));
- table.add(bt31, new java.awt.GridBagConstraints (0,2,2,1,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(0,0,0,0),1,1));
- table.add(bt32, new java.awt.GridBagConstraints (3,2,1,1,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(2,2,2,2),1,1));
- table.add(bt34, new java.awt.GridBagConstraints (0,3,3,1,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(1,1,1,1),1,1));
- table.add(label3, new java.awt.GridBagConstraints (0,4,2,1,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(1,1,1,1),1,1));
- tabPanel.add(gd2);
- tabPanel.add(gd22);
- }
-
- public void inTheEnd() {
-
- }
-
- /**
- * initilization of databinding
- */
- public void initDataBinding() {
- applyDataBinding("textfield.enabled");
- applyDataBinding("label.text");
- }
-
- /**
- * initialization
- */
- public void initialize() {
- beforeCreation();
- componentsCreation();
- b.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent arg0) {
- if(gd2.getButton().isSelected()) {
- java.util.Random r = new java.util.Random();
- table.setBackground(new java.awt.Color(r.nextInt(255), r.nextInt(255), r.nextInt(255)));
- }
- }
- });
- beforeInitialization();
- componentsTree();
- beforeBinding();
- initDataBinding();
- inTheEnd();
- }
-
- public void onChangeFromgetGd22getButtonisSelected() {
- processDataBinding("textfield.enabled");
- }
-
- public void onChangeFromgetGd2getButtonisSelected() {
- 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);
- }
-
- /*---------------------------------------------------------------------------------*/
- /*-- ui creation methods ----------------------------------------------------------*/
- /*---------------------------------------------------------------------------------*/
-
- /**
- * $Button6 creation
- */
- private void create$Button6() {
- $Button6 = new javax.swing.JButton();
- $Button6.setText("bouton2");
- $Button6.setForeground(new java.awt.Color(120,255,0));
- $Button6.setSize(80,35);
- $Button6.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent actionEvent){
- $Button6.setText("click !");
- ;System.out.println("Action [" + actionEvent.getActionCommand() + "] performed!");
- }
- });
- }
-
- /**
- * $Button7 creation
- */
- private void create$Button7() {
- $Button7 = new javax.swing.JButton();
- $Button7.setText("bouton3");
- $Button7.setForeground(new java.awt.Color(120,255,0));
- $Button7.setSize(80,35);
- $Button7.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent actionEvent){
- $Button7.setText("click !");
- ;System.out.println("Action [" + actionEvent.getActionCommand() + "] performed!");
- }
- });
- }
-
- /**
- * $JToolBar5 creation
- */
- private void create$JToolBar5() {
- $JToolBar5 = new javax.swing.JToolBar();
- $JToolBar5.setBorder(new javax.swing.border.EtchedBorder());
- }
-
- /**
- * $Menu2 creation
- */
- private void create$Menu2() {
- $Menu2 = new javax.swing.JMenu("menu 1");
- }
-
- /**
- * $Menu4 creation
- */
- private void create$Menu4() {
- $Menu4 = new javax.swing.JMenu("menu 2");
- }
-
- /**
- * $MenuBar1 creation
- */
- private void create$MenuBar1() {
- $MenuBar1 = new javax.swing.JMenuBar();
- $MenuBar1.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.RAISED));
- }
-
- /**
- * $MenuItem3 creation
- */
- private void create$MenuItem3() {
- $MenuItem3 = new javax.swing.JMenuItem();
- $MenuItem3.setText("item2");
- $MenuItem3.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent actionEvent){
- System.out.println("Action [" + actionEvent.getActionCommand() + "] performed!");
- }
- });
- }
-
- /**
- * bouton1 creation
- */
- private void createBouton1() {
- bouton1 = new javax.swing.JButton();
- bouton1.setText("bouton1");
- bouton1.setSize(100,35);
- bouton1.setForeground(new java.awt.Color(120,255,0));
- bouton1.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent actionEvent){
- bouton1.setText("click !");
- ;System.out.println("Action [" + actionEvent.getActionCommand() + "] performed!");
- }
- });
- }
-
- /**
- * bt3 creation
- */
- private void createBt3() {
- bt3 = new org.nuiton.guix.GuixDemo3Impl();
- bt3.setText("bt3");
- bt3.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent actionEvent){
- System.out.println("beau gosse");
- }
- });
- }
-
- /**
- * bt31 creation
- */
- private void createBt31() {
- bt31 = new org.nuiton.guix.GuixDemo3Impl();
- bt31.setText("bt31");
- }
-
- /**
- * bt32 creation
- */
- private void createBt32() {
- bt32 = new org.nuiton.guix.GuixDemo3Impl();
- bt32.setText("bt32");
- }
-
- /**
- * bt34 creation
- */
- private void createBt34() {
- bt34 = new org.nuiton.guix.GuixDemo3Impl();
- bt34.setText("bt34");
- }
-
- /**
- * controller creation
- */
- private void createController() {
- controller = new java.util.ArrayList();
- }
-
- /**
- * gd2 creation
- */
- private void createGd2() {
- gd2 = new org.nuiton.guix.GuixDemo2Impl();
- gd2.setName("GD2");
- }
-
- /**
- * gd22 creation
- */
- private void createGd22() {
- gd22 = new org.nuiton.guix.GuixDemo2Impl();
- gd22.setName("GD22");
- }
-
- /**
- * item1 creation
- */
- private void createItem1() {
- item1 = new javax.swing.JMenuItem();
- item1.setText("item1");
- }
-
- /**
- * label creation
- */
- private void createLabel() {
- label = new javax.swing.JLabel();
- label.setForeground(new java.awt.Color(0,120,255));
- label.addMouseListener(new java.awt.event.MouseAdapter() {
- public void mouseEntered(java.awt.event.MouseEvent mouseEvent){
- label.setForeground(new java.awt.Color(255,120,0));
- ;
- }
- public void mouseExited(java.awt.event.MouseEvent mouseEvent){
- label.setForeground(new java.awt.Color(0,120,255));
- ;
- }
- });
- }
-
- /**
- * label2 creation
- */
- private void createLabel2() {
- label2 = new javax.swing.JLabel();
- label2.setText("color");
- label2.setBackground(java.awt.Color.BLUE);
- }
-
- /**
- * label3 creation
- */
- private void createLabel3() {
- label3 = new javax.swing.JLabel();
- label3.setText("color");
- label3.setForeground(java.awt.Color.YELLOW);
- }
-
- /**
- * tabPanel creation
- */
- private void createTabPanel() {
- tabPanel = new javax.swing.JTabbedPane();
- tabPanel.setSize(800,400);
- }
-
- /**
- * table creation
- */
- private void createTable() {
- table = new javax.swing.JPanel(new java.awt.GridBagLayout());
- table.setName("Table");
- }
-
- /**
- * textfield creation
- */
- private void createTextfield() {
- textfield = new javax.swing.JTextField("test");
- textfield.setSize(100,35);
- textfield.addFocusListener(new java.awt.event.FocusAdapter() {
- public void focusGained(java.awt.event.FocusEvent focusEvent){
- System.out.println("dude !");
- }
- });
- }
-
- }
\ No newline at end of file
1
0
[Buix-commits] r1514 - in trunk/guix-test-gwt: . src/main/java/org/nuiton/guix src/main/java/org/nuiton/guix/demo
by kmorin@users.labs.libre-entreprise.org 23 Jul '09
by kmorin@users.labs.libre-entreprise.org 23 Jul '09
23 Jul '09
Author: kmorin
Date: 2009-07-23 12:51:11 +0200 (Thu, 23 Jul 2009)
New Revision: 1514
Added:
trunk/guix-test-gwt/hs_err_pid9288.log
Removed:
trunk/guix-test-gwt/src/main/java/org/nuiton/guix/Index.gwt.xml
Modified:
trunk/guix-test-gwt/nbactions.xml
trunk/guix-test-gwt/pom.xml
trunk/guix-test-gwt/src/main/java/org/nuiton/guix/demo/GuixDemo.css
trunk/guix-test-gwt/src/main/java/org/nuiton/guix/demo/GuixDemo2.guix
Log:
Update the example
Added: trunk/guix-test-gwt/hs_err_pid9288.log
===================================================================
--- trunk/guix-test-gwt/hs_err_pid9288.log (rev 0)
+++ trunk/guix-test-gwt/hs_err_pid9288.log 2009-07-23 10:51:11 UTC (rev 1514)
@@ -0,0 +1,710 @@
+#
+# A fatal error has been detected by the Java Runtime Environment:
+#
+# SIGSEGV (0xb) at pc=0x0002ac8e, pid=9288, tid=3076410256
+#
+# JRE version: 6.0_14-b08
+# Java VM: Java HotSpot(TM) Client VM (14.0-b16 mixed mode, sharing linux-x86 )
+# Problematic frame:
+# C 0x0002ac8e
+#
+# If you would like to submit a bug report, please visit:
+# http://java.sun.com/webapps/bugreport/crash.jsp
+# The crash happened outside the Java Virtual Machine in native code.
+# See problematic frame for where to report the bug.
+#
+
+--------------- T H R E A D ---------------
+
+Current thread (0x09d7a800): JavaThread "main" [_thread_in_native, id=9289, stack(0xb7594000,0xb75e5000)]
+
+siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0002ac8e
+
+Registers:
+EAX=0xb4c83f7e, EBX=0xb4ca02a0, ECX=0x09d7a910, EDX=0x8f97c488
+ESP=0xb75e3e9c, EBP=0xb75e3eb8, ESI=0x8f928334, EDI=0x09d7a800
+EIP=0x0002ac8e, CR2=0x0002ac8e, EFLAGS=0x00010296
+
+Top of Stack: (sp=0xb75e3e9c)
+0xb75e3e9c: b4c83fa2 09f3ded0 7fffffff 0a1b5f30
+0xb75e3eac: 00000007 8f9247e4 8f928338 b75e3efc
+0xb75e3ebc: b550af1d 09d7a910 b75e3f04 09f3ded0
+0xb75e3ecc: 7fffffff 0a1b5f30 00000007 b75e3ef8
+0xb75e3edc: b75e3edc 00000000 b75e3f18 8f97c488
+0xb75e3eec: 00000000 8f928338 00000000 b75e3f0c
+0xb75e3efc: b75e3f3c b5503ea9 8f97c3e8 b5509329
+0xb75e3f0c: 00000007 0a1b5f30 7fffffff 09f3ded0
+
+Instructions: (pc=0x0002ac8e)
+0x0002ac7e:
+[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xb]
+
+Stack: [0xb7594000,0xb75e5000], sp=0xb75e3e9c, free space=319k
+Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
+C 0x0002ac8e
+j org.eclipse.swt.internal.gtk.OS._g_main_context_check(IIII)I+0
+j org.eclipse.swt.internal.gtk.OS.g_main_context_check(IIII)I+11
+j org.eclipse.swt.widgets.Display.sleep()Z+326
+j com.google.gwt.dev.GWTShell.sleep()V+4
+j com.google.gwt.dev.GWTShell.pumpEventLoop()V+23
+j com.google.gwt.dev.GWTShell.run()V+23
+j com.google.gwt.dev.GWTShell.main([Ljava/lang/String;)V+20
+v ~StubRoutines::call_stub
+V [libjvm.so+0x213560]
+V [libjvm.so+0x326f58]
+V [libjvm.so+0x2133bf]
+V [libjvm.so+0x2435c3]
+V [libjvm.so+0x23388c]
+C [java+0x1b98] JavaMain+0x2c8
+C [libpthread.so.0+0x64ff]
+
+Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
+j org.eclipse.swt.internal.gtk.OS._g_main_context_check(IIII)I+0
+j org.eclipse.swt.internal.gtk.OS.g_main_context_check(IIII)I+11
+j org.eclipse.swt.widgets.Display.sleep()Z+326
+j com.google.gwt.dev.GWTShell.sleep()V+4
+j com.google.gwt.dev.GWTShell.pumpEventLoop()V+23
+j com.google.gwt.dev.GWTShell.run()V+23
+j com.google.gwt.dev.GWTShell.main([Ljava/lang/String;)V+20
+v ~StubRoutines::call_stub
+
+--------------- P R O C E S S ---------------
+
+Java Threads: ( => current thread )
+ 0x0a360000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=9534, stack(0xb3b93000,0xb3be4000)]
+ 0x0a198000 JavaThread "http-8888-Monitor" [_thread_blocked, id=9528, stack(0xb39fe000,0xb3a4f000)]
+ 0x0a196800 JavaThread "http-8888-Processor4" daemon [_thread_blocked, id=9527, stack(0xb3a4f000,0xb3aa0000)]
+ 0x0a195400 JavaThread "http-8888-Processor3" daemon [_thread_in_native, id=9526, stack(0xb3aa0000,0xb3af1000)]
+ 0x0a190400 JavaThread "http-8888-Processor2" daemon [_thread_blocked, id=9525, stack(0xb3af1000,0xb3b42000)]
+ 0x0a18d400 JavaThread "http-8888-Processor1" daemon [_thread_blocked, id=9524, stack(0xb3b42000,0xb3b93000)]
+ 0x0a184000 JavaThread "ContainerBackgroundProcessor[StandardEngine[gwt]]" daemon [_thread_blocked, id=9523, stack(0xb3c7b000,0xb3ccc000)]
+ 0x0a0f8400 JavaThread "Timer-0" daemon [_thread_blocked, id=9437, stack(0xb3c2a000,0xb3c7b000)]
+ 0x09db8400 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=9323, stack(0xb4dec000,0xb4e3d000)]
+ 0x09db5400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=9320, stack(0xb4e3d000,0xb4ebe000)]
+ 0x09db3800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=9316, stack(0xb4ebe000,0xb4f0f000)]
+ 0x09da5400 JavaThread "Finalizer" daemon [_thread_blocked, id=9306, stack(0xb511e000,0xb516f000)]
+ 0x09da0800 JavaThread "Reference Handler" daemon [_thread_blocked, id=9299, stack(0xb516f000,0xb51c0000)]
+=>0x09d7a800 JavaThread "main" [_thread_in_native, id=9289, stack(0xb7594000,0xb75e5000)]
+
+Other Threads:
+ 0x09d9ec00 VMThread [stack: 0xb51c0000,0xb5241000] [id=9292]
+ 0x09dba000 WatcherThread [stack: 0xb4d6b000,0xb4dec000] [id=9324]
+
+VM state:not at safepoint (normal execution)
+
+VM Mutex/Monitor currently owned by a thread: None
+
+Heap
+ def new generation total 6016K, used 1210K [0x6f890000, 0x6ff10000, 0x71ff0000)
+ eden space 5376K, 15% used [0x6f890000, 0x6f963d10, 0x6fdd0000)
+ from space 640K, 56% used [0x6fe70000, 0x6fecad30, 0x6ff10000)
+ to space 640K, 0% used [0x6fdd0000, 0x6fdd0000, 0x6fe70000)
+ tenured generation total 79656K, used 62270K [0x71ff0000, 0x76dba000, 0x8f890000)
+ the space 79656K, 78% used [0x71ff0000, 0x75cbfb60, 0x75cbfc00, 0x76dba000)
+ compacting perm gen total 13568K, used 13550K [0x8f890000, 0x905d0000, 0x93890000)
+ the space 13568K, 99% used [0x8f890000, 0x905cbbe8, 0x905cbc00, 0x905d0000)
+ ro space 8192K, 74% used [0x93890000, 0x93e89cc8, 0x93e89e00, 0x94090000)
+ rw space 12288K, 59% used [0x94090000, 0x947a7540, 0x947a7600, 0x94c90000)
+
+Dynamic libraries:
+08048000-08052000 r-xp 00000000 08:01 83627 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/bin/java
+08052000-08053000 rwxp 00009000 08:01 83627 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/bin/java
+09d74000-0a9d8000 rwxp 09d74000 00:00 0 [heap]
+6f890000-6ff10000 rwxp 6f890000 00:00 0
+6ff10000-71ff0000 rwxp 6ff10000 00:00 0
+71ff0000-76dba000 rwxp 71ff0000 00:00 0
+76dba000-8f890000 rwxp 76dba000 00:00 0
+8f890000-905d0000 rwxp 8f890000 00:00 0
+905d0000-93890000 rwxp 905d0000 00:00 0
+93890000-93e8a000 r-xs 00001000 08:01 24875 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/client/classes.jsa
+93e8a000-94090000 rwxp 93e8a000 00:00 0
+94090000-947a8000 rwxp 005fb000 08:01 24875 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/client/classes.jsa
+947a8000-94c90000 rwxp 947a8000 00:00 0
+94c90000-94d6e000 rwxp 00d13000 08:01 24875 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/client/classes.jsa
+94d6e000-95090000 rwxp 94d6e000 00:00 0
+95090000-95098000 r-xs 00df1000 08:01 24875 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/client/classes.jsa
+95098000-95490000 rwxp 95098000 00:00 0
+b037d000-b0384000 r-xs 00111000 08:01 84311 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/resources.jar
+b0384000-b03a5000 r-xp 00000000 08:01 120423 /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Bold.ttf
+b03a5000-b043d000 r-xp 00000000 08:01 42112 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
+b043d000-b045e000 r-xp 00000000 08:01 120771 /usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf
+b045e000-b0518000 r-xp 00000000 08:06 133226 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libeditor.so
+b0518000-b051c000 rwxp 000b9000 08:06 133226 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libeditor.so
+b051c000-b059b000 r-xp 00000000 08:01 83682 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/libfontmanager.so
+b059b000-b05a6000 rwxp 0007e000 08:01 83682 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/libfontmanager.so
+b05a6000-b05aa000 rwxp b05a6000 00:00 0
+b05aa000-b05ed000 r-xp 00000000 08:01 83677 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/xawt/libmawt.so
+b05ed000-b05ef000 rwxp 00043000 08:01 83677 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/xawt/libmawt.so
+b05ef000-b05f0000 rwxp b05ef000 00:00 0
+b05f0000-b0674000 r-xp 00000000 08:01 83674 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/libawt.so
+b0674000-b067b000 rwxp 00084000 08:01 83674 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/libawt.so
+b067b000-b069f000 rwxp b067b000 00:00 0
+b069f000-b06f0000 r-xp 00000000 08:01 42116 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf
+b06f0000-b06f1000 ---p b06f0000 00:00 0
+b06f1000-b0ef1000 rwxp b06f1000 00:00 0
+b0ef1000-b0f25000 r-xp 00000000 08:06 133318 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libmork.so
+b0f25000-b0f27000 rwxp 00034000 08:06 133318 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libmork.so
+b0f27000-b0f2c000 r-xp 00000000 08:06 133553 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libxpcom_compat_c.so
+b0f2c000-b0f2d000 rwxp 00005000 08:06 133553 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libxpcom_compat_c.so
+b0f2d000-b0f42000 r-xp 00000000 08:06 133513 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libprofile.so
+b0f42000-b0f43000 rwxp 00015000 08:06 133513 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libprofile.so
+b0f43000-b0f5d000 r-xp 00000000 08:06 132123 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libxpcom_compat.so
+b0f5d000-b0f5e000 rwxp 0001a000 08:06 132123 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libxpcom_compat.so
+b0f5e000-b0f63000 r-xp 00000000 08:06 133521 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libtxmgr.so
+b0f63000-b0f64000 rwxp 00004000 08:06 133521 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libtxmgr.so
+b0f64000-b0f67000 r-xs 00035000 08:01 83642 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/ext/sunpkcs11.jar
+b0f67000-b0f6a000 r-xs 000cb000 08:01 115067 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/ext/localedata.jar
+b0f6a000-b0f6c000 r-xs 00001000 08:01 115066 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/ext/dnsns.jar
+b0f6c000-b0f6d000 ---p b0f6c000 00:00 0
+b0f6d000-b176d000 rwxp b0f6d000 00:00 0
+b176d000-b1777000 r-xp 00000000 08:06 133224 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libcookie.so
+b1777000-b1778000 rwxp 00009000 08:06 133224 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libcookie.so
+b1778000-b1779000 ---p b1778000 00:00 0
+b1779000-b1f79000 rwxp b1779000 00:00 0
+b1f79000-b1f84000 r-xp 00000000 08:06 133297 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libjar50.so
+b1f84000-b1f85000 rwxp 0000a000 08:06 133297 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libjar50.so
+b1f85000-b1feb000 r-xp 00000000 08:01 2601 /lib/libgcrypt.so.11.4.4
+b1feb000-b1fec000 r-xp 00065000 08:01 2601 /lib/libgcrypt.so.11.4.4
+b1fec000-b1fee000 rwxp 00066000 08:01 2601 /lib/libgcrypt.so.11.4.4
+b1fee000-b1ffe000 r-xp 00000000 08:01 10253 /usr/lib/libtasn1.so.3.0.16
+b1ffe000-b1fff000 r-xp 0000f000 08:01 10253 /usr/lib/libtasn1.so.3.0.16
+b1fff000-b2000000 rwxp 00010000 08:01 10253 /usr/lib/libtasn1.so.3.0.16
+b2000000-b20c3000 r-xp 00000000 08:01 9435 /usr/lib/libasound.so.2.0.0
+b20c3000-b20c5000 r-xp 000c2000 08:01 9435 /usr/lib/libasound.so.2.0.0
+b20c5000-b20c8000 rwxp 000c4000 08:01 9435 /usr/lib/libasound.so.2.0.0
+b20c8000-b20cc000 r-xp 00000000 08:01 9349 /usr/lib/libORBitCosNaming-2.so.0.1.0
+b20cc000-b20cd000 r-xp 00003000 08:01 9349 /usr/lib/libORBitCosNaming-2.so.0.1.0
+b20cd000-b20ce000 rwxp 00004000 08:01 9349 /usr/lib/libORBitCosNaming-2.so.0.1.0
+b20ce000-b20dd000 r-xp 00000000 08:01 9447 /usr/lib/libavahi-client.so.3.2.4
+b20dd000-b20de000 r-xp 0000e000 08:01 9447 /usr/lib/libavahi-client.so.3.2.4
+b20de000-b20df000 rwxp 0000f000 08:01 9447 /usr/lib/libavahi-client.so.3.2.4
+b20df000-b20e9000 r-xp 00000000 08:01 9449 /usr/lib/libavahi-common.so.3.5.0
+b20e9000-b20ea000 r-xp 00009000 08:01 9449 /usr/lib/libavahi-common.so.3.5.0
+b20ea000-b20eb000 rwxp 0000a000 08:01 9449 /usr/lib/libavahi-common.so.3.5.0
+b20eb000-b2182000 r-xp 00000000 08:01 9769 /usr/lib/libgnutls.so.26.4.6
+b2182000-b2187000 r-xp 00097000 08:01 9769 /usr/lib/libgnutls.so.26.4.6
+b2187000-b2188000 rwxp 0009c000 08:01 9769 /usr/lib/libgnutls.so.26.4.6
+b2188000-b22bd000 r-xp 00000000 08:01 10335 /usr/lib/libxml2.so.2.6.32
+b22bd000-b22be000 ---p 00135000 08:01 10335 /usr/lib/libxml2.so.2.6.32
+b22be000-b22c2000 r-xp 00135000 08:01 10335 /usr/lib/libxml2.so.2.6.32
+b22c2000-b22c3000 rwxp 00139000 08:01 10335 /usr/lib/libxml2.so.2.6.32
+b22c3000-b22c4000 rwxp b22c3000 00:00 0
+b22c4000-b22cc000 r-xp 00000000 08:01 2653 /lib/libpopt.so.0.0.0
+b22cc000-b22cd000 r-xp 00007000 08:01 2653 /lib/libpopt.so.0.0.0
+b22cd000-b22ce000 rwxp 00008000 08:01 2653 /lib/libpopt.so.0.0.0
+b22ce000-b22f0000 r-xp 00000000 08:01 9445 /usr/lib/libaudiofile.so.0.0.2
+b22f0000-b22f3000 rwxp 00021000 08:01 9445 /usr/lib/libaudiofile.so.0.0.2
+b22f3000-b22fc000 r-xp 00000000 08:01 9604 /usr/lib/libesd.so.0.2.39
+b22fc000-b22fd000 r-xp 00008000 08:01 9604 /usr/lib/libesd.so.0.2.39
+b22fd000-b22fe000 rwxp 00009000 08:01 9604 /usr/lib/libesd.so.0.2.39
+b22fe000-b2311000 r-xp 00000000 08:01 9472 /usr/lib/libbonobo-activation.so.4.0.0
+b2311000-b2312000 r-xp 00012000 08:01 9472 /usr/lib/libbonobo-activation.so.4.0.0
+b2312000-b2313000 rwxp 00013000 08:01 9472 /usr/lib/libbonobo-activation.so.4.0.0
+b2313000-b2314000 rwxp b2313000 00:00 0
+b2314000-b2366000 r-xp 00000000 08:01 9470 /usr/lib/libbonobo-2.so.0.0.0
+b2366000-b2369000 r-xp 00051000 08:01 9470 /usr/lib/libbonobo-2.so.0.0.0
+b2369000-b2370000 rwxp 00054000 08:01 9470 /usr/lib/libbonobo-2.so.0.0.0
+b2370000-b23c9000 r-xp 00000000 08:01 9763 /usr/lib/libgnomevfs-2.so.0.2400.1
+b23c9000-b23cb000 r-xp 00058000 08:01 9763 /usr/lib/libgnomevfs-2.so.0.2400.1
+b23cb000-b23cc000 rwxp 0005a000 08:01 9763 /usr/lib/libgnomevfs-2.so.0.2400.1
+b23cc000-b23cd000 rwxp b23cc000 00:00 0
+b23cd000-b23e1000 r-xp 00000000 08:01 9733 /usr/lib/libgnome-2.so.0.2600.0
+b23e1000-b23e2000 r-xp 00013000 08:01 9733 /usr/lib/libgnome-2.so.0.2600.0
+b23e2000-b23e3000 rwxp 00014000 08:01 9733 /usr/lib/libgnome-2.so.0.2600.0
+b23e4000-b23eb000 r-xp 00000000 08:06 133495 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libp3p.so
+b23eb000-b23ec000 rwxp 00006000 08:06 133495 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libp3p.so
+b23ec000-b23f5000 r-xp 00000000 08:01 76354 /usr/share/locale-langpack/fr/LC_MESSAGES/libgnome-2.0.mo
+b23f5000-b24b0000 r-xp 00000000 08:06 133523 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libuconv.so
+b24b0000-b24b6000 rwxp 000bb000 08:06 133523 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libuconv.so
+b24b6000-b24c0000 rwxp b24b6000 00:00 0
+b24c0000-b2519000 r-xp 00000000 08:06 133285 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libhtmlpars.so
+b2519000-b251e000 rwxp 00058000 08:06 133285 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libhtmlpars.so
+b251e000-b2535000 r-xp 00000000 08:06 133206 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libchrome.so
+b2535000-b2536000 rwxp 00017000 08:06 133206 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libchrome.so
+b2536000-b255f000 r-xp 00000000 08:06 133240 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libgkplugin.so
+b255f000-b2561000 rwxp 00028000 08:06 133240 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libgkplugin.so
+b2561000-b2579000 r-xp 00000000 08:06 133486 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/liboji.so
+b2579000-b257a000 rwxp 00017000 08:06 133486 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/liboji.so
+b257a000-b2593000 r-xp 00000000 08:06 132139 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libjsj.so
+b2593000-b2595000 rwxp 00018000 08:06 132139 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libjsj.so
+b2595000-b259c000 r-xp 00000000 08:06 133497 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libpipboot.so
+b259c000-b259d000 rwxp 00007000 08:06 133497 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libpipboot.so
+b259d000-b2610000 r-xp 00000000 08:06 133176 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libappcomps.so
+b2610000-b2613000 rwxp 00073000 08:06 133176 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libappcomps.so
+b2613000-b265f000 r-xp 00000000 08:06 133225 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libdocshell.so
+b265f000-b2662000 rwxp 0004c000 08:06 133225 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libdocshell.so
+b2662000-b2693000 r-xp 00000000 08:06 133238 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libgfx_gtk.so
+b2693000-b2695000 rwxp 00031000 08:06 133238 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libgfx_gtk.so
+b2695000-b26a6000 r-xp 00000000 08:06 133547 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libwebbrwsr.so
+b26a6000-b26a7000 rwxp 00011000 08:06 133547 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libwebbrwsr.so
+b26a7000-b26dd000 r-xp 00000000 08:01 74453 /lib/libdbus-1.so.3.4.0
+b26dd000-b26de000 r-xp 00035000 08:01 74453 /lib/libdbus-1.so.3.4.0
+b26de000-b26df000 rwxp 00036000 08:01 74453 /lib/libdbus-1.so.3.4.0
+b26df000-b26fb000 r-xp 00000000 08:01 9550 /usr/lib/libdbus-glib-1.so.2.1.0
+b26fb000-b26fc000 r-xp 0001b000 08:01 9550 /usr/lib/libdbus-glib-1.so.2.1.0
+b26fc000-b26fd000 rwxp 0001c000 08:01 9550 /usr/lib/libdbus-glib-1.so.2.1.0
+b26fd000-b2746000 r-xp 00000000 08:01 9345 /usr/lib/libORBit-2.so.0.1.0
+b2746000-b274e000 r-xp 00049000 08:01 9345 /usr/lib/libORBit-2.so.0.1.0
+b274e000-b2750000 rwxp 00051000 08:01 9345 /usr/lib/libORBit-2.so.0.1.0
+b2750000-b277e000 r-xp 00000000 08:01 9653 /usr/lib/libgconf-2.so.4.1.5
+b277e000-b277f000 ---p 0002e000 08:01 9653 /usr/lib/libgconf-2.so.4.1.5
+b277f000-b2780000 r-xp 0002e000 08:01 9653 /usr/lib/libgconf-2.so.4.1.5
+b2780000-b2782000 rwxp 0002f000 08:01 9653 /usr/lib/libgconf-2.so.4.1.5
+b2782000-b27aa000 r-xp 00000000 08:06 133551 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libwidget_gtk2.so
+b27aa000-b27ad000 rwxp 00028000 08:06 133551 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libwidget_gtk2.so
+b27ad000-b27b0000 r-xp 00000000 08:01 2688 /lib/libuuid.so.1.2
+b27b0000-b27b1000 r-xp 00002000 08:01 2688 /lib/libuuid.so.1.2
+b27b1000-b27b2000 rwxp 00003000 08:01 2688 /lib/libuuid.so.1.2
+b27b2000-b27c7000 r-xp 00000000 08:01 9322 /usr/lib/libICE.so.6.3.0
+b27c7000-b27c8000 rwxp 00014000 08:01 9322 /usr/lib/libICE.so.6.3.0
+b27c8000-b27ca000 rwxp b27c8000 00:00 0
+b27ca000-b2819000 r-xp 00000000 08:01 9400 /usr/lib/libXt.so.6.0.0
+b2819000-b281a000 r-xp 0004f000 08:01 9400 /usr/lib/libXt.so.6.0.0
+b281a000-b281d000 rwxp 00050000 08:01 9400 /usr/lib/libXt.so.6.0.0
+b281d000-b2820000 r-xp 00000000 08:01 2603 /lib/libgpg-error.so.0.3.0
+b2820000-b2821000 rwxp 00002000 08:01 2603 /lib/libgpg-error.so.0.3.0
+b2821000-b282e000 r-xp 00000000 08:06 133057 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/libgwt-ll.so
+b282e000-b282f000 rwxp 0000c000 08:06 133057 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/libgwt-ll.so
+b282f000-b2842000 r-xp 00000000 08:06 133303 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libjsd.so
+b2842000-b2843000 rwxp 00013000 08:06 133303 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libjsd.so
+b2843000-b286c000 r-xp 00000000 08:06 133514 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/librdf.so
+b286c000-b286e000 rwxp 00028000 08:06 133514 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/librdf.so
+b286e000-b289b000 r-xp 00000000 08:06 133288 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libimglib2.so
+b289b000-b289c000 rwxp 0002d000 08:06 133288 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libimglib2.so
+b289c000-b28d4000 r-xp 00000000 08:06 133287 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libi18n.so
+b28d4000-b28d7000 rwxp 00037000 08:06 133287 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libi18n.so
+b28d7000-b28d8000 ---p b28d7000 00:00 0
+b28d8000-b30d8000 rwxp b28d8000 00:00 0
+b30d8000-b311c000 r-xp 00000000 08:06 133554 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libxpconnect.so
+b311c000-b311f000 rwxp 00043000 08:06 133554 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libxpconnect.so
+b311f000-b3120000 rwxp b311f000 00:00 0
+b3120000-b3135000 r-xp 00000000 08:06 133203 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libcaps.so
+b3135000-b3136000 rwxp 00014000 08:06 133203 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libcaps.so
+b3136000-b3148000 r-xp 00000000 08:01 9380 /usr/lib/libXft.so.2.1.13
+b3148000-b3149000 r-xp 00011000 08:01 9380 /usr/lib/libXft.so.2.1.13
+b3149000-b314a000 rwxp 00012000 08:01 9380 /usr/lib/libXft.so.2.1.13
+b314a000-b3155000 r-xp 00000000 08:01 10088 /usr/lib/libpangox-1.0.so.0.2400.1
+b3155000-b3156000 r-xp 0000a000 08:01 10088 /usr/lib/libpangox-1.0.so.0.2400.1
+b3156000-b3157000 rwxp 0000b000 08:01 10088 /usr/lib/libpangox-1.0.so.0.2400.1
+b3157000-b3159000 r-xp 00000000 08:01 6211 /lib/tls/i686/cmov/libutil-2.9.so
+b3159000-b315a000 r-xp 00001000 08:01 6211 /lib/tls/i686/cmov/libutil-2.9.so
+b315a000-b315b000 rwxp 00002000 08:01 6211 /lib/tls/i686/cmov/libutil-2.9.so
+b315b000-b3162000 r-xp 00000000 08:01 9353 /usr/lib/libSM.so.6.0.0
+b3162000-b3163000 r-xp 00006000 08:01 9353 /usr/lib/libSM.so.6.0.0
+b3163000-b3164000 rwxp 00007000 08:01 9353 /usr/lib/libSM.so.6.0.0
+b3164000-b3168000 r-xp 00000000 08:06 132140 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libgtkxtbin.so
+b3168000-b3169000 rwxp 00003000 08:06 132140 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libgtkxtbin.so
+b3169000-b35e5000 r-xp 00000000 08:06 133239 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libgklayout.so
+b35e5000-b3620000 rwxp 0047c000 08:06 133239 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libgklayout.so
+b3620000-b3626000 rwxp b3620000 00:00 0
+b3626000-b36eb000 r-xp 00000000 08:06 133466 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libnecko.so
+b36eb000-b36f1000 rwxp 000c4000 08:06 133466 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libnecko.so
+b36f1000-b36fd000 r-xp 00000000 08:06 132136 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libmozz.so
+b36fd000-b36ff000 rwxp 0000b000 08:06 132136 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libmozz.so
+b36ff000-b3710000 r-xp 00000000 08:06 133512 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libpref.so
+b3710000-b3711000 rwxp 00011000 08:06 133512 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libpref.so
+b3711000-b37f5000 r-xp 00000000 08:01 10246 /usr/lib/libstdc++.so.6.0.10
+b37f5000-b37f9000 r-xp 000e3000 08:01 10246 /usr/lib/libstdc++.so.6.0.10
+b37f9000-b37fa000 rwxp 000e7000 08:01 10246 /usr/lib/libstdc++.so.6.0.10
+b37fa000-b3800000 rwxp b37fa000 00:00 0
+b3800000-b386d000 rwxp b3800000 00:00 0
+b386d000-b3900000 ---p b386d000 00:00 0
+b3900000-b3903000 r-xs 00027000 08:01 115065 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/ext/sunjce_provider.jar
+b3903000-b3908000 r-xp 00000000 08:06 133517 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libsystem-pref.so
+b3908000-b3909000 rwxp 00005000 08:06 133517 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libsystem-pref.so
+b3909000-b3918000 r-xp 00000000 08:06 133522 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libtypeaheadfind.so
+b3918000-b3919000 rwxp 0000e000 08:06 133522 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libtypeaheadfind.so
+b3919000-b3944000 r-xp 00000000 08:06 133233 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libembedcomponents.so
+b3944000-b3946000 rwxp 0002a000 08:06 133233 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/components/libembedcomponents.so
+b3946000-b39c4000 r-xp 00000000 08:06 132137 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libmozjs.so
+b39c4000-b39c8000 rwxp 0007e000 08:06 132137 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libmozjs.so
+b39c8000-b39e9000 r-xp 00000000 08:06 132142 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libgkgfx.so
+b39e9000-b39ea000 rwxp 00021000 08:06 132142 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libgkgfx.so
+b39ea000-b39fd000 r-xp 00000000 08:06 133053 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/libswt-mozilla-gtk-3235.so
+b39fd000-b39fe000 rwxp 00012000 08:06 133053 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/libswt-mozilla-gtk-3235.so
+b39fe000-b3a01000 ---p b39fe000 00:00 0
+b3a01000-b3a4f000 rwxp b3a01000 00:00 0
+b3a4f000-b3a52000 ---p b3a4f000 00:00 0
+b3a52000-b3aa0000 rwxp b3a52000 00:00 0
+b3aa0000-b3aa3000 ---p b3aa0000 00:00 0
+b3aa3000-b3af1000 rwxp b3aa3000 00:00 0
+b3af1000-b3af4000 ---p b3af1000 00:00 0
+b3af4000-b3b42000 rwxp b3af4000 00:00 0
+b3b42000-b3b45000 ---p b3b42000 00:00 0
+b3b45000-b3b93000 rwxp b3b45000 00:00 0
+b3b93000-b3b96000 ---p b3b93000 00:00 0
+b3b96000-b3be4000 rwxp b3b96000 00:00 0
+b3be4000-b3bf6000 r-xp 00000000 08:01 6205 /lib/tls/i686/cmov/libresolv-2.9.so
+b3bf6000-b3bf7000 r-xp 00011000 08:01 6205 /lib/tls/i686/cmov/libresolv-2.9.so
+b3bf7000-b3bf8000 rwxp 00012000 08:01 6205 /lib/tls/i686/cmov/libresolv-2.9.so
+b3bf8000-b3bfa000 rwxp b3bf8000 00:00 0
+b3bfa000-b3bff000 r-xp 00000000 08:01 6192 /lib/tls/i686/cmov/libnss_dns-2.9.so
+b3bff000-b3c00000 r-xp 00004000 08:01 6192 /lib/tls/i686/cmov/libnss_dns-2.9.so
+b3c00000-b3c01000 rwxp 00005000 08:01 6192 /lib/tls/i686/cmov/libnss_dns-2.9.so
+b3c01000-b3c03000 r-xp 00000000 08:01 2629 /lib/libnss_mdns4_minimal.so.2
+b3c03000-b3c04000 rwxp 00001000 08:01 2629 /lib/libnss_mdns4_minimal.so.2
+b3c04000-b3c06000 r-xp 00000000 08:01 9453 /usr/lib/libavahi-glib.so.1.0.1
+b3c06000-b3c07000 r-xp 00001000 08:01 9453 /usr/lib/libavahi-glib.so.1.0.1
+b3c07000-b3c08000 rwxp 00002000 08:01 9453 /usr/lib/libavahi-glib.so.1.0.1
+b3c08000-b3c0e000 r-xp 00000000 08:01 10090 /usr/lib/libpangoxft-1.0.so.0.2400.1
+b3c0e000-b3c0f000 r-xp 00005000 08:01 10090 /usr/lib/libpangoxft-1.0.so.0.2400.1
+b3c0f000-b3c10000 rwxp 00006000 08:01 10090 /usr/lib/libpangoxft-1.0.so.0.2400.1
+b3c10000-b3c15000 r-xp 00000000 08:06 133051 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/libswt-mozilla17-profile-gtk-3235.so
+b3c15000-b3c16000 rwxp 00004000 08:06 133051 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/libswt-mozilla17-profile-gtk-3235.so
+b3c16000-b3c29000 r-xp 00000000 08:01 83663 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/libnet.so
+b3c29000-b3c2a000 rwxp 00013000 08:01 83663 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/libnet.so
+b3c2a000-b3c2d000 ---p b3c2a000 00:00 0
+b3c2d000-b3c7b000 rwxp b3c2d000 00:00 0
+b3c7b000-b3c7e000 ---p b3c7b000 00:00 0
+b3c7e000-b3ccc000 rwxp b3c7e000 00:00 0
+b3ccc000-b3d2c000 rwxs 00000000 00:09 8486940 /SYSV00000000 (deleted)
+b3d2c000-b3dc4000 r-xp 00000000 08:01 42112 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
+b3dc4000-b3dc6000 r-xp 00000000 08:01 18012 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
+b3dc6000-b3dc7000 r-xp 00001000 08:01 18012 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
+b3dc7000-b3dc8000 rwxp 00002000 08:01 18012 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
+b3dc8000-b3dce000 r-xs 00000000 08:01 107678 /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-x86.cache-2
+b3dce000-b3dd1000 r-xs 00000000 08:01 107687 /var/cache/fontconfig/e383d7ea5fbe662a33d9b44caf393297-x86.cache-2
+b3dd1000-b3dd4000 r-xs 00000000 08:01 122740 /var/cache/fontconfig/6eb3985aa4124903f6ff08ba781cd364-x86.cache-2
+b3dd4000-b3dd5000 r-xs 00000000 08:01 107673 /var/cache/fontconfig/4c73fe0c47614734b17d736dbde7580a-x86.cache-2
+b3dd5000-b3dd8000 r-xs 00000000 08:01 107679 /var/cache/fontconfig/a755afe4a08bf5b97852ceb7400b47bc-x86.cache-2
+b3dd8000-b3ddb000 r-xs 00000000 08:01 107675 /var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-x86.cache-2
+b3ddb000-b3dde000 r-xs 00000000 08:01 107685 /var/cache/fontconfig/de156ccd2eddbdc19d37a45b8b2aac9c-x86.cache-2
+b3dde000-b3de6000 r-xs 00000000 08:01 107688 /var/cache/fontconfig/e3de0de479f42330eadf588a55fb5bf4-x86.cache-2
+b3de6000-b3df1000 r-xs 00000000 08:01 107668 /var/cache/fontconfig/0f34bcd4b6ee430af32735b75db7f02b-x86.cache-2
+b3df1000-b3df3000 r-xs 00000000 08:01 107684 /var/cache/fontconfig/ddd4086aec35a5275babba44bb759c3c-x86.cache-2
+b3df3000-b3df4000 r-xs 00000000 08:01 107671 /var/cache/fontconfig/4794a0821666d79190d59a36cb4f44b5-x86.cache-2
+b3df4000-b3dfb000 r-xs 00000000 08:01 107682 /var/cache/fontconfig/d52a8644073d54c13679302ca1180695-x86.cache-2
+b3dfb000-b3e01000 r-xs 00000000 08:01 107667 /var/cache/fontconfig/089dead882dea3570ffc31a9898cfb69-x86.cache-2
+b3e01000-b3e0e000 r-xs 00000000 08:01 163217 /var/cache/fontconfig/e13b20fdb08344e0e664864cc2ede53d-x86.cache-2
+b3e0e000-b3e10000 r-xs 00000000 08:01 122742 /var/cache/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-x86.cache-2
+b3e10000-b3e1e000 r-xs 00000000 08:01 163215 /var/cache/fontconfig/865f88548240fee46819705c6468c165-x86.cache-2
+b3e1e000-b3e29000 r-xp 00000000 08:01 76265 /usr/share/locale-langpack/fr/LC_MESSAGES/glib20.mo
+b3e29000-b3e4f000 r-xp 00000000 08:06 133056 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/libswt-gtk-3235.so
+b3e4f000-b3e51000 rwxp 00025000 08:06 133056 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/libswt-gtk-3235.so
+b3e51000-b3e52000 rwxp b3e51000 00:00 0
+b3e52000-b3e7a000 r-xp 00000000 08:01 12656 /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
+b3e7a000-b3e7b000 r-xp 00027000 08:01 12656 /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
+b3e7b000-b3e7c000 rwxp 00028000 08:01 12656 /usr/lib/gtk-2.0/2.10.0/engines/libclearlooks.so
+b3e7c000-b3e9e000 r-xp 00000000 08:01 76349 /usr/share/locale-langpack/fr/LC_MESSAGES/libc.mo
+b3e9e000-b3ea5000 r-xp 00000000 08:01 9982 /usr/lib/libltdl.so.7.2.0
+b3ea5000-b3ea6000 r-xp 00006000 08:01 9982 /usr/lib/libltdl.so.7.2.0
+b3ea6000-b3ea7000 rwxp 00007000 08:01 9982 /usr/lib/libltdl.so.7.2.0
+b3ea7000-b3eb3000 r-xp 00000000 08:01 10255 /usr/lib/libtdb.so.1.1.3
+b3eb3000-b3eb4000 r-xp 0000b000 08:01 10255 /usr/lib/libtdb.so.1.1.3
+b3eb4000-b3eb5000 rwxp 0000c000 08:01 10255 /usr/lib/libtdb.so.1.1.3
+b3eb5000-b3eb9000 r-xp 00000000 08:01 10062 /usr/lib/libogg.so.0.5.3
+b3eb9000-b3eba000 r-xp 00003000 08:01 10062 /usr/lib/libogg.so.0.5.3
+b3eba000-b3ebb000 rwxp 00004000 08:01 10062 /usr/lib/libogg.so.0.5.3
+b3ebb000-b3ed6000 r-xp 00000000 08:01 10296 /usr/lib/libvorbis.so.0.4.0
+b3ed6000-b3ed7000 r-xp 0001a000 08:01 10296 /usr/lib/libvorbis.so.0.4.0
+b3ed7000-b3ee5000 rwxp 0001b000 08:01 10296 /usr/lib/libvorbis.so.0.4.0
+b3ee5000-b3eec000 r-xp 00000000 08:01 10300 /usr/lib/libvorbisfile.so.3.2.0
+b3eec000-b3eed000 r-xp 00006000 08:01 10300 /usr/lib/libvorbisfile.so.3.2.0
+b3eed000-b3eee000 rwxp 00007000 08:01 10300 /usr/lib/libvorbisfile.so.3.2.0
+b3eee000-b3efb000 r-xp 00000000 08:01 9496 /usr/lib/libcanberra.so.0.1.4
+b3efb000-b3efc000 r-xp 0000d000 08:01 9496 /usr/lib/libcanberra.so.0.1.4
+b3efc000-b3efd000 rwxp 0000e000 08:01 9496 /usr/lib/libcanberra.so.0.1.4
+b3efd000-b3f00000 r-xp 00000000 08:01 9494 /usr/lib/libcanberra-gtk.so.0.0.4
+b3f00000-b3f01000 r-xp 00002000 08:01 9494 /usr/lib/libcanberra-gtk.so.0.0.4
+b3f01000-b3f02000 rwxp 00003000 08:01 9494 /usr/lib/libcanberra-gtk.so.0.0.4
+b3f03000-b3f05000 r-xp 00000000 08:01 11971 /usr/lib/gconv/UTF-16.so
+b3f05000-b3f06000 r-xp 00001000 08:01 11971 /usr/lib/gconv/UTF-16.so
+b3f06000-b3f07000 rwxp 00002000 08:01 11971 /usr/lib/gconv/UTF-16.so
+b3f07000-b3f08000 r-xp 00000000 08:01 12672 /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
+b3f08000-b3f09000 r-xp 00000000 08:01 12672 /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
+b3f09000-b3f0a000 rwxp 00001000 08:01 12672 /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
+b3f0a000-b3f12000 r-xp 00000000 08:01 12664 /usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so
+b3f12000-b3f13000 r-xp 00007000 08:01 12664 /usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so
+b3f13000-b3f14000 rwxp 00008000 08:01 12664 /usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so
+b3f14000-b3f18000 r-xp 00000000 08:01 12710 /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
+b3f18000-b3f19000 r-xp 00003000 08:01 12710 /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
+b3f19000-b3f1a000 rwxp 00004000 08:01 12710 /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
+b3f1a000-b3f42000 r-xp 00000000 08:01 76309 /usr/share/locale-langpack/fr/LC_MESSAGES/gtk20-properties.mo
+b3f42000-b402d000 r-xp 00000000 08:01 13735 /usr/lib/locale/fr_FR.utf8/LC_COLLATE
+b402d000-b403a000 r-xp 00000000 08:01 2599 /lib/libgcc_s.so.1
+b403a000-b403b000 r-xp 0000c000 08:01 2599 /lib/libgcc_s.so.1
+b403b000-b403c000 rwxp 0000d000 08:01 2599 /lib/libgcc_s.so.1
+b403c000-b40ec000 r-xp 00000000 08:01 163682 /usr/lib/libstdc++.so.5.0.7
+b40ec000-b40f1000 rwxp 000af000 08:01 163682 /usr/lib/libstdc++.so.5.0.7
+b40f1000-b40f6000 rwxp b40f1000 00:00 0
+b40f6000-b40f7000 r-xp b40f6000 00:00 0
+b40f7000-b4108000 r-xp 00000000 08:01 76310 /usr/share/locale-langpack/fr/LC_MESSAGES/gtk20.mo
+b4108000-b41ba000 r-xp 00000000 08:06 132124 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libxpcom.so
+b41ba000-b41c0000 rwxp 000b2000 08:06 132124 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libxpcom.so
+b41c0000-b41f1000 r-xp 00000000 08:06 132134 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libnspr4.so
+b41f1000-b41f3000 rwxp 00031000 08:06 132134 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libnspr4.so
+b41f3000-b41f4000 rwxp b41f3000 00:00 0
+b41f4000-b41f8000 r-xp 00000000 08:01 9372 /usr/lib/libXdmcp.so.6.0.0
+b41f8000-b41f9000 rwxp 00003000 08:01 9372 /usr/lib/libXdmcp.so.6.0.0
+b41f9000-b421d000 r-xp 00000000 08:01 9618 /usr/lib/libexpat.so.1.5.2
+b421d000-b421f000 r-xp 00023000 08:01 9618 /usr/lib/libexpat.so.1.5.2
+b421f000-b4220000 rwxp 00025000 08:01 9618 /usr/lib/libexpat.so.1.5.2
+b4220000-b4238000 r-xp 00000000 08:01 2663 /lib/libselinux.so.1
+b4238000-b4239000 r-xp 00017000 08:01 2663 /lib/libselinux.so.1
+b4239000-b423a000 rwxp 00018000 08:01 2663 /lib/libselinux.so.1
+b423a000-b4240000 r-xp 00000000 08:01 81186 /usr/lib/libxcb-render.so.0.0.0
+b4240000-b4241000 r-xp 00005000 08:01 81186 /usr/lib/libxcb-render.so.0.0.0
+b4241000-b4242000 rwxp 00006000 08:01 81186 /usr/lib/libxcb-render.so.0.0.0
+b4242000-b4245000 r-xp 00000000 08:01 10325 /usr/lib/libxcb-render-util.so.0.0.0
+b4245000-b4246000 r-xp 00002000 08:01 10325 /usr/lib/libxcb-render-util.so.0.0.0
+b4246000-b4247000 rwxp 00003000 08:01 10325 /usr/lib/libxcb-render-util.so.0.0.0
+b4247000-b426b000 r-xp 00000000 08:01 10116 /usr/lib/libpng12.so.0.27.0
+b426b000-b426c000 r-xp 00023000 08:01 10116 /usr/lib/libpng12.so.0.27.0
+b426c000-b426d000 rwxp 00024000 08:01 10116 /usr/lib/libpng12.so.0.27.0
+b426d000-b4280000 r-xp 00000000 08:01 9558 /usr/lib/libdirect-1.0.so.0.1.0
+b4280000-b4281000 r-xp 00012000 08:01 9558 /usr/lib/libdirect-1.0.so.0.1.0
+b4281000-b4282000 rwxp 00013000 08:01 9558 /usr/lib/libdirect-1.0.so.0.1.0
+b4282000-b4289000 r-xp 00000000 08:01 9640 /usr/lib/libfusion-1.0.so.0.1.0
+b4289000-b428a000 r-xp 00006000 08:01 9640 /usr/lib/libfusion-1.0.so.0.1.0
+b428a000-b428b000 rwxp 00007000 08:01 9640 /usr/lib/libfusion-1.0.so.0.1.0
+b428b000-b42ef000 r-xp 00000000 08:01 9560 /usr/lib/libdirectfb-1.0.so.0.1.0
+b42ef000-b42f0000 r-xp 00063000 08:01 9560 /usr/lib/libdirectfb-1.0.so.0.1.0
+b42f0000-b42f1000 rwxp 00064000 08:01 9560 /usr/lib/libdirectfb-1.0.so.0.1.0
+b42f1000-b4331000 r-xp 00000000 08:01 10110 /usr/lib/libpixman-1.so.0.13.2
+b4331000-b4333000 r-xp 0003f000 08:01 10110 /usr/lib/libpixman-1.so.0.13.2
+b4333000-b4334000 rwxp 00041000 08:01 10110 /usr/lib/libpixman-1.so.0.13.2
+b4334000-b434c000 r-xp 00000000 08:01 33944 /usr/lib/libxcb.so.1.1.0
+b434c000-b434d000 r-xp 00017000 08:01 33944 /usr/lib/libxcb.so.1.1.0
+b434d000-b434e000 rwxp 00018000 08:01 33944 /usr/lib/libxcb.so.1.1.0
+b434e000-b4350000 r-xp 00000000 08:01 9361 /usr/lib/libXau.so.6.0.0
+b4350000-b4351000 r-xp 00001000 08:01 9361 /usr/lib/libXau.so.6.0.0
+b4351000-b4352000 rwxp 00002000 08:01 9361 /usr/lib/libXau.so.6.0.0
+b4352000-b4382000 r-xp 00000000 08:01 2649 /lib/libpcre.so.3.12.1
+b4382000-b4383000 r-xp 0002f000 08:01 2649 /lib/libpcre.so.3.12.1
+b4383000-b4384000 rwxp 00030000 08:01 2649 /lib/libpcre.so.3.12.1
+b4384000-b443a000 r-xp 00000000 08:01 9717 /usr/lib/libglib-2.0.so.0.2000.1
+b443a000-b443b000 r-xp 000b5000 08:01 9717 /usr/lib/libglib-2.0.so.0.2000.1
+b443b000-b443c000 rwxp 000b6000 08:01 9717 /usr/lib/libglib-2.0.so.0.2000.1
+b443c000-b443f000 r-xp 00000000 08:01 9729 /usr/lib/libgmodule-2.0.so.0.2000.1
+b443f000-b4440000 r-xp 00002000 08:01 9729 /usr/lib/libgmodule-2.0.so.0.2000.1
+b4440000-b4441000 rwxp 00003000 08:01 9729 /usr/lib/libgmodule-2.0.so.0.2000.1
+b4441000-b447d000 r-xp 00000000 08:01 9771 /usr/lib/libgobject-2.0.so.0.2000.1
+b447d000-b447e000 r-xp 0003b000 08:01 9771 /usr/lib/libgobject-2.0.so.0.2000.1
+b447e000-b447f000 rwxp 0003c000 08:01 9771 /usr/lib/libgobject-2.0.so.0.2000.1
+b447f000-b44aa000 r-xp 00000000 08:01 9628 /usr/lib/libfontconfig.so.1.3.0
+b44aa000-b44ab000 r-xp 0002a000 08:01 9628 /usr/lib/libfontconfig.so.1.3.0
+b44ab000-b44ac000 rwxp 0002b000 08:01 9628 /usr/lib/libfontconfig.so.1.3.0
+b44ac000-b44c0000 r-xp 00000000 08:01 2695 /lib/libz.so.1.2.3.3
+b44c0000-b44c1000 r-xp 00013000 08:01 2695 /lib/libz.so.1.2.3.3
+b44c1000-b44c2000 rwxp 00014000 08:01 2695 /lib/libz.so.1.2.3.3
+b44c2000-b4534000 r-xp 00000000 08:01 6233 /usr/lib/libfreetype.so.6.3.20
+b4534000-b4538000 r-xp 00071000 08:01 6233 /usr/lib/libfreetype.so.6.3.20
+b4538000-b4539000 rwxp 00075000 08:01 6233 /usr/lib/libfreetype.so.6.3.20
+b4539000-b4579000 r-xp 00000000 08:01 10080 /usr/lib/libpango-1.0.so.0.2400.1
+b4579000-b457a000 ---p 00040000 08:01 10080 /usr/lib/libpango-1.0.so.0.2400.1
+b457a000-b457b000 r-xp 00040000 08:01 10080 /usr/lib/libpango-1.0.so.0.2400.1
+b457b000-b457c000 rwxp 00041000 08:01 10080 /usr/lib/libpango-1.0.so.0.2400.1
+b457c000-b45a3000 r-xp 00000000 08:01 10084 /usr/lib/libpangoft2-1.0.so.0.2400.1
+b45a3000-b45a4000 r-xp 00026000 08:01 10084 /usr/lib/libpangoft2-1.0.so.0.2400.1
+b45a4000-b45a5000 rwxp 00027000 08:01 10084 /usr/lib/libpangoft2-1.0.so.0.2400.1
+b45a5000-b4610000 r-xp 00000000 08:01 9709 /usr/lib/libgio-2.0.so.0.2000.1
+b4610000-b4611000 ---p 0006b000 08:01 9709 /usr/lib/libgio-2.0.so.0.2000.1
+b4611000-b4612000 r-xp 0006b000 08:01 9709 /usr/lib/libgio-2.0.so.0.2000.1
+b4612000-b4613000 rwxp 0006c000 08:01 9709 /usr/lib/libgio-2.0.so.0.2000.1
+b4613000-b468a000 r-xp 00000000 08:01 9486 /usr/lib/libcairo.so.2.10800.6
+b468a000-b468c000 r-xp 00076000 08:01 9486 /usr/lib/libcairo.so.2.10800.6
+b468c000-b468d000 rwxp 00078000 08:01 9486 /usr/lib/libcairo.so.2.10800.6
+b468d000-b46a6000 r-xp 00000000 08:01 9441 /usr/lib/libatk-1.0.so.0.2609.1
+b46a6000-b46a7000 r-xp 00019000 08:01 9441 /usr/lib/libatk-1.0.so.0.2609.1
+b46a7000-b46a8000 rwxp 0001a000 08:01 9441 /usr/lib/libatk-1.0.so.0.2609.1
+b46a8000-b46ac000 r-xp 00000000 08:01 9376 /usr/lib/libXfixes.so.3.1.0
+b46ac000-b46ad000 rwxp 00003000 08:01 9376 /usr/lib/libXfixes.so.3.1.0
+b46ad000-b46af000 r-xp 00000000 08:01 9370 /usr/lib/libXdamage.so.1.1.0
+b46af000-b46b0000 rwxp 00001000 08:01 9370 /usr/lib/libXdamage.so.1.1.0
+b46b0000-b479a000 r-xp 00000000 08:01 9355 /usr/lib/libX11.so.6.2.0
+b479a000-b479b000 ---p 000ea000 08:01 9355 /usr/lib/libX11.so.6.2.0
+b479b000-b479c000 r-xp 000ea000 08:01 9355 /usr/lib/libX11.so.6.2.0
+b479c000-b479e000 rwxp 000eb000 08:01 9355 /usr/lib/libX11.so.6.2.0
+b479e000-b479f000 rwxp b479e000 00:00 0
+b479f000-b47a9000 r-xp 00000000 08:01 10082 /usr/lib/libpangocairo-1.0.so.0.2400.1
+b47a9000-b47aa000 r-xp 00009000 08:01 10082 /usr/lib/libpangocairo-1.0.so.0.2400.1
+b47aa000-b47ab000 rwxp 0000a000 08:01 10082 /usr/lib/libpangocairo-1.0.so.0.2400.1
+b47ab000-b47c3000 r-xp 00000000 08:01 9674 /usr/lib/libgdk_pixbuf-2.0.so.0.1600.1
+b47c3000-b47c4000 r-xp 00017000 08:01 9674 /usr/lib/libgdk_pixbuf-2.0.so.0.1600.1
+b47c4000-b47c5000 rwxp 00018000 08:01 9674 /usr/lib/libgdk_pixbuf-2.0.so.0.1600.1
+b47c5000-b47cd000 r-xp 00000000 08:01 9368 /usr/lib/libXcursor.so.1.0.2
+b47cd000-b47ce000 rwxp 00007000 08:01 9368 /usr/lib/libXcursor.so.1.0.2
+b47ce000-b47d4000 r-xp 00000000 08:01 9394 /usr/lib/libXrandr.so.2.2.0
+b47d4000-b47d5000 r-xp 00006000 08:01 9394 /usr/lib/libXrandr.so.2.2.0
+b47d5000-b47d6000 rwxp 00007000 08:01 9394 /usr/lib/libXrandr.so.2.2.0
+b47d6000-b47de000 r-xp 00000000 08:01 30975 /usr/lib/libXi.so.6.0.0
+b47de000-b47df000 r-xp 00007000 08:01 30975 /usr/lib/libXi.so.6.0.0
+b47df000-b47e0000 rwxp 00008000 08:01 30975 /usr/lib/libXi.so.6.0.0
+b47e0000-b47e8000 r-xp 00000000 08:01 9396 /usr/lib/libXrender.so.1.3.0
+b47e8000-b47e9000 r-xp 00007000 08:01 9396 /usr/lib/libXrender.so.1.3.0
+b47e9000-b47ea000 rwxp 00008000 08:01 9396 /usr/lib/libXrender.so.1.3.0
+b47ea000-b47f8000 r-xp 00000000 08:01 9374 /usr/lib/libXext.so.6.4.0
+b47f8000-b47f9000 r-xp 0000d000 08:01 9374 /usr/lib/libXext.so.6.4.0
+b47f9000-b47fa000 rwxp 0000e000 08:01 9374 /usr/lib/libXext.so.6.4.0
+b47fa000-b4883000 r-xp 00000000 08:01 9672 /usr/lib/libgdk-x11-2.0.so.0.1600.1
+b4883000-b4884000 ---p 00089000 08:01 9672 /usr/lib/libgdk-x11-2.0.so.0.1600.1
+b4884000-b4886000 r-xp 00089000 08:01 9672 /usr/lib/libgdk-x11-2.0.so.0.1600.1
+b4886000-b4887000 rwxp 0008b000 08:01 9672 /usr/lib/libgdk-x11-2.0.so.0.1600.1
+b4887000-b488b000 r-xp 00000000 08:01 9402 /usr/lib/libXtst.so.6.1.0
+b488b000-b488c000 r-xp 00004000 08:01 9402 /usr/lib/libXtst.so.6.1.0
+b488c000-b488d000 rwxp 00005000 08:01 9402 /usr/lib/libXtst.so.6.1.0
+b488d000-b4891000 r-xp 00000000 08:01 9849 /usr/lib/libgthread-2.0.so.0.2000.1
+b4891000-b4892000 r-xp 00003000 08:01 9849 /usr/lib/libgthread-2.0.so.0.2000.1
+b4892000-b4893000 rwxp 00004000 08:01 9849 /usr/lib/libgthread-2.0.so.0.2000.1
+b4893000-b4c3c000 r-xp 00000000 08:01 9853 /usr/lib/libgtk-x11-2.0.so.0.1600.1
+b4c3c000-b4c40000 r-xp 003a8000 08:01 9853 /usr/lib/libgtk-x11-2.0.so.0.1600.1
+b4c40000-b4c42000 rwxp 003ac000 08:01 9853 /usr/lib/libgtk-x11-2.0.so.0.1600.1
+b4c42000-b4c45000 rwxp b4c42000 00:00 0
+b4c45000-b4c48000 rwxs 00000000 00:09 8519711 /SYSV00000000 (deleted)
+b4c48000-b4c49000 r-xp 00000000 08:01 13715 /usr/lib/locale/fr_FR.utf8/LC_NUMERIC
+b4c49000-b4c4a000 r-xp 00000000 08:01 13718 /usr/lib/locale/fr_FR.utf8/LC_TIME
+b4c4a000-b4c4b000 r-xp 00000000 08:01 13709 /usr/lib/locale/fr_FR.utf8/LC_MONETARY
+b4c4b000-b4c4c000 r-xp 00000000 08:01 13693 /usr/lib/locale/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES
+b4c4c000-b4c4d000 r-xp 00000000 08:01 13742 /usr/lib/locale/fr_FR.utf8/LC_PAPER
+b4c4d000-b4c4e000 r-xp 00000000 08:01 13701 /usr/lib/locale/fr_FR.utf8/LC_NAME
+b4c4e000-b4c50000 r-xp 00000000 08:06 132130 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libplds4.so
+b4c50000-b4c51000 rwxp 00002000 08:06 132130 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libplds4.so
+b4c51000-b4c55000 r-xp 00000000 08:06 132131 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libplc4.so
+b4c55000-b4c56000 rwxp 00003000 08:06 132131 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/mozilla-1.7.12/libplc4.so
+b4c56000-b4ca0000 r-xp 00000000 08:06 133050 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/libswt-pi-gtk-3235.so
+b4ca0000-b4ca2000 rwxp 0004a000 08:06 133050 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/libswt-pi-gtk-3235.so
+b4ca2000-b4d22000 r-xs 00903000 08:06 131558 /home/kevin/.m2/repository/com/google/gwt/gwt-dev/1.5.3/gwt-dev-1.5.3-linux.jar
+b4d22000-b4d6b000 r-xs 00297000 08:06 131547 /home/kevin/.m2/repository/com/google/gwt/gwt-user/1.5.3/gwt-user-1.5.3.jar
+b4d6b000-b4d6c000 ---p b4d6b000 00:00 0
+b4d6c000-b4dec000 rwxp b4d6c000 00:00 0
+b4dec000-b4def000 ---p b4dec000 00:00 0
+b4def000-b4e3d000 rwxp b4def000 00:00 0
+b4e3d000-b4e40000 ---p b4e3d000 00:00 0
+b4e40000-b4ebe000 rwxp b4e40000 00:00 0
+b4ebe000-b4ec1000 ---p b4ebe000 00:00 0
+b4ec1000-b4f42000 rwxp b4ec1000 00:00 0
+b4f42000-b50d8000 r-xs 02fb1000 08:01 109444 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/rt.jar
+b50d8000-b50df000 r-xs 00000000 08:01 11976 /usr/lib/gconv/gconv-modules.cache
+b50df000-b511e000 r-xp 00000000 08:01 13736 /usr/lib/locale/fr_FR.utf8/LC_CTYPE
+b511e000-b5121000 ---p b511e000 00:00 0
+b5121000-b516f000 rwxp b5121000 00:00 0
+b516f000-b5172000 ---p b516f000 00:00 0
+b5172000-b51c0000 rwxp b5172000 00:00 0
+b51c0000-b51c1000 ---p b51c0000 00:00 0
+b51c1000-b524f000 rwxp b51c1000 00:00 0
+b524f000-b5269000 rwxp b524f000 00:00 0
+b5269000-b5290000 rwxp b5269000 00:00 0
+b5290000-b5356000 rwxp b5290000 00:00 0
+b5356000-b535a000 rwxp b5356000 00:00 0
+b535a000-b5369000 rwxp b535a000 00:00 0
+b5369000-b5391000 rwxp b5369000 00:00 0
+b5391000-b5456000 rwxp b5391000 00:00 0
+b5456000-b545d000 rwxp b5456000 00:00 0
+b545d000-b5476000 rwxp b545d000 00:00 0
+b5476000-b5493000 rwxp b5476000 00:00 0
+b5493000-b5501000 rwxp b5493000 00:00 0
+b5501000-b5949000 rwxp b5501000 00:00 0
+b5949000-b7501000 rwxp b5949000 00:00 0
+b7501000-b7510000 r-xp 00000000 08:01 83659 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/libzip.so
+b7510000-b7512000 rwxp 0000e000 08:01 83659 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/libzip.so
+b7512000-b751c000 r-xp 00000000 08:01 6194 /lib/tls/i686/cmov/libnss_files-2.9.so
+b751c000-b751d000 r-xp 00009000 08:01 6194 /lib/tls/i686/cmov/libnss_files-2.9.so
+b751d000-b751e000 rwxp 0000a000 08:01 6194 /lib/tls/i686/cmov/libnss_files-2.9.so
+b751e000-b7527000 r-xp 00000000 08:01 6198 /lib/tls/i686/cmov/libnss_nis-2.9.so
+b7527000-b7528000 r-xp 00008000 08:01 6198 /lib/tls/i686/cmov/libnss_nis-2.9.so
+b7528000-b7529000 rwxp 00009000 08:01 6198 /lib/tls/i686/cmov/libnss_nis-2.9.so
+b7529000-b752a000 r-xp 00000000 08:01 13708 /usr/lib/locale/fr_FR.utf8/LC_ADDRESS
+b752a000-b752c000 r-xp 00000000 08:01 9366 /usr/lib/libXcomposite.so.1.0.0
+b752c000-b752d000 r-xp 00001000 08:01 9366 /usr/lib/libXcomposite.so.1.0.0
+b752d000-b752e000 rwxp 00002000 08:01 9366 /usr/lib/libXcomposite.so.1.0.0
+b752e000-b7533000 rwxp b752e000 00:00 0
+b7533000-b753b000 rwxs 00000000 08:01 10893 /tmp/hsperfdata_kevin/9288
+b753b000-b7550000 r-xp 00000000 08:01 6188 /lib/tls/i686/cmov/libnsl-2.9.so
+b7550000-b7551000 r-xp 00014000 08:01 6188 /lib/tls/i686/cmov/libnsl-2.9.so
+b7551000-b7552000 rwxp 00015000 08:01 6188 /lib/tls/i686/cmov/libnsl-2.9.so
+b7552000-b7554000 rwxp b7552000 00:00 0
+b7554000-b7555000 r-xp 00000000 08:01 13713 /usr/lib/locale/fr_FR.utf8/LC_TELEPHONE
+b7555000-b7556000 r-xp 00000000 08:01 13738 /usr/lib/locale/fr_FR.utf8/LC_MEASUREMENT
+b7556000-b755d000 r-xp 00000000 08:01 6190 /lib/tls/i686/cmov/libnss_compat-2.9.so
+b755d000-b755e000 r-xp 00006000 08:01 6190 /lib/tls/i686/cmov/libnss_compat-2.9.so
+b755e000-b755f000 rwxp 00007000 08:01 6190 /lib/tls/i686/cmov/libnss_compat-2.9.so
+b755f000-b7565000 r-xp 00000000 08:01 83645 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/native_threads/libhpi.so
+b7565000-b7566000 rwxp 00006000 08:01 83645 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/native_threads/libhpi.so
+b7566000-b7589000 r-xp 00000000 08:01 83656 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/libjava.so
+b7589000-b758b000 rwxp 00023000 08:01 83656 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/libjava.so
+b758b000-b7592000 r-xp 00000000 08:01 6207 /lib/tls/i686/cmov/librt-2.9.so
+b7592000-b7593000 r-xp 00006000 08:01 6207 /lib/tls/i686/cmov/librt-2.9.so
+b7593000-b7594000 rwxp 00007000 08:01 6207 /lib/tls/i686/cmov/librt-2.9.so
+b7594000-b7597000 ---p b7594000 00:00 0
+b7597000-b75e5000 rwxp b7597000 00:00 0
+b75e5000-b7609000 r-xp 00000000 08:01 6185 /lib/tls/i686/cmov/libm-2.9.so
+b7609000-b760a000 r-xp 00023000 08:01 6185 /lib/tls/i686/cmov/libm-2.9.so
+b760a000-b760b000 rwxp 00024000 08:01 6185 /lib/tls/i686/cmov/libm-2.9.so
+b760b000-b7a70000 r-xp 00000000 08:01 83651 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/client/libjvm.so
+b7a70000-b7a90000 rwxp 00465000 08:01 83651 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/client/libjvm.so
+b7a90000-b7eb1000 rwxp b7a90000 00:00 0
+b7eb1000-b800d000 r-xp 00000000 08:01 6177 /lib/tls/i686/cmov/libc-2.9.so
+b800d000-b800e000 ---p 0015c000 08:01 6177 /lib/tls/i686/cmov/libc-2.9.so
+b800e000-b8010000 r-xp 0015c000 08:01 6177 /lib/tls/i686/cmov/libc-2.9.so
+b8010000-b8011000 rwxp 0015e000 08:01 6177 /lib/tls/i686/cmov/libc-2.9.so
+b8011000-b8014000 rwxp b8011000 00:00 0
+b8014000-b8016000 r-xp 00000000 08:01 6183 /lib/tls/i686/cmov/libdl-2.9.so
+b8016000-b8017000 r-xp 00001000 08:01 6183 /lib/tls/i686/cmov/libdl-2.9.so
+b8017000-b8018000 rwxp 00002000 08:01 6183 /lib/tls/i686/cmov/libdl-2.9.so
+b8018000-b801f000 r-xp 00000000 08:01 83658 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/jli/libjli.so
+b801f000-b8021000 rwxp 00006000 08:01 83658 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/jli/libjli.so
+b8021000-b8022000 rwxp b8021000 00:00 0
+b8022000-b8037000 r-xp 00000000 08:01 6203 /lib/tls/i686/cmov/libpthread-2.9.so
+b8037000-b8038000 r-xp 00014000 08:01 6203 /lib/tls/i686/cmov/libpthread-2.9.so
+b8038000-b8039000 rwxp 00015000 08:01 6203 /lib/tls/i686/cmov/libpthread-2.9.so
+b8039000-b803b000 rwxp b8039000 00:00 0
+b803b000-b803c000 r-xp 00000000 08:01 13711 /usr/lib/locale/fr_FR.utf8/LC_IDENTIFICATION
+b803c000-b803e000 r-xp 00000000 08:01 9384 /usr/lib/libXinerama.so.1.0.0
+b803e000-b803f000 rwxp 00001000 08:01 9384 /usr/lib/libXinerama.so.1.0.0
+b803f000-b8040000 rwxp b803f000 00:00 0
+b8040000-b8041000 r-xp b8040000 00:00 0
+b8041000-b804c000 r-xp 00000000 08:01 83655 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/libverify.so
+b804c000-b804d000 rwxp 0000b000 08:01 83655 /usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/libverify.so
+b804d000-b804f000 rwxp b804d000 00:00 0
+b804f000-b8050000 r-xp b804f000 00:00 0 [vdso]
+b8050000-b806c000 r-xp 00000000 08:01 2557 /lib/ld-2.9.so
+b806c000-b806d000 r-xp 0001b000 08:01 2557 /lib/ld-2.9.so
+b806d000-b806e000 rwxp 0001c000 08:01 2557 /lib/ld-2.9.so
+bff59000-bff6e000 rwxp bffeb000 00:00 0 [stack]
+
+VM Arguments:
+jvm_args: -Xmx512m -Dcatalina.base=/home/kevin/Workspaces/NetBeansProjects/guix/trunk/guix-test-gwt/target/tomcat
+java_command: com.google.gwt.dev.GWTShell -gen /home/kevin/Workspaces/NetBeansProjects/guix/trunk/guix-test-gwt/target/.generated -logLevel INFO -style DETAILED -out /home/kevin/Workspaces/NetBeansProjects/guix/trunk/guix-test-gwt/target/guix-test-gwt-1.0.0-SNAPSHOT -port 8888 org.nuiton.guix.Index/Index.html
+Launcher Type: SUN_STANDARD
+
+Environment Variables:
+JAVA_HOME=/usr/lib/jvm/java-6-sun
+PATH=/home/kevin/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
+USERNAME=kevin
+LD_LIBRARY_PATH=/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/../lib/i386
+SHELL=/bin/bash
+DISPLAY=:0.0
+
+Signal Handlers:
+SIGSEGV: [libjvm.so+0x3fc070], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
+SIGBUS: [libjvm.so+0x3fc070], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
+SIGFPE: [libjvm.so+0x325d30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
+SIGPIPE: SIG_IGN, sa_mask[0]=0x00001000, sa_flags=0x10000000
+SIGXFSZ: [libjvm.so+0x325d30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
+SIGILL: [libjvm.so+0x325d30], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
+SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
+SIGUSR2: [libjvm.so+0x328920], sa_mask[0]=0x00000004, sa_flags=0x10000004
+SIGHUP: [libjvm.so+0x328650], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
+SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000
+SIGTERM: [libjvm.so+0x328650], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
+SIGQUIT: [libjvm.so+0x328650], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
+
+
+--------------- S Y S T E M ---------------
+
+OS:5.0
+
+uname:Linux 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686
+libc:glibc 2.9 NPTL 2.9
+rlimit: STACK 8192k, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity
+load average:1,13 1,27 1,32
+
+CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 127 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, mmxext, 3dnow, 3dnowext
+
+Memory: 4k page, physical 1930940k(77652k free), swap 5574512k(5563592k free)
+
+vm_info: Java HotSpot(TM) Client VM (14.0-b16) for linux-x86 JRE (1.6.0_14-b08), built on May 21 2009 02:01:47 by "java_re" with gcc 3.2.1-7a (J2SE release)
+
+time: Thu Jul 23 10:51:53 2009
+elapsed time: 111 seconds
+
Modified: trunk/guix-test-gwt/nbactions.xml
===================================================================
--- trunk/guix-test-gwt/nbactions.xml 2009-07-23 10:50:01 UTC (rev 1513)
+++ trunk/guix-test-gwt/nbactions.xml 2009-07-23 10:51:11 UTC (rev 1514)
@@ -7,4 +7,12 @@
<goal>gwt-maven:gwt</goal>
</goals>
</action>
+ <action>
+ <actionName>CUSTOM-clean gwt-maven:gwt</actionName>
+ <displayName>clean gwt-maven:gwt</displayName>
+ <goals>
+ <goal>clean</goal>
+ <goal>gwt-maven:gwt</goal>
+ </goals>
+ </action>
</actions>
Modified: trunk/guix-test-gwt/pom.xml
===================================================================
--- trunk/guix-test-gwt/pom.xml 2009-07-23 10:50:01 UTC (rev 1513)
+++ trunk/guix-test-gwt/pom.xml 2009-07-23 10:51:11 UTC (rev 1514)
@@ -57,8 +57,27 @@
<description>Guix test for GWT</description>
<build>
+ <resources>
+ <resource>
+ <directory>${project.basedir}/src/main/java</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>${project.basedir}/src/main/resources</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>${project.basedir}/target/generatedFiles</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ </resources>
<plugins>
-
<!-- plugin i18n -->
<plugin>
<groupId>org.nuiton</groupId>
@@ -153,8 +172,8 @@
<artifactId>maven-guix-plugin</artifactId>
<version>${project.version}</version>
<configuration>
- <guixFilesDir>guix-test-gwt/src/main/java/org/nuiton/guix/demo/</guixFilesDir>
- <targetDirectory>guix-test-gwt/target/generatedFiles/</targetDirectory>
+ <guixFilesDir>${project.basedir}/src/main/java/org/nuiton/guix/demo/</guixFilesDir>
+ <targetDirectory>${project.basedir}/target/generatedFiles/</targetDirectory>
<rootPackage>org.nuiton.guix</rootPackage>
<mainClass>org.nuiton.guix.GuixDemo</mainClass>
<launcherName>org.nuiton.guix.Index</launcherName>
@@ -162,9 +181,8 @@
</configuration>
<executions>
<execution>
- <phase>compile</phase>
<goals>
- <goal>testMojo</goal>
+ <goal>generate</goal>
</goals>
</execution>
</executions>
Deleted: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/Index.gwt.xml
===================================================================
--- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/Index.gwt.xml 2009-07-23 10:50:01 UTC (rev 1513)
+++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/Index.gwt.xml 2009-07-23 10:51:11 UTC (rev 1514)
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?><module><!--Inherit the core Web Toolkit stuff.--><inherits name="com.google.gwt.user.User" />
- <inherits name="com.google.gwt.user.theme.dark.Dark" /><!--Specify the app entry point class.--><entry-point class="org.nuiton.guix.client.GuixDemoImpl" /><!--Specify the application specific style sheet.--><stylesheet src="GuixDemo.css" />
-</module>
\ 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-23 10:50:01 UTC (rev 1513)
+++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/demo/GuixDemo.css 2009-07-23 10:51:11 UTC (rev 1514)
@@ -1,16 +1,29 @@
#button:{object . getText( ) . startsWith( "-" )}
{
foreground: red;
-}
-
-#label
-{
- background : blue;
-}
-
+}
-.bold
-{
- font-weight : bold;
-}
-
+#label
+{
+ background : blue;
+}
+
+
+.bold
+{
+ font-weight : bold;
+}
+
+.Table
+{
+ border : 3px groove #FFF;
+}
+.Row
+{
+ border : 2px groove red;
+}
+.Cell
+{
+ border : 1px groove green;
+}
+
Modified: trunk/guix-test-gwt/src/main/java/org/nuiton/guix/demo/GuixDemo2.guix
===================================================================
--- trunk/guix-test-gwt/src/main/java/org/nuiton/guix/demo/GuixDemo2.guix 2009-07-23 10:50:01 UTC (rev 1513)
+++ trunk/guix-test-gwt/src/main/java/org/nuiton/guix/demo/GuixDemo2.guix 2009-07-23 10:51:11 UTC (rev 1514)
@@ -1,11 +1,11 @@
<?xml version='1.0' encoding='UTF-8' ?>
<!-- test javadoc Application -->
-<gwt:FlowPanel xmlns:gwt='com.google.gwt.user.client.ui.*'>
+<Panel>
<script>
public enum Day {
SUNDAY, MONDAY, TUESDAY, WEDNESDAY,
THURSDAY, FRIDAY, SATURDAY
}
</script>
- <gwt:ToggleButton id="button" constructor='"Up","Down"' down ="true" onClick='{System.out.println("hey dude !")}'/>
-</gwt:FlowPanel>
+ <ToggleButton id="button" constructor='"Up","Down"' down ="true" onClick='{System.out.println("hey dude !")}'/>
+</Panel>
1
0
[Buix-commits] r1513 - trunk/guix-compiler-swing
by kmorin@users.labs.libre-entreprise.org 23 Jul '09
by kmorin@users.labs.libre-entreprise.org 23 Jul '09
23 Jul '09
Author: kmorin
Date: 2009-07-23 12:50:01 +0200 (Thu, 23 Jul 2009)
New Revision: 1513
Modified:
trunk/guix-compiler-swing/pom.xml
Log:
Removed the unuseful dependencies
Modified: trunk/guix-compiler-swing/pom.xml
===================================================================
--- trunk/guix-compiler-swing/pom.xml 2009-07-23 10:49:33 UTC (rev 1512)
+++ trunk/guix-compiler-swing/pom.xml 2009-07-23 10:50:01 UTC (rev 1513)
@@ -27,11 +27,6 @@
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</dependency>
-
- <dependency>
- <groupId>net.java.dev.beansbinding</groupId>
- <artifactId>beansbinding</artifactId>
- </dependency>
<dependency>
<groupId>xpp3</groupId>
1
0
[Buix-commits] r1512 - trunk/guix-compiler-gwt/src/main/java/org/nuiton/guix/generator
by kmorin@users.labs.libre-entreprise.org 23 Jul '09
by kmorin@users.labs.libre-entreprise.org 23 Jul '09
23 Jul '09
Author: kmorin
Date: 2009-07-23 12:49:33 +0200 (Thu, 23 Jul 2009)
New Revision: 1512
Modified:
trunk/guix-compiler-gwt/src/main/java/org/nuiton/guix/generator/GwtConfigGenerator.java
trunk/guix-compiler-gwt/src/main/java/org/nuiton/guix/generator/GwtGenerator.java
trunk/guix-compiler-gwt/src/main/java/org/nuiton/guix/generator/GwtGenerator1.java
Log:
Added a list of cssfiles to the model object, in order to copy them to the target directory for GWT
Modified: trunk/guix-compiler-gwt/src/main/java/org/nuiton/guix/generator/GwtConfigGenerator.java
===================================================================
--- trunk/guix-compiler-gwt/src/main/java/org/nuiton/guix/generator/GwtConfigGenerator.java 2009-07-23 10:49:18 UTC (rev 1511)
+++ trunk/guix-compiler-gwt/src/main/java/org/nuiton/guix/generator/GwtConfigGenerator.java 2009-07-23 10:49:33 UTC (rev 1512)
@@ -21,6 +21,7 @@
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
+import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.nuiton.guix.model.GuixModelObject;
@@ -37,6 +38,8 @@
/** GuixModelObject representing the main class */
private GuixModelObject gmo;
+ /** List of the CSS files needed of the generation */
+ protected List<File> cssFiles;
/** log */
private Log log = LogFactory.getLog(GwtConfigGenerator.class);
@@ -45,8 +48,9 @@
*
* @param gmo GuixModelObject representing the class to generate
*/
- public GwtConfigGenerator(GuixModelObject gmo) {
+ public GwtConfigGenerator(GuixModelObject gmo, List<File> cssFiles) {
this.gmo = gmo;
+ this.cssFiles = cssFiles;
}
/**
@@ -66,31 +70,34 @@
serializer.setProperty("http://xmlpull.org/v1/doc/properties.html#serializer-indentation", "\t");
serializer.startTag("", "module");
- serializer.comment("Inherit the core Web Toolkit stuff.");
- serializer.startTag("", "inherits");
- serializer.attribute("", "name", "com.google.gwt.user.User");
- serializer.endTag("","inherits");
+ serializer.comment("Inherit the core Web Toolkit stuff.");
+ serializer.startTag("", "inherits");
+ serializer.attribute("", "name", "com.google.gwt.user.User");
+ serializer.endTag("","inherits");
- serializer.startTag("", "inherits");
+ serializer.startTag("", "inherits");
int i = 0;
while(i < gmo.getAttributeDescriptors().size()
- && !gmo.getAttributeDescriptors().get(i).getName().equals("theme"))
+ && !gmo.getAttributeDescriptors().get(i).getName().equals("theme")) {
i++;
- serializer.attribute("", "name", i < gmo.getAttributeDescriptors().size() ?
- gmo.getAttributeDescriptors().get(i).getValue()
- : "com.google.gwt.user.theme.standard.Standard");
- serializer.endTag("","inherits");
+ }
+ serializer.attribute("", "name", i < gmo.getAttributeDescriptors().size() ?
+ gmo.getAttributeDescriptors().get(i).getValue()
+ : "com.google.gwt.user.theme.standard.Standard");
+ serializer.endTag("","inherits");
- serializer.comment("Specify the app entry point class.");
- serializer.startTag("","entry-point");
- serializer.attribute("", "class", gmo.getClassDescriptor().getPackageName()
- + ".client." + gmo.getClassDescriptor().getName() + "Impl");
- serializer.endTag("","entry-point");
+ serializer.comment("Specify the app entry point class.");
+ serializer.startTag("","entry-point");
+ serializer.attribute("", "class", gmo.getClassDescriptor().getPackageName()
+ + ".client." + gmo.getClassDescriptor().getName() + "Impl");
+ serializer.endTag("","entry-point");
- serializer.comment("Specify the application specific style sheet.");
+ serializer.comment("Specify the application specific style sheet.");
+ for(File f : cssFiles) {
serializer.startTag("", "stylesheet");
- serializer.attribute("","src",gmo.getClassDescriptor().getName() + ".css");
+ serializer.attribute("","src", f.getName());
serializer.endTag("", "stylesheet");
+ }
serializer.endTag("", "module");
serializer.endDocument();
Modified: trunk/guix-compiler-gwt/src/main/java/org/nuiton/guix/generator/GwtGenerator.java
===================================================================
--- trunk/guix-compiler-gwt/src/main/java/org/nuiton/guix/generator/GwtGenerator.java 2009-07-23 10:49:18 UTC (rev 1511)
+++ trunk/guix-compiler-gwt/src/main/java/org/nuiton/guix/generator/GwtGenerator.java 2009-07-23 10:49:33 UTC (rev 1512)
@@ -20,6 +20,10 @@
import com.google.gwt.user.client.ui.Label;
import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.FileReader;
+import java.io.FileWriter;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
@@ -76,7 +80,7 @@
if (mainClass) {
gimg.addMainMethod();
- GwtConfigGenerator gcg = new GwtConfigGenerator(gmo);
+ GwtConfigGenerator gcg = new GwtConfigGenerator(gmo, getCSSFiles());
GwtHtmlGenerator ghg = new GwtHtmlGenerator(gmo, launcherName);
File outConfigMain = new File(destDir, launcherName.substring(launcherName.lastIndexOf('.') + 1) + ".gwt.xml");
File publicDir = new File(destDir, "public");
@@ -85,6 +89,25 @@
}
File outHtmlMain = new File(publicDir, launcherName.substring(launcherName.lastIndexOf('.') + 1) + ".html");
gcg.generate(outConfigMain);
+ for(File f : getCSSFiles()) {
+ try {
+ File fPublic = new File(publicDir, f.getName());
+ fPublic.createNewFile();
+ FileInputStream fis = new FileInputStream(f);
+ FileOutputStream fos = new FileOutputStream(fPublic);
+ // segment size : 0.5Mo
+ byte buffer[] = new byte[512*1024];
+ int read;
+ while((read = fis.read(buffer)) != -1) {
+ fos.write(buffer, 0, read);
+ }
+ fis.close();
+ fos.close();
+ }
+ catch(IOException eee) {
+ log.error(eee);
+ }
+ }
ghg.generate(outHtmlMain);
}
Modified: trunk/guix-compiler-gwt/src/main/java/org/nuiton/guix/generator/GwtGenerator1.java
===================================================================
--- trunk/guix-compiler-gwt/src/main/java/org/nuiton/guix/generator/GwtGenerator1.java 2009-07-23 10:49:18 UTC (rev 1511)
+++ trunk/guix-compiler-gwt/src/main/java/org/nuiton/guix/generator/GwtGenerator1.java 2009-07-23 10:49:33 UTC (rev 1512)
@@ -75,7 +75,7 @@
if (mainClass) {
gimg.addMainMethod();
- GwtConfigGenerator gcg = new GwtConfigGenerator(gmo);
+ GwtConfigGenerator gcg = new GwtConfigGenerator(gmo, getCSSFiles());
GwtHtmlGenerator ghg = new GwtHtmlGenerator(gmo, launcherName);
File outConfigMain = new File(destDir, launcherName.substring(launcherName.lastIndexOf('.') + 1) + ".gwt.xml");
File publicDir = new File(destDir, "public");
1
0
[Buix-commits] r1511 - in trunk/guix-compiler/src/main/java/org/nuiton/guix: . compiler generator model tags
by kmorin@users.labs.libre-entreprise.org 23 Jul '09
by kmorin@users.labs.libre-entreprise.org 23 Jul '09
23 Jul '09
Author: kmorin
Date: 2009-07-23 12:49:18 +0200 (Thu, 23 Jul 2009)
New Revision: 1511
Modified:
trunk/guix-compiler/src/main/java/org/nuiton/guix/GuixLauncher.java
trunk/guix-compiler/src/main/java/org/nuiton/guix/compiler/GuixCompiler.java
trunk/guix-compiler/src/main/java/org/nuiton/guix/generator/Generator.java
trunk/guix-compiler/src/main/java/org/nuiton/guix/generator/GuixGenerator.java
trunk/guix-compiler/src/main/java/org/nuiton/guix/model/GuixModelObject.java
trunk/guix-compiler/src/main/java/org/nuiton/guix/tags/StyleHandler.java
Log:
Added a list of cssfiles to the model object, in order to copy them to the target directory for GWT
Modified: trunk/guix-compiler/src/main/java/org/nuiton/guix/GuixLauncher.java
===================================================================
--- trunk/guix-compiler/src/main/java/org/nuiton/guix/GuixLauncher.java 2009-07-23 10:48:07 UTC (rev 1510)
+++ trunk/guix-compiler/src/main/java/org/nuiton/guix/GuixLauncher.java 2009-07-23 10:49:18 UTC (rev 1511)
@@ -64,27 +64,37 @@
protected List<String> guixFileClassNames = new ArrayList<String>();
/** Maps the root GuixModelObjects being compiled to the compiler instance
* handling the compilation. */
- protected Map<GuixModelObject, Long> rootModelObjects =
- new HashMap<GuixModelObject, Long>();
+ protected Map<GuixModelObject, Long> rootModelObjects = new HashMap<GuixModelObject, Long>();
/** CLassDescriptor met during the compilation */
- protected List<ClassDescriptor> classDescriptors =
- new ArrayList<ClassDescriptor>();
+ protected List<ClassDescriptor> classDescriptors = new ArrayList<ClassDescriptor>();
+ /** List of the compiled files */
private List<File> compiledFiles = new ArrayList<File>();
- private Map<GuixGenerator,JavaFile> generatedFiles = new HashMap<GuixGenerator,JavaFile>();
- protected int compilerCount;
+ /** Maps the generator with the generated JavaFile */
+ private Map<GuixGenerator, JavaFile> generatedFiles = new HashMap<GuixGenerator, JavaFile>();
+ /** Directory where to save the generated files */
private File targetDirectory;
+ /** Root package */
private String rootPackage;
+ /** Main class of the generated application */
private String mainClass;
- private Class generatorClass;
+ /** Class of teh generator to use */
+ private Class<? extends GuixGenerator> generatorClass;
+ /** Name of the class that will launch the application */
private String launcherName;
/**
* Constructor
*
* @param files the files to compile
+ * @param targetDirectory the directory where to save the generated files
+ * @param rootPackage teh root package
+ * @param baseDir directory containing the files to compile
+ * @param mainClass main class of the application
+ * @param generatorClass class of the generator
+ * @param launcherName name of the class that will launch the application
*/
public GuixLauncher(File[] files, File targetDirectory, String rootPackage,
- File baseDir, String mainClass, Class generatorClass, String launcherName) {
+ File baseDir, String mainClass, Class<? extends GuixGenerator> generatorClass, String launcherName) {
// Set up a simple configuration that logs on the console.
this.files = files;
this.targetDirectory = targetDirectory;
@@ -94,7 +104,7 @@
for (int i = 0; i < files.length; i++) {
String path = files[i].getAbsolutePath();
if (baseDir != null) {
- classNames[i] = rootPackage + "." + path.substring(baseDir.getAbsolutePath().length() + 1,
+ classNames[i] = (rootPackage.length() > 0 ? rootPackage + "." : "") + path.substring(baseDir.getAbsolutePath().length() + 1,
path.lastIndexOf('.')).replace(File.separatorChar, '.');
}
else {
@@ -111,13 +121,12 @@
}
/**
- * Compiled a set of files.
+ * Compiles a set of files.
*
* @return <code>true</code> if compilation succeeds,
* <code>false</code> otherwise
*/
public synchronized boolean compile() {
- compilerCount = 0;
File destDir = targetDirectory;
if (files != null) {
if (log.isInfoEnabled()) {
@@ -165,7 +174,6 @@
}
//compile the file
GuixCompiler compiler = new GuixCompiler(file, this, classPackage);
-
GuixModelObject rootModelObject = compiler.compile();
rootModelObjects.put(rootModelObject, compiler.getLastModification());
@@ -191,174 +199,164 @@
log.error("The class '" + classDescriptors.get(--i).getName() + "' has no package.");
}
}
- }
-
- if (generatorClass != null) {
- //creates the XML serializer for the spring conf
- XmlPullParserFactory factory =
- XmlPullParserFactory.newInstance(
- System.getProperty(XmlPullParserFactory.PROPERTY_NAME),
- null);
- XmlSerializer serializer = factory.newSerializer();
+ if (generatorClass != null) {
+ //creates the XML serializer for the spring conf
+ XmlPullParserFactory factory =
+ XmlPullParserFactory.newInstance(
+ System.getProperty(XmlPullParserFactory.PROPERTY_NAME),
+ null);
+ XmlSerializer serializer = factory.newSerializer();
- File config = new File(targetDirectory,"config.xml");
+ File config = new File(targetDirectory, "config.xml");
- serializer.setOutput(new PrintWriter(config));
- serializer.startDocument("UTF-8", null);
- serializer.setProperty("http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n");
- serializer.setProperty("http://xmlpull.org/v1/doc/properties.html#serializer-indentation", "\t");
- serializer.text("\n");
- serializer.docdecl(" beans SYSTEM \"http://www.springframework.org/dtd/spring-beans.dtd\"");
- serializer.text("\n");
- serializer.startTag("", "beans");
-
- for (GuixModelObject mo : rootModelObjects.keySet()) {
- try {
- GuixGenerator gen = (GuixGenerator) generatorClass.newInstance();
- gen.setDestDir(destDir);
- gen.setGmo(mo);
- gen.setLastModification(rootModelObjects.get(mo));
- gen.setMainClass((mo.getClassDescriptor().getPackageName() + "." + mo.getClassDescriptor().getName()).equals(mainClass));
- gen.setSerializer(serializer);
- gen.setClasses(Arrays.asList(classNames));
- gen.setLauncherName(launcherName);
- generatedFiles.put(gen,gen.generate());
+ serializer.setOutput(new PrintWriter(config));
+ serializer.startDocument("UTF-8", null);
+ serializer.setProperty("http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n");
+ serializer.setProperty("http://xmlpull.org/v1/doc/properties.html#serializer-indentation", "\t");
+ serializer.text("\n");
+ serializer.docdecl(" beans SYSTEM \"http://www.springframework.org/dtd/spring-beans.dtd\"");
+ serializer.text("\n");
+ serializer.startTag("", "beans");
+
+ for (GuixModelObject mo : rootModelObjects.keySet()) {
+ try {
+ GuixGenerator gen = (GuixGenerator) generatorClass.newInstance();
+ gen.setDestDir(destDir);
+ gen.setGmo(mo);
+ gen.setLastModification(rootModelObjects.get(mo));
+ gen.setMainClass((mo.getClassDescriptor().getPackageName() + "." + mo.getClassDescriptor().getName()).equals(mainClass));
+ gen.setSerializer(serializer);
+ gen.setClasses(Arrays.asList(classNames));
+ gen.setLauncherName(launcherName);
+ gen.setCSSFiles(mo.getCssFiles());
+ JavaFile generatedFile = gen.generate();
+ if(generatedFile != null) {
+ generatedFiles.put(gen, generatedFile);
+ }
+ }
+ catch (InstantiationException eee) {
+ if (log.isErrorEnabled()) {
+ log.error(eee);
+ }
+ }
+ catch (IllegalAccessException eee) {
+ if (log.isErrorEnabled()) {
+ log.error(eee);
+ }
+ }
}
- catch (InstantiationException eee) {
- if(log.isErrorEnabled())
- log.error(eee);
- }
- catch (IllegalAccessException eee) {
- if(log.isErrorEnabled())
- log.error(eee);
- }
- }
- for(GuixGenerator gen : generatedFiles.keySet()) {
- int dataSourceNumber = 0;
- StringBuffer dbCreation = new StringBuffer();
- StringBuffer dbDeletion = new StringBuffer();
- StringBuffer dbProcess = new StringBuffer();
- JavaFile jf = generatedFiles.get(gen);
- for(String field : gen.getBindingsToGenerate().keySet()) {
- for(String attr : gen.getBindingsToGenerate().get(field).keySet()) {
- dbCreation.append(dbCreation.length() != 0 ? "else if(\"" : "if(\"").append(field)
- .append(".").append(attr)
- .append("\".equals(_binding)) {\n");
- dbDeletion.append(dbDeletion.length() != 0 ? "else if(\"" : "if(\"").append(field)
- .append(".").append(attr)
- .append("\".equals(_binding)) {\n");
- dbProcess.append(dbProcess.length() != 0 ? "else if(\"" : "if(\"").append(field)
- .append(".").append(attr)
- .append("\".equals(_binding)) {\n")
- .append(field).append(".set")
- .append(Character.toUpperCase(attr.charAt(0)))
- .append(attr.substring(1))
- .append("(");
- List<String[]> bindings = new ArrayList<String[]>();
- JavaParser p = new JavaParser(new StringReader(gen.getBindingsToGenerate().get(field).get(attr)));
- //start parsing
- while (!p.Line()) {
- SimpleNode node = p.popNode();
- if (node != null) {
- for(String s : browseNode(node)) {
- List<String> l = new ArrayList<String>();
- int parOuvertes = 0;
- StringBuffer read = new StringBuffer();
- for(char c : s.toCharArray()) {
- if(c == '(') {
- parOuvertes++;
- read.append(c);
- }
- else if(c == ')') {
- parOuvertes--;
- read.append(c);
- }
- else if(c == '.') {
- if(parOuvertes == 0) {
- l.add(read.toString());
- read = new StringBuffer();
+ for (GuixGenerator gen : generatedFiles.keySet()) {
+ int dataSourceNumber = 0;
+ StringBuffer dbCreation = new StringBuffer();
+ StringBuffer dbDeletion = new StringBuffer();
+ StringBuffer dbProcess = new StringBuffer();
+ JavaFile jf = generatedFiles.get(gen);
+ for (String field : gen.getBindingsToGenerate().keySet()) {
+ for (String attr : gen.getBindingsToGenerate().get(field).keySet()) {
+ dbCreation.append(dbCreation.length() != 0 ? "else if(\"" : "if(\"").append(field).append(".").append(attr).append("\".equals(_binding)) {\n");
+ dbDeletion.append(dbDeletion.length() != 0 ? "else if(\"" : "if(\"").append(field).append(".").append(attr).append("\".equals(_binding)) {\n");
+ dbProcess.append(dbProcess.length() != 0 ? "else if(\"" : "if(\"").append(field).append(".").append(attr).append("\".equals(_binding)) {\n").append(field).append(".set").append(Character.toUpperCase(attr.charAt(0))).append(attr.substring(1)).append("(");
+ List<String[]> bindings = new ArrayList<String[]>();
+ JavaParser p = new JavaParser(new StringReader(gen.getBindingsToGenerate().get(field).get(attr)));
+ //start parsing
+ while (!p.Line()) {
+ SimpleNode node = p.popNode();
+ if (node != null) {
+ for (String s : browseNode(node)) {
+ List<String> l = new ArrayList<String>();
+ int parOuvertes = 0;
+ StringBuffer read = new StringBuffer();
+ for (char c : s.toCharArray()) {
+ if (c == '(') {
+ parOuvertes++;
+ read.append(c);
}
+ else if (c == ')') {
+ parOuvertes--;
+ read.append(c);
+ }
+ else if (c == '.') {
+ if (parOuvertes == 0) {
+ l.add(read.toString());
+ read = new StringBuffer();
+ }
+ else {
+ read.append(c);
+ }
+ }
else {
read.append(c);
}
}
- else {
- read.append(c);
- }
+ l.add(read.toString());
+ bindings.add(l.toArray(new String[l.size()]));
}
- l.add(read.toString());
- bindings.add(l.toArray(new String[l.size()]));
}
}
- }
- List<Class> listeners = new ArrayList<Class>();
- for(String[] binding : bindings) {
- StringBuffer methodToInvoke = new StringBuffer();
- StringBuffer oldBinding = new StringBuffer();
- for(String s : binding) {
- log.info("old : " + s);
- methodToInvoke.append(s.replaceAll("\\W", ""));
- oldBinding.append(s).append(".");
- }
- oldBinding.setLength(oldBinding.length() - 1);
- listeners.addAll(gen.generateBindings(dbCreation, dbDeletion, null, jf, null, binding, 0, null, methodToInvoke.toString(), generatedFiles));
- //JavaArgument[] args = new JavaArgument[]{new JavaArgument(parameterType.getName(), "event")};
- StringBuffer newBinding = new StringBuffer();
- for(String s : binding) {
- log.info("new : " + s);
- newBinding.append(s).append(".");
- }
- newBinding.setLength(newBinding.length() - 1);
- log.info(gen.getBindingsToGenerate().get(field).get(attr) + " : " + oldBinding + " - " + newBinding.toString());
- gen.getBindingsToGenerate().get(field)
- .put(attr, gen.getBindingsToGenerate().get(field).get(attr).replace(oldBinding.toString(), newBinding.toString()));
+ List<Class> listeners = new ArrayList<Class>();
+ for (String[] binding : bindings) {
+ StringBuffer methodToInvoke = new StringBuffer();
+ StringBuffer oldBinding = new StringBuffer();
+ for (String s : binding) {
+ methodToInvoke.append(s.replaceAll("\\W", ""));
+ oldBinding.append(s).append(".");
+ }
+ oldBinding.setLength(oldBinding.length() - 1);
+ listeners.addAll(gen.generateBindings(dbCreation, dbDeletion, null, jf, null, binding, 0, null, methodToInvoke.toString(), generatedFiles));
+ //JavaArgument[] args = new JavaArgument[]{new JavaArgument(parameterType.getName(), "event")};
+ StringBuffer newBinding = new StringBuffer();
+ for (String s : binding) {
+ newBinding.append(s).append(".");
+ }
+ newBinding.setLength(newBinding.length() - 1);
+ gen.getBindingsToGenerate().get(field).put(attr, gen.getBindingsToGenerate().get(field).get(attr).replace(oldBinding.toString(), newBinding.toString()));
- if (jf.getMethod("onChangeFrom" + methodToInvoke, /*args*/null) == null) {
- jf.addMethod(new JavaMethod(Modifier.PUBLIC, "void", "onChangeFrom" + methodToInvoke.toString(), /*args*/null, null, /*"_DataSource" + dataSourceNumber + ".propertyChange(null);"*/"processDataBinding(\"" + field + "." + attr + "\");", null));
+ if (jf.getMethod("onChangeFrom" + methodToInvoke, /*args*/ null) == null) {
+ jf.addMethod(new JavaMethod(Modifier.PUBLIC, "void", "onChangeFrom" + methodToInvoke.toString(), /*args*/ null, null, /*"_DataSource" + dataSourceNumber + ".propertyChange(null);"*/ "processDataBinding(\"" + field + "." + attr + "\");", null));
+ }
+ else {
+ jf.getMethod("onChangeFrom" + methodToInvoke.toString(), /*args*/ null).appendBodyCode(/*"_DataSource" + dataSourceNumber + ".propertyChange(null);"*/"processDataBinding(\"" + field + "." + attr + "\");", "\n");
+ }
}
- else {
- jf.getMethod("onChangeFrom" + methodToInvoke.toString(), /*args*/null).appendBodyCode(/*"_DataSource" + dataSourceNumber + ".propertyChange(null);"*/"processDataBinding(\"" + field + "." + attr + "\");", "\n");
+ dbCreation.append("}\n");
+ dbDeletion.append("}\n");
+ dbProcess.append(gen.getBindingsToGenerate().get(field).get(attr)).append(");\n}\n");
+ if (listeners != null) {
+ //jf.addField(new JavaField(Modifier.PRIVATE, "java.beans.PropertyChangeListener", "_DataSource" + dataSourceNumber, "new org.nuiton.guix.runtime.DataBindingListener(this,\"" + field + "." + attr + "\")", null, null));
+ jf.getMethod("initDataBinding", null).appendBodyCode("applyDataBinding(\"" + field + "." + attr + "\");", "\n");
+ for (Class listener : listeners) {
+ final List<Method> listenerMethods = Arrays.asList(listener.getMethods());
+ Class parameterType = listenerMethods.get(0).getParameterTypes()[0];
+ }
}
+ dataSourceNumber++;
}
- dbCreation.append("}\n");
- dbDeletion.append("}\n");
- dbProcess.append(gen.getBindingsToGenerate().get(field).get(attr))
- .append(");\n}\n");
- if(listeners != null) {
- //jf.addField(new JavaField(Modifier.PRIVATE, "java.beans.PropertyChangeListener", "_DataSource" + dataSourceNumber, "new org.nuiton.guix.runtime.DataBindingListener(this,\"" + field + "." + attr + "\")", null, null));
- jf.getMethod("initDataBinding", null).appendBodyCode("applyDataBinding(\"" + field + "." + attr + "\");", "\n");
- for(Class listener : listeners) {
- final List<Method> listenerMethods = Arrays.asList(listener.getMethods());
- Class parameterType = listenerMethods.get(0).getParameterTypes()[0];
- }
- }
- dataSourceNumber++;
}
+ if (generatedFiles.get(jf.getSuperClass()) != null) {
+ dbCreation.append("else {\nsuper.applyDataBinding(_binding);\n" +
+ "return;\n}");
+ dbDeletion.append("\nelse {\nsuper.removeDataBinding(_binding);\n}\n");
+ }
+ dbCreation.append("\nprocessDataBinding(_binding);");
+ dbProcess.insert(0, "if (activeBindings.contains(_binding)) {\n" +
+ "return;\n}\n" +
+ "activeBindings.add(_binding);\ntry{\n");
+ dbProcess.append("\n} finally {\nactiveBindings.remove(_binding);\n}\n");
+ jf.addField(new JavaField(Modifier.PRIVATE, "java.util.List<String>", "activeBindings", "new java.util.ArrayList<String>()", "List of the active bindings", null), false);
+ jf.addMethod(new JavaMethod(Modifier.PUBLIC, "void", "applyDataBinding", new JavaArgument[]{new JavaArgument("String", "_binding")}, null, dbCreation.toString(), null));
+ jf.addMethod(new JavaMethod(Modifier.PUBLIC, "void", "removeDataBinding", new JavaArgument[]{new JavaArgument("String", "_binding")}, null, dbDeletion.toString(), null));
+ jf.addMethod(new JavaMethod(Modifier.PUBLIC, "void", "processDataBinding", new JavaArgument[]{new JavaArgument("String", "_binding")}, null, dbProcess.toString(), null));
+ gen.saveFiles();
}
- if(generatedFiles.get(jf.getSuperClass()) != null) {
- dbCreation.append("else {\nsuper.applyDataBinding(_binding);\n" +
- "return;\n}");
- dbDeletion.append("\nelse {\nsuper.removeDataBinding(_binding);\n}\n");
+ serializer.endTag("", "beans");
+ serializer.endDocument();
+ }
+ else {
+ if (log.isWarnEnabled()) {
+ log.warn("No generation language given");
}
- dbCreation.append("\nprocessDataBinding(_binding);");
- dbProcess.insert(0, "if (activeBindings.contains(_binding)) {\n" +
- "return;\n}\n" +
- "activeBindings.add(_binding);\ntry{\n");
- dbProcess.append("\n} finally {\nactiveBindings.remove(_binding);\n}\n");
- jf.addField(new JavaField(Modifier.PRIVATE, "java.util.List<String>", "activeBindings", "new java.util.ArrayList<String>()", "List of the active bindings", null), false);
- jf.addMethod(new JavaMethod(Modifier.PUBLIC, "void", "applyDataBinding", new JavaArgument[]{new JavaArgument("String", "_binding")}, null, dbCreation.toString(), null));
- jf.addMethod(new JavaMethod(Modifier.PUBLIC, "void", "removeDataBinding", new JavaArgument[]{new JavaArgument("String", "_binding")}, null, dbDeletion.toString(), null));
- jf.addMethod(new JavaMethod(Modifier.PUBLIC, "void", "processDataBinding", new JavaArgument[]{new JavaArgument("String", "_binding")}, null, dbProcess.toString(), null));
- gen.saveFiles();
}
- serializer.endTag("", "beans");
- serializer.endDocument();
}
- else {
- if(log.isWarnEnabled()) {
- log.warn("No generation language given");
- }
- }
}
catch (Throwable e) {
e.printStackTrace();
@@ -374,7 +372,6 @@
}
}
-
/**
* Registers a ClassDescriptor
*
@@ -432,10 +429,8 @@
private List<String> browseNode(SimpleNode node) {
List<String> result = new ArrayList<String>();
- for(int i = 0 ; i < node.jjtGetNumChildren() ; i++) {
- if(node.getChild(i).getId() == JavaParserTreeConstants.JJTPRIMARYEXPRESSION
- && !node.getChild(i).getText().trim().startsWith("(")
- && !node.getChild(i).getText().trim().startsWith("\"")) {
+ for (int i = 0; i < node.jjtGetNumChildren(); i++) {
+ if (node.getChild(i).getId() == JavaParserTreeConstants.JJTPRIMARYEXPRESSION && !node.getChild(i).getText().trim().startsWith("(") && !node.getChild(i).getText().trim().startsWith("\"")) {
result.add(node.getChild(i).getText().trim());
}
result.addAll(browseNode(node.getChild(i)));
Modified: trunk/guix-compiler/src/main/java/org/nuiton/guix/compiler/GuixCompiler.java
===================================================================
--- trunk/guix-compiler/src/main/java/org/nuiton/guix/compiler/GuixCompiler.java 2009-07-23 10:48:07 UTC (rev 1510)
+++ trunk/guix-compiler/src/main/java/org/nuiton/guix/compiler/GuixCompiler.java 2009-07-23 10:49:18 UTC (rev 1511)
@@ -174,8 +174,8 @@
File styleFile = new File(src.getParentFile(), className + ".css");
if (styleFile.exists()) {
+ rootMO.getCssFiles().add(styleFile);
StyleSheet ss = styleHandler.autoDetectStyleFile(styleFile);
-
rootMO.getStyleSheets().add(ss);
lastModification = Math.max(lastModification, styleFile.lastModified());
}
@@ -260,6 +260,7 @@
}
if ((styleFile != null) && styleFile.exists()) {
+ rootMO.getCssFiles().add(styleFile);
lastModification = Math.max(lastModification, styleFile.lastModified());
}
Modified: trunk/guix-compiler/src/main/java/org/nuiton/guix/generator/Generator.java
===================================================================
--- trunk/guix-compiler/src/main/java/org/nuiton/guix/generator/Generator.java 2009-07-23 10:48:07 UTC (rev 1510)
+++ trunk/guix-compiler/src/main/java/org/nuiton/guix/generator/Generator.java 2009-07-23 10:49:18 UTC (rev 1511)
@@ -57,6 +57,10 @@
public void setClasses(List<String> classes);
+ public List<File> getCSSFiles();
+
+ public void setCSSFiles(List<File> cssFiles);
+
public String getLauncherName();
public void setLauncherName(String launcherName);
Modified: trunk/guix-compiler/src/main/java/org/nuiton/guix/generator/GuixGenerator.java
===================================================================
--- trunk/guix-compiler/src/main/java/org/nuiton/guix/generator/GuixGenerator.java 2009-07-23 10:48:07 UTC (rev 1510)
+++ trunk/guix-compiler/src/main/java/org/nuiton/guix/generator/GuixGenerator.java 2009-07-23 10:49:18 UTC (rev 1511)
@@ -46,6 +46,8 @@
protected XmlSerializer serializer = null;
/** List of the classes to generate */
protected List<String> classes = null;
+ /** List of the CSS files needed of the generation */
+ protected List<File> cssFiles = null;
/** Name to give to the generated launcher*/
protected String launcherName = null;
/** */
@@ -101,6 +103,15 @@
this.classes = classes;
}
+
+ public List<File> getCSSFiles() {
+ return cssFiles;
+ }
+
+ public void setCSSFiles(List<File> cssFiles) {
+ this.cssFiles = cssFiles;
+ }
+
public String getLauncherName() {
return launcherName;
}
Modified: trunk/guix-compiler/src/main/java/org/nuiton/guix/model/GuixModelObject.java
===================================================================
--- trunk/guix-compiler/src/main/java/org/nuiton/guix/model/GuixModelObject.java 2009-07-23 10:48:07 UTC (rev 1510)
+++ trunk/guix-compiler/src/main/java/org/nuiton/guix/model/GuixModelObject.java 2009-07-23 10:49:18 UTC (rev 1511)
@@ -21,6 +21,7 @@
//~--- JDK imports ------------------------------------------------------------
+import java.io.File;
import java.util.ArrayList;
import java.util.List;
@@ -43,6 +44,12 @@
*/
private List<StyleSheet> styleSheets = new ArrayList<StyleSheet>();
+ /**
+ * The stylesheets files associated to the object
+ * (in case the object is a root model object)
+ */
+ private List<File> cssFiles = new ArrayList<File>();
+
/** The descriptor the class of the object */
private ClassDescriptor classDescriptor;
@@ -139,6 +146,14 @@
this.styleSheets = styleSheets;
}
+ public List<File> getCssFiles() {
+ return cssFiles;
+ }
+
+ public void setCssFiles(List<File> cssFiles) {
+ this.cssFiles = cssFiles;
+ }
+
public String getStyleClass() {
return styleClass;
}
@@ -147,6 +162,3 @@
this.styleClass = styleClass;
}
}
-
-
-//~ Formatted by Jindent --- http://www.jindent.com
Modified: trunk/guix-compiler/src/main/java/org/nuiton/guix/tags/StyleHandler.java
===================================================================
--- trunk/guix-compiler/src/main/java/org/nuiton/guix/tags/StyleHandler.java 2009-07-23 10:48:07 UTC (rev 1510)
+++ trunk/guix-compiler/src/main/java/org/nuiton/guix/tags/StyleHandler.java 2009-07-23 10:49:18 UTC (rev 1511)
@@ -44,6 +44,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import org.nuiton.guix.css.ParseException;
/**
* Handles the <code>style</code> tag.
*
@@ -277,24 +278,31 @@
// parses the CSS
CSSParser p = new CSSParser(new StringReader(stylesheetText));
- SimpleNode node = p.Stylesheet();
- List<Rule> rules = new ArrayList<Rule>();
+ try {
+ SimpleNode node = p.Stylesheet();
+ List<Rule> rules = new ArrayList<Rule>();
- // analyses each rule
- for (int i = 0; i < node.jjtGetNumChildren(); i++) {
- SimpleNode ruleNode = node.getChild(i);
- Rule rule = processRule(ruleNode);
+ // analyses each rule
+ for (int i = 0; i < node.jjtGetNumChildren(); i++) {
+ SimpleNode ruleNode = node.getChild(i);
+ Rule rule = processRule(ruleNode);
+ rules.add(rule);
- rules.add(rule);
- }
+ }
- StyleSheet styleSheet = new StyleSheet();
+ StyleSheet styleSheet = new StyleSheet();
- styleSheet.setRules(rules);
- styleSheet.setSelectors(selectors);
+ styleSheet.setRules(rules);
+ styleSheet.setSelectors(selectors);
- return styleSheet;
-
+ return styleSheet;
+
+ } catch(ParseException eee) {
+ if(log.isWarnEnabled()) {
+ log.warn(eee);
+ }
+ }
+ return null;
}
/**
1
0
Author: kmorin
Date: 2009-07-23 12:48:07 +0200 (Thu, 23 Jul 2009)
New Revision: 1510
Modified:
trunk/pom.xml
Log:
removed the unuseful dependencies
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2009-07-22 13:44:11 UTC (rev 1509)
+++ trunk/pom.xml 2009-07-23 10:48:07 UTC (rev 1510)
@@ -120,12 +120,6 @@
</dependency>
<dependency>
- <groupId>net.java.dev.beansbinding</groupId>
- <artifactId>beansbinding</artifactId>
- <version>1.2.1</version>
- </dependency>
-
- <dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
1
0
[Buix-commits] r1509 - in trunk/guix-test-gwt/src/main/java/org/nuiton/guix: client demo
by kmorin@users.labs.libre-entreprise.org 22 Jul '09
by kmorin@users.labs.libre-entreprise.org 22 Jul '09
22 Jul '09
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>
1
0
[Buix-commits] r1508 - trunk/guix-test-swing/src/main/java/org/nuiton/guix
by kmorin@users.labs.libre-entreprise.org 22 Jul '09
by kmorin@users.labs.libre-entreprise.org 22 Jul '09
22 Jul '09
Author: kmorin
Date: 2009-07-22 15:10:50 +0200 (Wed, 22 Jul 2009)
New Revision: 1508
Added:
trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo.java
trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo2.java
trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo2Abstract.java
trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo2Impl.java
trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo3.java
trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo3Abstract.java
trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo3Impl.java
trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemoAbstract.java
trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemoImpl.java
trunk/guix-test-swing/src/main/java/org/nuiton/guix/Main.java
Log:
example with the binding
Added: trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo.java
===================================================================
--- trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo.java (rev 0)
+++ trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo.java 2009-07-22 13:10:50 UTC (rev 1508)
@@ -0,0 +1,96 @@
+package org.nuiton.guix;
+
+import java.util.ArrayList;
+import javax.swing.JMenuBar;
+import javax.swing.JMenu;
+import javax.swing.JMenuItem;
+import javax.swing.JToolBar;
+import javax.swing.JButton;
+import javax.swing.JTabbedPane;
+import javax.swing.JPanel;
+import javax.swing.JTextField;
+import javax.swing.JLabel;
+import org.nuiton.guix.GuixDemo3Abstract;
+import org.nuiton.guix.GuixDemo2Abstract;
+
+/**
+ * test javadoc Application
+ */
+public interface GuixDemo {
+ /*---------------------------------------------------------------------------------*/
+ /*-- public acessor methods -------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ public JToolBar get$JToolBar5();
+
+ public GuixDemo3Abstract getBt3();
+
+ public GuixDemo3Abstract getBt31();
+
+ public GuixDemo3Abstract getBt32();
+
+ public GuixDemo3Abstract getBt34();
+
+ public ArrayList getController();
+
+ public GuixDemo2Abstract getGd2();
+
+ public GuixDemo2Abstract getGd22();
+
+ public javax.swing.JPanel getTable();
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- public mutator methods -------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ public void set$JToolBar5(JToolBar newValue);
+
+ public void setBt3(GuixDemo3Abstract newValue);
+
+ public void setBt31(GuixDemo3Abstract newValue);
+
+ public void setBt32(GuixDemo3Abstract newValue);
+
+ public void setBt34(GuixDemo3Abstract newValue);
+
+ public void setController(ArrayList newValue);
+
+ public void setGd2(GuixDemo2Abstract newValue);
+
+ public void setGd22(GuixDemo2Abstract newValue);
+
+ public void setTable(javax.swing.JPanel newValue);
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- 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
Added: trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo2.java
===================================================================
--- trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo2.java (rev 0)
+++ trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo2.java 2009-07-22 13:10:50 UTC (rev 1508)
@@ -0,0 +1,41 @@
+package org.nuiton.guix;
+
+import javax.swing.JToggleButton;
+
+/**
+ * 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
Added: trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo2Abstract.java
===================================================================
--- trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo2Abstract.java (rev 0)
+++ trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo2Abstract.java 2009-07-22 13:10:50 UTC (rev 1508)
@@ -0,0 +1,163 @@
+package org.nuiton.guix;
+
+import javax.swing.JToggleButton;
+
+/**
+ * test javadoc Application
+ */
+public abstract class GuixDemo2Abstract extends javax.swing.JPanel implements GuixDemo2 {
+ /**
+ * List of the active bindings
+ */
+ private java.util.List<String> activeBindings = new java.util.ArrayList<String>();
+ /**
+ * test javadoc Application
+ */
+ private javax.swing.JToggleButton button;
+ /**
+ * test javadoc Application
+ */
+ private org.nuiton.guix.GuixDemo2Abstract guixdemo2 = this;
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- Constructors -----------------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ /**
+ * Constructor
+ */
+ public GuixDemo2Abstract() {
+ initialize();
+ }
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- JAXXObject implementation ----------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ public void applyDataBinding(String _binding) {
+ processDataBinding(_binding);
+ }
+
+ public void firePropertyChange(String name, Object oldValue, Object newValue) {
+ super.firePropertyChange(name, oldValue, newValue);
+ }
+
+ 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 javax.swing.JToggleButton getButton() {
+ return button;
+ }
+
+ public org.nuiton.guix.GuixDemo2Abstract getGuixdemo2() {
+ return guixdemo2;
+ }
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- public mutator methods -------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ public void setButton(javax.swing.JToggleButton newValue) {
+ this.button = newValue;
+ }
+
+ public void setGuixdemo2(org.nuiton.guix.GuixDemo2Abstract newValue) {
+ this.guixdemo2 = newValue;
+ }
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- public mutator methods -------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ public void beforeBinding() {
+
+ }
+
+ public void beforeCreation() {
+
+ }
+
+ public void beforeInitialization() {
+
+ }
+
+ /**
+ * Components creation
+ */
+ public void componentsCreation() {
+ createButton();
+ }
+
+ /**
+ * components layout
+ */
+ public void componentsTree() {
+ this.setLayout(new java.awt.FlowLayout());
+ this.add(button);
+ }
+
+ public void inTheEnd() {
+
+ }
+
+ /**
+ * initilization of databinding
+ */
+ public void initDataBinding() {
+
+ }
+
+ /**
+ * initialization
+ */
+ public void initialize() {
+ beforeCreation();
+ componentsCreation();
+
+ beforeInitialization();
+ componentsTree();
+ beforeBinding();
+ initDataBinding();
+ inTheEnd();
+ }
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- ui creation methods ----------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ /**
+ * button creation
+ */
+ private void createButton() {
+ button = new javax.swing.JToggleButton();
+ button.setText("Push me");
+ button.setSelected(true);
+ button.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent actionEvent){
+ System.out.println("test");
+ }
+ });
+ }
+
+ }
\ No newline at end of file
Added: trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo2Impl.java
===================================================================
--- trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo2Impl.java (rev 0)
+++ trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo2Impl.java 2009-07-22 13:10:50 UTC (rev 1508)
@@ -0,0 +1,20 @@
+package org.nuiton.guix;
+
+import javax.swing.JToggleButton;
+
+/**
+ * test javadoc Application
+ */
+public class GuixDemo2Impl extends GuixDemo2Abstract {
+ /*---------------------------------------------------------------------------------*/
+ /*-- Constructors -----------------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ /**
+ * Constructor
+ */
+ public GuixDemo2Impl() {
+ super();
+ }
+
+ }
\ No newline at end of file
Added: trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo3.java
===================================================================
--- trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo3.java (rev 0)
+++ trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo3.java 2009-07-22 13:10:50 UTC (rev 1508)
@@ -0,0 +1,39 @@
+package org.nuiton.guix;
+
+/**
+ * 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
Added: trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo3Abstract.java
===================================================================
--- trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo3Abstract.java (rev 0)
+++ trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo3Abstract.java 2009-07-22 13:10:50 UTC (rev 1508)
@@ -0,0 +1,131 @@
+package org.nuiton.guix;
+
+/**
+ * test javadoc Application
+ */
+public abstract class GuixDemo3Abstract extends javax.swing.JButton implements GuixDemo3 {
+ /**
+ * List of the active bindings
+ */
+ private java.util.List<String> activeBindings = new java.util.ArrayList<String>();
+ /**
+ * test javadoc Application
+ */
+ private org.nuiton.guix.GuixDemo3Abstract guixdemo3 = this;
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- Constructors -----------------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ /**
+ * Constructor
+ */
+ public GuixDemo3Abstract() {
+ initialize();
+ }
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- JAXXObject implementation ----------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ public void applyDataBinding(String _binding) {
+ processDataBinding(_binding);
+ }
+
+ public void firePropertyChange(String name, Object oldValue, Object newValue) {
+ super.firePropertyChange(name, oldValue, newValue);
+ }
+
+ 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.GuixDemo3Abstract getGuixdemo3() {
+ return guixdemo3;
+ }
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- public mutator methods -------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ public void setGuixdemo3(org.nuiton.guix.GuixDemo3Abstract newValue) {
+ this.guixdemo3 = newValue;
+ }
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- public mutator methods -------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ public void beforeBinding() {
+
+ }
+
+ public void beforeCreation() {
+
+ }
+
+ public void beforeInitialization() {
+
+ }
+
+ /**
+ * Components creation
+ */
+ public void componentsCreation() {
+
+ }
+
+ /**
+ * components layout
+ */
+ public void componentsTree() {
+ this.setText("GuixDemo3");
+ this.setLayout(new java.awt.FlowLayout());
+ }
+
+ public void inTheEnd() {
+
+ }
+
+ /**
+ * initilization of databinding
+ */
+ public void initDataBinding() {
+
+ }
+
+ /**
+ * initialization
+ */
+ public void initialize() {
+ beforeCreation();
+ componentsCreation();
+
+ beforeInitialization();
+ componentsTree();
+ beforeBinding();
+ initDataBinding();
+ inTheEnd();
+ }
+
+ }
\ No newline at end of file
Added: trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo3Impl.java
===================================================================
--- trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo3Impl.java (rev 0)
+++ trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemo3Impl.java 2009-07-22 13:10:50 UTC (rev 1508)
@@ -0,0 +1,18 @@
+package org.nuiton.guix;
+
+/**
+ * test javadoc Application
+ */
+public class GuixDemo3Impl extends GuixDemo3Abstract {
+ /*---------------------------------------------------------------------------------*/
+ /*-- Constructors -----------------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ /**
+ * Constructor
+ */
+ public GuixDemo3Impl() {
+ super();
+ }
+
+ }
\ No newline at end of file
Added: trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemoAbstract.java
===================================================================
--- trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemoAbstract.java (rev 0)
+++ trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemoAbstract.java 2009-07-22 13:10:50 UTC (rev 1508)
@@ -0,0 +1,806 @@
+package org.nuiton.guix;
+
+import java.util.ArrayList;
+import javax.swing.JMenuBar;
+import javax.swing.JMenu;
+import javax.swing.JMenuItem;
+import javax.swing.JToolBar;
+import javax.swing.JButton;
+import javax.swing.JTabbedPane;
+import javax.swing.JPanel;
+import javax.swing.JTextField;
+import javax.swing.JLabel;
+import org.nuiton.guix.GuixDemo3Abstract;
+import org.nuiton.guix.GuixDemo2Abstract;
+import java.awt.Button;
+import java.awt.event.ActionListener;
+import java.awt.event.ActionEvent;
+import java.awt.BorderLayout;
+
+/**
+ * test javadoc Application
+ */
+public abstract class GuixDemoAbstract extends javax.swing.JFrame implements GuixDemo {
+ private javax.swing.JButton $Button6;
+ private javax.swing.JButton $Button7;
+ private javax.swing.JToolBar $JToolBar5;
+ private javax.swing.JMenu $Menu2;
+ private javax.swing.JMenu $Menu4;
+ private javax.swing.JMenuBar $MenuBar1;
+ private javax.swing.JMenuItem $MenuItem3;
+ /**
+ * List of the active bindings
+ */
+ private java.util.List<String> activeBindings = new java.util.ArrayList<String>();
+ private javax.swing.JButton bouton1;
+ private org.nuiton.guix.GuixDemo3Abstract bt3;
+ private org.nuiton.guix.GuixDemo3Abstract bt31;
+ private org.nuiton.guix.GuixDemo3Abstract bt32;
+ private org.nuiton.guix.GuixDemo3Abstract bt34;
+ private java.util.ArrayList controller;
+ private org.nuiton.guix.GuixDemo2Abstract gd2;
+ private org.nuiton.guix.GuixDemo2Abstract gd22;
+ /**
+ * test javadoc Application
+ */
+ private org.nuiton.guix.GuixDemoAbstract guixdemo = this;
+ private javax.swing.JMenuItem item1;
+ private javax.swing.JLabel label;
+ private javax.swing.JLabel label2;
+ private javax.swing.JLabel label3;
+ private javax.swing.JTabbedPane tabPanel;
+ private javax.swing.JPanel table;
+ /**
+ * javadoc textfield
+ */
+ private javax.swing.JTextField textfield;
+
+ /* begin raw body code */
+
+ private Button b = new Button("test");
+ 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();
+ }
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- JAXXObject implementation ----------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ public void applyDataBinding(String _binding) {
+ if("textfield.enabled".equals(_binding)) {
+ if(getGd2() != null) {
+ getGd2().addPropertyChangeListener(new java.beans.PropertyChangeListener() {
+ public void propertyChange(java.beans.PropertyChangeEvent arg0) {
+ onChangeFromgetGd2getButtonisSelected();
+ }
+ });
+ }
+ if(getGd2() != null && getGd2().getButton() != null) {
+ getGd2().getButton().addPropertyChangeListener(new java.beans.PropertyChangeListener() {
+ public void propertyChange(java.beans.PropertyChangeEvent arg0) {
+ onChangeFromgetGd2getButtonisSelected();
+ }
+ });
+ }
+ if(getGd2() != null && getGd2().getButton() != null) {
+ getGd2().getButton().getModel().addChangeListener(new javax.swing.event.ChangeListener() {
+ public void stateChanged(javax.swing.event.ChangeEvent arg0) {
+ onChangeFromgetGd2getButtonisSelected();
+ }
+ });
+ }
+ if(getGd22() != null) {
+ getGd22().addPropertyChangeListener(new java.beans.PropertyChangeListener() {
+ public void propertyChange(java.beans.PropertyChangeEvent arg0) {
+ onChangeFromgetGd22getButtonisSelected();
+ }
+ });
+ }
+ if(getGd22() != null && getGd22().getButton() != null) {
+ getGd22().getButton().addPropertyChangeListener(new java.beans.PropertyChangeListener() {
+ public void propertyChange(java.beans.PropertyChangeEvent arg0) {
+ onChangeFromgetGd22getButtonisSelected();
+ }
+ });
+ }
+ if(getGd22() != null && getGd22().getButton() != null) {
+ getGd22().getButton().getModel().addChangeListener(new javax.swing.event.ChangeListener() {
+ public void stateChanged(javax.swing.event.ChangeEvent arg0) {
+ onChangeFromgetGd22getButtonisSelected();
+ }
+ });
+ }
+ }
+ else if("label.text".equals(_binding)) {
+ if(getTextfield() != null) {
+ getTextfield().addPropertyChangeListener(new java.beans.PropertyChangeListener() {
+ public void propertyChange(java.beans.PropertyChangeEvent arg0) {
+ onChangeFromtextfieldgetText();
+ }
+ });
+ }
+ if(getTextfield() != null) {
+ getTextfield().getDocument().addDocumentListener(new javax.swing.event.DocumentListener() {
+ public void insertUpdate(javax.swing.event.DocumentEvent arg0) {
+ onChangeFromtextfieldgetText();
+ }
+ public void removeUpdate(javax.swing.event.DocumentEvent arg0) {
+ onChangeFromtextfieldgetText();
+ }
+ public void changedUpdate(javax.swing.event.DocumentEvent arg0) {
+ onChangeFromtextfieldgetText();
+ }
+ });
+ }
+ }
+
+ processDataBinding(_binding);
+ }
+
+ public void firePropertyChange(String name, Object oldValue, Object newValue) {
+ super.firePropertyChange(name, oldValue, newValue);
+ }
+
+ public void processDataBinding(String _binding) {
+ if (activeBindings.contains(_binding)) {
+ return;
+ }
+ activeBindings.add(_binding);
+ try{
+ if("textfield.enabled".equals(_binding)) {
+ textfield.setEnabled(getGd2().getButton().isSelected() && getGd22().getButton().isSelected());
+ }
+ else if("label.text".equals(_binding)) {
+ label.setText("label : " + textfield.getText());
+ }
+
+ } finally {
+ activeBindings.remove(_binding);
+ }
+ }
+
+ public void removeDataBinding(String _binding) {
+ if("textfield.enabled".equals(_binding)) {
+ if(getGd2() != null) {
+ getGd2().removePropertyChangeListener(new java.beans.PropertyChangeListener() {
+ public void propertyChange(java.beans.PropertyChangeEvent arg0) {
+ onChangeFromgetGd2getButtonisSelected();
+ }
+ });
+ }
+ if(getGd2() != null && getGd2().getButton() != null) {
+ getGd2().getButton().removePropertyChangeListener(new java.beans.PropertyChangeListener() {
+ public void propertyChange(java.beans.PropertyChangeEvent arg0) {
+ onChangeFromgetGd2getButtonisSelected();
+ }
+ });
+ }
+ if(getGd2() != null && getGd2().getButton() != null) {
+ getGd2().getButton().getModel().removeChangeListener(new javax.swing.event.ChangeListener() {
+ public void stateChanged(javax.swing.event.ChangeEvent arg0) {
+ onChangeFromgetGd2getButtonisSelected();
+ }
+ });
+ }
+ if(getGd22() != null) {
+ getGd22().removePropertyChangeListener(new java.beans.PropertyChangeListener() {
+ public void propertyChange(java.beans.PropertyChangeEvent arg0) {
+ onChangeFromgetGd22getButtonisSelected();
+ }
+ });
+ }
+ if(getGd22() != null && getGd22().getButton() != null) {
+ getGd22().getButton().removePropertyChangeListener(new java.beans.PropertyChangeListener() {
+ public void propertyChange(java.beans.PropertyChangeEvent arg0) {
+ onChangeFromgetGd22getButtonisSelected();
+ }
+ });
+ }
+ if(getGd22() != null && getGd22().getButton() != null) {
+ getGd22().getButton().getModel().removeChangeListener(new javax.swing.event.ChangeListener() {
+ public void stateChanged(javax.swing.event.ChangeEvent arg0) {
+ onChangeFromgetGd22getButtonisSelected();
+ }
+ });
+ }
+ }
+ else if("label.text".equals(_binding)) {
+ if(getTextfield() != null) {
+ getTextfield().removePropertyChangeListener(new java.beans.PropertyChangeListener() {
+ public void propertyChange(java.beans.PropertyChangeEvent arg0) {
+ onChangeFromtextfieldgetText();
+ }
+ });
+ }
+ if(getTextfield() != null) {
+ getTextfield().getDocument().removeDocumentListener(new javax.swing.event.DocumentListener() {
+ public void insertUpdate(javax.swing.event.DocumentEvent arg0) {
+ onChangeFromtextfieldgetText();
+ }
+ public void removeUpdate(javax.swing.event.DocumentEvent arg0) {
+ onChangeFromtextfieldgetText();
+ }
+ public void changedUpdate(javax.swing.event.DocumentEvent arg0) {
+ onChangeFromtextfieldgetText();
+ }
+ });
+ }
+ }
+ }
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- public acessor methods -------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ public javax.swing.JButton get$Button6() {
+ return $Button6;
+ }
+
+ public javax.swing.JButton get$Button7() {
+ return $Button7;
+ }
+
+ public javax.swing.JToolBar get$JToolBar5() {
+ return $JToolBar5;
+ }
+
+ public javax.swing.JMenu get$Menu2() {
+ return $Menu2;
+ }
+
+ public javax.swing.JMenu get$Menu4() {
+ return $Menu4;
+ }
+
+ public javax.swing.JMenuBar get$MenuBar1() {
+ return $MenuBar1;
+ }
+
+ public javax.swing.JMenuItem get$MenuItem3() {
+ return $MenuItem3;
+ }
+
+ public java.util.List<String> getActiveBindings() {
+ return activeBindings;
+ }
+
+ public javax.swing.JButton getBouton1() {
+ return bouton1;
+ }
+
+ public org.nuiton.guix.GuixDemo3Abstract getBt3() {
+ return bt3;
+ }
+
+ public org.nuiton.guix.GuixDemo3Abstract getBt31() {
+ return bt31;
+ }
+
+ public org.nuiton.guix.GuixDemo3Abstract getBt32() {
+ return bt32;
+ }
+
+ public org.nuiton.guix.GuixDemo3Abstract getBt34() {
+ return bt34;
+ }
+
+ public java.util.ArrayList getController() {
+ return controller;
+ }
+
+ public org.nuiton.guix.GuixDemo2Abstract getGd2() {
+ return gd2;
+ }
+
+ public org.nuiton.guix.GuixDemo2Abstract getGd22() {
+ return gd22;
+ }
+
+ public org.nuiton.guix.GuixDemoAbstract getGuixdemo() {
+ return guixdemo;
+ }
+
+ public javax.swing.JMenuItem getItem1() {
+ return item1;
+ }
+
+ public javax.swing.JLabel getLabel() {
+ return label;
+ }
+
+ public javax.swing.JLabel getLabel2() {
+ return label2;
+ }
+
+ public javax.swing.JLabel getLabel3() {
+ return label3;
+ }
+
+ public javax.swing.JTabbedPane getTabPanel() {
+ return tabPanel;
+ }
+
+ public javax.swing.JPanel getTable() {
+ return table;
+ }
+
+ public javax.swing.JTextField getTextfield() {
+ return textfield;
+ }
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- public mutator methods -------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ public void set$Button6(javax.swing.JButton newValue) {
+ this.$Button6 = newValue;
+ }
+
+ public void set$Button7(javax.swing.JButton newValue) {
+ this.$Button7 = newValue;
+ }
+
+ public void set$JToolBar5(javax.swing.JToolBar newValue) {
+ this.$JToolBar5 = newValue;
+ }
+
+ public void set$Menu2(javax.swing.JMenu newValue) {
+ this.$Menu2 = newValue;
+ }
+
+ public void set$Menu4(javax.swing.JMenu newValue) {
+ this.$Menu4 = newValue;
+ }
+
+ public void set$MenuBar1(javax.swing.JMenuBar newValue) {
+ this.$MenuBar1 = newValue;
+ }
+
+ public void set$MenuItem3(javax.swing.JMenuItem newValue) {
+ this.$MenuItem3 = newValue;
+ }
+
+ public void setBouton1(javax.swing.JButton newValue) {
+ this.bouton1 = newValue;
+ }
+
+ public void setBt3(org.nuiton.guix.GuixDemo3Abstract newValue) {
+ this.bt3 = newValue;
+ }
+
+ public void setBt31(org.nuiton.guix.GuixDemo3Abstract newValue) {
+ this.bt31 = newValue;
+ }
+
+ public void setBt32(org.nuiton.guix.GuixDemo3Abstract newValue) {
+ this.bt32 = newValue;
+ }
+
+ public void setBt34(org.nuiton.guix.GuixDemo3Abstract newValue) {
+ this.bt34 = newValue;
+ }
+
+ public void setController(java.util.ArrayList newValue) {
+ this.controller = newValue;
+ }
+
+ public void setGd2(org.nuiton.guix.GuixDemo2Abstract newValue) {
+ this.gd2 = newValue;
+ }
+
+ public void setGd22(org.nuiton.guix.GuixDemo2Abstract newValue) {
+ this.gd22 = newValue;
+ }
+
+ public void setGuixdemo(org.nuiton.guix.GuixDemoAbstract newValue) {
+ this.guixdemo = newValue;
+ }
+
+ public void setItem1(javax.swing.JMenuItem newValue) {
+ this.item1 = newValue;
+ }
+
+ public void setLabel(javax.swing.JLabel newValue) {
+ this.label = newValue;
+ }
+
+ public void setLabel2(javax.swing.JLabel newValue) {
+ this.label2 = newValue;
+ }
+
+ public void setLabel3(javax.swing.JLabel newValue) {
+ this.label3 = newValue;
+ }
+
+ public void setTabPanel(javax.swing.JTabbedPane newValue) {
+ this.tabPanel = newValue;
+ }
+
+ public void setTable(javax.swing.JPanel newValue) {
+ this.table = newValue;
+ }
+
+ public void setTextfield(javax.swing.JTextField newValue) {
+ this.textfield = newValue;
+ }
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- public mutator methods -------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ public void beforeBinding() {
+ this.add(b, BorderLayout.SOUTH);
+ }
+
+ public void beforeCreation() {
+ System.out.println("before Creation");
+ }
+
+ public void beforeInitialization() {
+
+ }
+
+ /**
+ * Components creation
+ */
+ public void componentsCreation() {
+ createController();
+ create$Menu2();
+ createItem1();
+ create$MenuItem3();
+ create$Menu4();
+ create$MenuBar1();
+ create$JToolBar5();
+ createBouton1();
+ create$Button6();
+ create$Button7();
+ createTabPanel();
+ createTextfield();
+ createLabel();
+ createLabel2();
+ createBt3();
+ createBt31();
+ createBt32();
+ createBt34();
+ createLabel3();
+ createTable();
+ createGd2();
+ createGd22();
+ }
+
+ /**
+ * components layout
+ */
+ public void componentsTree() {
+ this.setTitle("Guix Swing Demo");
+ this.setSize(800,600);
+ this.setLayout(new BorderLayout());
+ this.setJMenuBar($MenuBar1);
+ $MenuBar1.add($Menu2);
+ $Menu2.add(item1);
+ $Menu2.add($MenuItem3);
+ $MenuBar1.add($Menu4);
+ this.add($JToolBar5,BorderLayout.NORTH);
+ $JToolBar5.add(bouton1);
+ $JToolBar5.add($Button6);
+ $JToolBar5.add($Button7);
+ this.add(tabPanel,BorderLayout.CENTER);
+ tabPanel.add(table);
+ table.add(textfield, new java.awt.GridBagConstraints (0,0,1,1,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(1,1,1,1),1,1));
+ table.add(label, new java.awt.GridBagConstraints (1,0,1,1,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(1,1,1,1),1,1));
+ table.add(label2, new java.awt.GridBagConstraints (2,0,1,3,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(1,1,1,1),1,1));
+ table.add(bt3, new java.awt.GridBagConstraints (3,1,3,1,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(0,0,0,0),1,1));
+ table.add(bt31, new java.awt.GridBagConstraints (0,2,2,1,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(0,0,0,0),1,1));
+ table.add(bt32, new java.awt.GridBagConstraints (3,2,1,1,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(2,2,2,2),1,1));
+ table.add(bt34, new java.awt.GridBagConstraints (0,3,3,1,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(1,1,1,1),1,1));
+ table.add(label3, new java.awt.GridBagConstraints (0,4,2,1,0.0,0.0,java.awt.GridBagConstraints.FIRST_LINE_START,java.awt.GridBagConstraints.BOTH, new java.awt.Insets(1,1,1,1),1,1));
+ tabPanel.add(gd2);
+ tabPanel.add(gd22);
+ }
+
+ public void inTheEnd() {
+
+ }
+
+ /**
+ * initilization of databinding
+ */
+ public void initDataBinding() {
+ applyDataBinding("textfield.enabled");
+ applyDataBinding("label.text");
+ }
+
+ /**
+ * initialization
+ */
+ public void initialize() {
+ beforeCreation();
+ componentsCreation();
+ b.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent arg0) {
+ if(gd2.getButton().isSelected()) {
+ java.util.Random r = new java.util.Random();
+ table.setBackground(new java.awt.Color(r.nextInt(255), r.nextInt(255), r.nextInt(255)));
+ }
+ }
+ });
+ beforeInitialization();
+ componentsTree();
+ beforeBinding();
+ initDataBinding();
+ inTheEnd();
+ }
+
+ public void onChangeFromgetGd22getButtonisSelected() {
+ processDataBinding("textfield.enabled");
+ }
+
+ public void onChangeFromgetGd2getButtonisSelected() {
+ 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);
+ }
+
+ /*---------------------------------------------------------------------------------*/
+ /*-- ui creation methods ----------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ /**
+ * $Button6 creation
+ */
+ private void create$Button6() {
+ $Button6 = new javax.swing.JButton();
+ $Button6.setText("bouton2");
+ $Button6.setForeground(new java.awt.Color(120,255,0));
+ $Button6.setSize(80,35);
+ $Button6.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent actionEvent){
+ $Button6.setText("click !");
+ ;System.out.println("Action [" + actionEvent.getActionCommand() + "] performed!");
+ }
+ });
+ }
+
+ /**
+ * $Button7 creation
+ */
+ private void create$Button7() {
+ $Button7 = new javax.swing.JButton();
+ $Button7.setText("bouton3");
+ $Button7.setForeground(new java.awt.Color(120,255,0));
+ $Button7.setSize(80,35);
+ $Button7.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent actionEvent){
+ $Button7.setText("click !");
+ ;System.out.println("Action [" + actionEvent.getActionCommand() + "] performed!");
+ }
+ });
+ }
+
+ /**
+ * $JToolBar5 creation
+ */
+ private void create$JToolBar5() {
+ $JToolBar5 = new javax.swing.JToolBar();
+ $JToolBar5.setBorder(new javax.swing.border.EtchedBorder());
+ }
+
+ /**
+ * $Menu2 creation
+ */
+ private void create$Menu2() {
+ $Menu2 = new javax.swing.JMenu("menu 1");
+ }
+
+ /**
+ * $Menu4 creation
+ */
+ private void create$Menu4() {
+ $Menu4 = new javax.swing.JMenu("menu 2");
+ }
+
+ /**
+ * $MenuBar1 creation
+ */
+ private void create$MenuBar1() {
+ $MenuBar1 = new javax.swing.JMenuBar();
+ $MenuBar1.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.RAISED));
+ }
+
+ /**
+ * $MenuItem3 creation
+ */
+ private void create$MenuItem3() {
+ $MenuItem3 = new javax.swing.JMenuItem();
+ $MenuItem3.setText("item2");
+ $MenuItem3.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent actionEvent){
+ System.out.println("Action [" + actionEvent.getActionCommand() + "] performed!");
+ }
+ });
+ }
+
+ /**
+ * bouton1 creation
+ */
+ private void createBouton1() {
+ bouton1 = new javax.swing.JButton();
+ bouton1.setText("bouton1");
+ bouton1.setSize(100,35);
+ bouton1.setForeground(new java.awt.Color(120,255,0));
+ bouton1.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent actionEvent){
+ bouton1.setText("click !");
+ ;System.out.println("Action [" + actionEvent.getActionCommand() + "] performed!");
+ }
+ });
+ }
+
+ /**
+ * bt3 creation
+ */
+ private void createBt3() {
+ bt3 = new org.nuiton.guix.GuixDemo3Impl();
+ bt3.setText("bt3");
+ bt3.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent actionEvent){
+ System.out.println("beau gosse");
+ }
+ });
+ }
+
+ /**
+ * bt31 creation
+ */
+ private void createBt31() {
+ bt31 = new org.nuiton.guix.GuixDemo3Impl();
+ bt31.setText("bt31");
+ }
+
+ /**
+ * bt32 creation
+ */
+ private void createBt32() {
+ bt32 = new org.nuiton.guix.GuixDemo3Impl();
+ bt32.setText("bt32");
+ }
+
+ /**
+ * bt34 creation
+ */
+ private void createBt34() {
+ bt34 = new org.nuiton.guix.GuixDemo3Impl();
+ bt34.setText("bt34");
+ }
+
+ /**
+ * controller creation
+ */
+ private void createController() {
+ controller = new java.util.ArrayList();
+ }
+
+ /**
+ * gd2 creation
+ */
+ private void createGd2() {
+ gd2 = new org.nuiton.guix.GuixDemo2Impl();
+ gd2.setName("GD2");
+ }
+
+ /**
+ * gd22 creation
+ */
+ private void createGd22() {
+ gd22 = new org.nuiton.guix.GuixDemo2Impl();
+ gd22.setName("GD22");
+ }
+
+ /**
+ * item1 creation
+ */
+ private void createItem1() {
+ item1 = new javax.swing.JMenuItem();
+ item1.setText("item1");
+ }
+
+ /**
+ * label creation
+ */
+ private void createLabel() {
+ label = new javax.swing.JLabel();
+ label.setForeground(new java.awt.Color(0,120,255));
+ label.addMouseListener(new java.awt.event.MouseAdapter() {
+ public void mouseEntered(java.awt.event.MouseEvent mouseEvent){
+ label.setForeground(new java.awt.Color(255,120,0));
+ ;
+ }
+ public void mouseExited(java.awt.event.MouseEvent mouseEvent){
+ label.setForeground(new java.awt.Color(0,120,255));
+ ;
+ }
+ });
+ }
+
+ /**
+ * label2 creation
+ */
+ private void createLabel2() {
+ label2 = new javax.swing.JLabel();
+ label2.setText("color");
+ label2.setBackground(java.awt.Color.BLUE);
+ }
+
+ /**
+ * label3 creation
+ */
+ private void createLabel3() {
+ label3 = new javax.swing.JLabel();
+ label3.setText("color");
+ label3.setForeground(java.awt.Color.YELLOW);
+ }
+
+ /**
+ * tabPanel creation
+ */
+ private void createTabPanel() {
+ tabPanel = new javax.swing.JTabbedPane();
+ tabPanel.setSize(800,400);
+ }
+
+ /**
+ * table creation
+ */
+ private void createTable() {
+ table = new javax.swing.JPanel(new java.awt.GridBagLayout());
+ table.setName("Table");
+ }
+
+ /**
+ * textfield creation
+ */
+ private void createTextfield() {
+ textfield = new javax.swing.JTextField("test");
+ textfield.setSize(100,35);
+ textfield.addFocusListener(new java.awt.event.FocusAdapter() {
+ public void focusGained(java.awt.event.FocusEvent focusEvent){
+ System.out.println("dude !");
+ }
+ });
+ }
+
+ }
\ No newline at end of file
Added: trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemoImpl.java
===================================================================
--- trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemoImpl.java (rev 0)
+++ trunk/guix-test-swing/src/main/java/org/nuiton/guix/GuixDemoImpl.java 2009-07-22 13:10:50 UTC (rev 1508)
@@ -0,0 +1,31 @@
+package org.nuiton.guix;
+
+import java.util.ArrayList;
+import javax.swing.JMenuBar;
+import javax.swing.JMenu;
+import javax.swing.JMenuItem;
+import javax.swing.JToolBar;
+import javax.swing.JButton;
+import javax.swing.JTabbedPane;
+import javax.swing.JPanel;
+import javax.swing.JTextField;
+import javax.swing.JLabel;
+import org.nuiton.guix.GuixDemo3Abstract;
+import org.nuiton.guix.GuixDemo2Abstract;
+
+/**
+ * test javadoc Application
+ */
+public class GuixDemoImpl extends GuixDemoAbstract {
+ /*---------------------------------------------------------------------------------*/
+ /*-- Constructors -----------------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ /**
+ * Constructor
+ */
+ public GuixDemoImpl() {
+ super();
+ }
+
+ }
\ No newline at end of file
Added: trunk/guix-test-swing/src/main/java/org/nuiton/guix/Main.java
===================================================================
--- trunk/guix-test-swing/src/main/java/org/nuiton/guix/Main.java (rev 0)
+++ trunk/guix-test-swing/src/main/java/org/nuiton/guix/Main.java 2009-07-22 13:10:50 UTC (rev 1508)
@@ -0,0 +1,19 @@
+package org.nuiton.guix;
+
+import java.io.File;
+import org.springframework.beans.factory.ListableBeanFactory;
+import org.springframework.beans.factory.xml.XmlBeanFactory;
+import org.springframework.core.io.FileSystemResource;
+
+public class Main {
+ /*---------------------------------------------------------------------------------*/
+ /*-- Statics methods --------------------------------------------------------------*/
+ /*---------------------------------------------------------------------------------*/
+
+ public static void main(String[] args) {
+ javax.swing.SwingUtilities.invokeLater(new Runnable() {public void run() {GuixDemoImpl main = new GuixDemoImpl();
+ main.pack();
+ main.setVisible(true);}});
+ }
+
+ }
\ No newline at end of file
1
0