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
- 3898 discussions
r1883 - trunk/maven-jaxx-plugin/src/main/java/org/nuiton/jaxx/plugin
by tchemit@users.nuiton.org 09 May '10
by tchemit@users.nuiton.org 09 May '10
09 May '10
Author: tchemit
Date: 2010-05-09 10:39:41 +0200 (Sun, 09 May 2010)
New Revision: 1883
Url: http://nuiton.org/repositories/revision/jaxx/1883
Log:
make it works with maven 3
Modified:
trunk/maven-jaxx-plugin/src/main/java/org/nuiton/jaxx/plugin/GenerateMojo.java
Modified: trunk/maven-jaxx-plugin/src/main/java/org/nuiton/jaxx/plugin/GenerateMojo.java
===================================================================
--- trunk/maven-jaxx-plugin/src/main/java/org/nuiton/jaxx/plugin/GenerateMojo.java 2010-05-07 16:19:29 UTC (rev 1882)
+++ trunk/maven-jaxx-plugin/src/main/java/org/nuiton/jaxx/plugin/GenerateMojo.java 2010-05-09 08:39:41 UTC (rev 1883)
@@ -67,7 +67,7 @@
public class GenerateMojo extends AbstractJaxxMojo implements CompilerConfiguration {
/** Default includes to use, if none provided */
- private static final String[] INCLUDES = {"**\\/*.jaxx", "**\\/*.css"};
+ private static final String[] INCLUDES = {"**/*.jaxx", "**/*.css"};
/**
* Repertoire sources des fichiers jaxx a generer.
@@ -427,6 +427,9 @@
nofiles = files == null || files.length == 0;
if (nofiles) {
+ if (getLog().isDebugEnabled()) {
+ getLog().debug("No file to treate.");
+ }
return;
}
1
0
Author: tchemit
Date: 2010-05-07 18:19:29 +0200 (Fri, 07 May 2010)
New Revision: 1882
Url: http://nuiton.org/repositories/revision/jaxx/1882
Log:
add a tutorial profile (build at release time)
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-05-07 16:16:55 UTC (rev 1881)
+++ trunk/pom.xml 2010-05-07 16:19:29 UTC (rev 1882)
@@ -49,8 +49,8 @@
<module>maven-jaxx-plugin</module>
<module>jaxx-widgets</module>
- <module>jaxx-tutorial</module>
+ <!--module>jaxx-tutorial</module-->
<!--<module>jaxx-demo</module>-->
</modules>
@@ -446,6 +446,7 @@
</scm>
<profiles>
+
<!-- build demo at release time -->
<profile>
<id>demo</id>
@@ -462,6 +463,22 @@
</profile>
+ <!-- build tutorials at release time -->
+ <profile>
+ <id>tutorial</id>
+ <activation>
+ <property>
+ <name>performRelease</name>
+ <value>true</value>
+ </property>
+ </activation>
+
+ <modules>
+ <module>jaxx-tutorial</module>
+ </modules>
+
+ </profile>
+
</profiles>
</project>
1
0
07 May '10
Author: tchemit
Date: 2010-05-07 18:16:55 +0200 (Fri, 07 May 2010)
New Revision: 1881
Url: http://nuiton.org/repositories/revision/jaxx/1881
Log:
fix svn:ignore
Modified:
trunk/jaxx-tutorial-config/
trunk/jaxx-tutorial/
Property changes on: trunk/jaxx-tutorial
___________________________________________________________________
Added: svn:ignore
+ target
*.iml
*.ipr
*.iws
.classpath
.project
Property changes on: trunk/jaxx-tutorial-config
___________________________________________________________________
Added: svn:ignore
+ target
*.log
*.ipr
*.iws
*.iml
.classpath
.project
1
0
Author: tchemit
Date: 2010-05-07 17:48:43 +0200 (Fri, 07 May 2010)
New Revision: 1880
Url: http://nuiton.org/repositories/revision/jaxx/1880
Log:
add jaxx-tutorial + jaxx-tutorial-config modules
Added:
trunk/jaxx-tutorial-config/
trunk/jaxx-tutorial-config/LICENSE.txt
trunk/jaxx-tutorial-config/README.txt
trunk/jaxx-tutorial-config/changelog.txt
trunk/jaxx-tutorial-config/pom.xml
trunk/jaxx-tutorial-config/src/
trunk/jaxx-tutorial-config/src/main/
trunk/jaxx-tutorial-config/src/main/java/
trunk/jaxx-tutorial-config/src/main/java/jaxx/
trunk/jaxx-tutorial-config/src/main/java/jaxx/demo/
trunk/jaxx-tutorial-config/src/main/java/jaxx/demo/config/
trunk/jaxx-tutorial-config/src/main/java/jaxx/demo/config/DemoConfig.java
trunk/jaxx-tutorial-config/src/main/java/jaxx/demo/config/RunDemo.java
trunk/jaxx-tutorial-config/src/main/resources/
trunk/jaxx-tutorial-config/src/main/resources/i18n/
trunk/jaxx-tutorial-config/src/main/resources/i18n/jaxx-tutorial-config-en_GB.properties
trunk/jaxx-tutorial-config/src/main/resources/i18n/jaxx-tutorial-config-fr_FR.properties
trunk/jaxx-tutorial-config/src/main/resources/icons/
trunk/jaxx-tutorial-config/src/main/resources/icons/action-about.png
trunk/jaxx-tutorial-config/src/main/resources/icons/action-accept.png
trunk/jaxx-tutorial-config/src/main/resources/icons/action-block.png
trunk/jaxx-tutorial-config/src/main/resources/icons/action-close.png
trunk/jaxx-tutorial-config/src/main/resources/icons/action-config.png
trunk/jaxx-tutorial-config/src/main/resources/icons/action-exit.png
trunk/jaxx-tutorial-config/src/main/resources/icons/action-fullscreen.png
trunk/jaxx-tutorial-config/src/main/resources/icons/action-help.png
trunk/jaxx-tutorial-config/src/main/resources/icons/action-i18n-fr.png
trunk/jaxx-tutorial-config/src/main/resources/icons/action-i18n-uk.png
trunk/jaxx-tutorial-config/src/main/resources/icons/action-leave-fullscreen.png
trunk/jaxx-tutorial-config/src/main/resources/icons/action-reload-application.png
trunk/jaxx-tutorial-config/src/main/resources/icons/action-reload-ui.png
trunk/jaxx-tutorial-config/src/main/resources/icons/action-show-help.png
trunk/jaxx-tutorial-config/src/main/resources/icons/action-site.png
trunk/jaxx-tutorial-config/src/main/resources/icons/action-translate.png
trunk/jaxx-tutorial-config/src/main/resources/icons/jaxx.png
trunk/jaxx-tutorial-config/src/main/resources/log4j.properties
trunk/jaxx-tutorial-config/src/site/
trunk/jaxx-tutorial-config/src/site/rst/
trunk/jaxx-tutorial-config/src/site/rst/images/
trunk/jaxx-tutorial-config/src/site/rst/images/webstart.gif
trunk/jaxx-tutorial-config/src/site/rst/index.rst
trunk/jaxx-tutorial-config/src/site/site_fr.xml
trunk/jaxx-tutorial/
trunk/jaxx-tutorial/LICENSE.txt
trunk/jaxx-tutorial/README.txt
trunk/jaxx-tutorial/changelog.txt
trunk/jaxx-tutorial/pom.xml
trunk/jaxx-widgets/src/main/java/jaxx/runtime/swing/application/
trunk/jaxx-widgets/src/main/java/jaxx/runtime/swing/application/config/
Modified:
trunk/jaxx-demo/pom.xml
trunk/jaxx-demo/src/main/resources/log4j.properties
trunk/pom.xml
Modified: trunk/jaxx-demo/pom.xml
===================================================================
--- trunk/jaxx-demo/pom.xml 2010-05-07 08:52:07 UTC (rev 1879)
+++ trunk/jaxx-demo/pom.xml 2010-05-07 15:48:43 UTC (rev 1880)
@@ -95,7 +95,7 @@
<properties>
- <maven.jar.main.class>jaxx.demo.RunDemo</maven.jar.main.class>
+ <maven.jar.main.class>jaxx.demo.config.RunDemo</maven.jar.main.class>
<jaxx.addProjectClassPath>true</jaxx.addProjectClassPath>
<jaxx.addSourcesToClassPath>true</jaxx.addSourcesToClassPath>
Modified: trunk/jaxx-demo/src/main/resources/log4j.properties
===================================================================
--- trunk/jaxx-demo/src/main/resources/log4j.properties 2010-05-07 08:52:07 UTC (rev 1879)
+++ trunk/jaxx-demo/src/main/resources/log4j.properties 2010-05-07 15:48:43 UTC (rev 1880)
@@ -6,7 +6,7 @@
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) %M - %m%n
log4j.logger.jaxx.demo=INFO
-#log4j.logger.jaxx.demo.DemoConfig=DEBUG
+#log4j.logger.jaxx.demo.config.DemoConfig=DEBUG
log4j.logger.jaxx.runtime.swing.editor.config=INFO
#log4j.logger.jaxx.runtime.swing.editor.config.model.ConfigUIModelBuilder=DEBUG
log4j.logger.org.nuiton=WARN
Property changes on: trunk/jaxx-tutorial
___________________________________________________________________
Added: svn.ignore
+ target
*.iml
*.ipr
*.iws
Added: trunk/jaxx-tutorial/LICENSE.txt
===================================================================
--- trunk/jaxx-tutorial/LICENSE.txt (rev 0)
+++ trunk/jaxx-tutorial/LICENSE.txt 2010-05-07 15:48:43 UTC (rev 1880)
@@ -0,0 +1,166 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
+
Property changes on: trunk/jaxx-tutorial/LICENSE.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial/README.txt
===================================================================
--- trunk/jaxx-tutorial/README.txt (rev 0)
+++ trunk/jaxx-tutorial/README.txt 2010-05-07 15:48:43 UTC (rev 1880)
@@ -0,0 +1,2 @@
+To deploy new version of pom: mvn deploy
+To install localy: mvn install
Property changes on: trunk/jaxx-tutorial/README.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial/changelog.txt
===================================================================
--- trunk/jaxx-tutorial/changelog.txt (rev 0)
+++ trunk/jaxx-tutorial/changelog.txt 2010-05-07 15:48:43 UTC (rev 1880)
@@ -0,0 +1,2 @@
+1.7.2
+ * 20091003 [chemit] - initial release (insparated from obsolote jaxx-example module)
Property changes on: trunk/jaxx-tutorial/changelog.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial/pom.xml
===================================================================
--- trunk/jaxx-tutorial/pom.xml (rev 0)
+++ trunk/jaxx-tutorial/pom.xml 2010-05-07 15:48:43 UTC (rev 1880)
@@ -0,0 +1,196 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ JAXX :: Demo
+
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2008 - 2010 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Lesser Public License for more details.
+
+ You should have received a copy of the GNU General Lesser Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ #L%
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <!-- ************************************************************* -->
+ <!-- *** POM Relationships *************************************** -->
+ <!-- ************************************************************* -->
+
+ <parent>
+ <groupId>org.nuiton</groupId>
+ <artifactId>jaxx</artifactId>
+ <version>2.0.2-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-tutorial</artifactId>
+
+ <modules>
+ <module>../jaxx-tutorial-config</module>
+ </modules>
+
+
+
+ <!-- ************************************************************* -->
+ <!-- *** Project Information ************************************* -->
+ <!-- ************************************************************* -->
+
+ <name>JAXX :: Tutorial</name>
+ <description>JAXX Tutorial parent pom</description>
+
+ <!-- ************************************************************* -->
+ <!-- *** Build Settings ****************************************** -->
+ <!-- ************************************************************* -->
+
+ <packaging>pom</packaging>
+
+ <build>
+
+ <pluginManagement>
+
+ <plugins>
+
+ <plugin>
+ <groupId>org.nuiton.thirdparty</groupId>
+ <artifactId>webstart-maven-plugin</artifactId>
+ <configuration>
+ <jnlpExtensions>
+ <jnlpExtension>
+ <name>sun</name>
+ <title>Sun MicroSystems</title>
+ <vendor>Sun MicroSystems, Inc.</vendor>
+ <includes>
+ <include>javax.help:javahelp</include>
+ </includes>
+ </jnlpExtension>
+ <jnlpExtension>
+ <name>jxlayer</name>
+ <title>Swing labs JXLayer</title>
+ <vendor>Swing Labs</vendor>
+ <includes>
+ <include>org.swinglabs:jxlayer</include>
+ </includes>
+ </jnlpExtension>
+ </jnlpExtensions>
+ </configuration>
+ </plugin>
+
+ </plugins>
+
+ </pluginManagement>
+
+ </build>
+
+ <!-- ************************************************************* -->
+ <!-- *** Build Environment ************************************** -->
+ <!-- ************************************************************* -->
+
+ <profiles>
+ <!-- by default jnlp is only perform on a release stage when using the maven-release-plugin -->
+ <profile>
+ <id>jnlp</id>
+ <activation>
+ <property>
+ <name>performRelease</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <!-- key store secrets availables -->
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-helper-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>get-keystore</id>
+ <goals>
+ <goal>share-server-secret</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <serverId>codelutin-keystore</serverId>
+ <privateKeyOut>keystorepath</privateKeyOut>
+ <passwordOut>keystorepass</passwordOut>
+ <usernameOut>keyalias</usernameOut>
+ <passphraseOut>keypass</passphraseOut>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <!-- make webstart -->
+ <plugin>
+ <groupId>org.nuiton.thirdparty</groupId>
+ <artifactId>webstart-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>generate-jnlp</id>
+ <phase>package</phase>
+ <goals>
+ <goal>jnlp-inline</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <!-- by default jnlp is only perform on a release stage when using the maven-release-plugin -->
+ <profile>
+ <id>reporting</id>
+ <activation>
+ <property>
+ <name>performRelease</name>
+ <value>true</value>
+ </property>
+ </activation>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.nuiton.thirdparty</groupId>
+ <artifactId>webstart-maven-plugin</artifactId>
+ <version>1.0-alpha-2-cl_20091001</version>
+ </plugin>
+ </plugins>
+ </reporting>
+
+ </profile>
+
+ <profile>
+ <id>staging-site-profile</id>
+ <activation>
+ <property>
+ <name>stagingSite</name>
+ <value>true</value>
+ </property>
+ </activation>
+ <properties>
+ <jnlp.codebase>http://maven-site.liosalfar/jaxx/jaxx-demo/jnlp
+ </jnlp.codebase>
+ </properties>
+ </profile>
+
+ </profiles>
+
+</project>
Property changes on: trunk/jaxx-tutorial/pom.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/jaxx-tutorial-config
___________________________________________________________________
Added: svn.ignore
+ target
*.ipr
*.iml
*.iws
*.log
Added: trunk/jaxx-tutorial-config/LICENSE.txt
===================================================================
--- trunk/jaxx-tutorial-config/LICENSE.txt (rev 0)
+++ trunk/jaxx-tutorial-config/LICENSE.txt 2010-05-07 15:48:43 UTC (rev 1880)
@@ -0,0 +1,166 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
+
Property changes on: trunk/jaxx-tutorial-config/LICENSE.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/README.txt
===================================================================
--- trunk/jaxx-tutorial-config/README.txt (rev 0)
+++ trunk/jaxx-tutorial-config/README.txt 2010-05-07 15:48:43 UTC (rev 1880)
@@ -0,0 +1,2 @@
+To deploy new version of pom: mvn deploy
+To install localy: mvn install
Property changes on: trunk/jaxx-tutorial-config/README.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/changelog.txt
===================================================================
--- trunk/jaxx-tutorial-config/changelog.txt (rev 0)
+++ trunk/jaxx-tutorial-config/changelog.txt 2010-05-07 15:48:43 UTC (rev 1880)
@@ -0,0 +1,2 @@
+1.7.2
+ * 20091003 [chemit] - initial release (insparated from obsolote jaxx-example module)
Property changes on: trunk/jaxx-tutorial-config/changelog.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/pom.xml
===================================================================
--- trunk/jaxx-tutorial-config/pom.xml (rev 0)
+++ trunk/jaxx-tutorial-config/pom.xml 2010-05-07 15:48:43 UTC (rev 1880)
@@ -0,0 +1,199 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ #%L
+ JAXX :: Demo
+
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2008 - 2010 CodeLutin
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Lesser Public License for more details.
+
+ You should have received a copy of the GNU General Lesser Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/lgpl-3.0.html>.
+ #L%
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <!-- ************************************************************* -->
+ <!-- *** POM Relationships *************************************** -->
+ <!-- ************************************************************* -->
+
+ <parent>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-tutorial</artifactId>
+ <version>2.0.2-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-tutorial-config</artifactId>
+
+ <dependencies>
+
+ <!-- sibiling dependencies -->
+
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>jaxx-runtime</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>jaxx-widgets</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ </dependencies>
+
+ <!-- ************************************************************* -->
+ <!-- *** Project Information ************************************* -->
+ <!-- ************************************************************* -->
+
+ <name>JAXX :: Tutorial Config</name>
+ <description>JAXX Tutorial Config</description>
+
+ <!-- ************************************************************* -->
+ <!-- *** Build Settings ****************************************** -->
+ <!-- ************************************************************* -->
+
+ <packaging>jar</packaging>
+
+ <properties>
+
+ <maven.jar.main.class>jaxx.demo.config.RunDemo</maven.jar.main.class>
+
+ <jaxx.addProjectClassPath>true</jaxx.addProjectClassPath>
+ <jaxx.addSourcesToClassPath>true</jaxx.addSourcesToClassPath>
+ <jaxx.autoImportCss>true</jaxx.autoImportCss>
+
+ <!-- generate license bundled files -->
+ <license.generateBundle>true</license.generateBundle>
+
+ </properties>
+
+ <build>
+
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ </resources>
+
+ <pluginManagement>
+ <plugins>
+
+ <plugin>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <useUniqueVersions>false</useUniqueVersions>
+ <addClasspath>true</addClasspath>
+ <classpathPrefix>./lib/</classpathPrefix>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+
+ </plugins>
+
+ </pluginManagement>
+
+ <plugins>
+
+ <!--plugin>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <version>${project.version}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin-->
+
+ <plugin>
+ <groupId>org.nuiton.i18n</groupId>
+ <artifactId>maven-i18n-plugin</artifactId>
+ <!--configuration>
+ <treateDefaultEntry>true</treateDefaultEntry>
+ <entries>
+ <entry>
+ <basedir>${maven.gen.dir}/java/</basedir>
+ </entry>
+ </entries>
+ </configuration-->
+ <executions>
+ <execution>
+ <goals>
+ <goal>parserJava</goal>
+ <goal>gen</goal>
+ <goal>bundle</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-dependencies</id>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <overWriteReleases>false</overWriteReleases>
+ <overWriteSnapshots>true</overWriteSnapshots>
+ <overWriteIfNewer>true</overWriteIfNewer>
+ <outputDirectory>${project.build.directory}/lib</outputDirectory>
+ <silent>true</silent>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <!--plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-licenses</id>
+ <goals>
+ <goal>update-project-license</goal>
+ <goal>add-third-party</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin-->
+
+ </plugins>
+ </build>
+
+</project>
Property changes on: trunk/jaxx-tutorial-config/pom.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/java/jaxx/demo/config/DemoConfig.java
===================================================================
--- trunk/jaxx-tutorial-config/src/main/java/jaxx/demo/config/DemoConfig.java (rev 0)
+++ trunk/jaxx-tutorial-config/src/main/java/jaxx/demo/config/DemoConfig.java 2010-05-07 15:48:43 UTC (rev 1880)
@@ -0,0 +1,190 @@
+package jaxx.demo.config;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.nuiton.util.ApplicationConfig;
+
+import java.util.Locale;
+
+import static org.nuiton.i18n.I18n._;
+
+/**
+ * La configuration de l'application.
+ * <p/>
+ * Il s'agit de l'objet partagé par toutes les démos.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 2.0.2
+ */
+public class DemoConfig extends ApplicationConfig {
+
+ /** to use log facility, just put in your code: log.info(\"...\"); */
+ static private Log log = LogFactory.getLog(DemoConfig.class);
+
+ /**
+ * le fichier de configuration de l'application avec les informations sur
+ * le projet (version, license,...) et la configuration des ui (icons, ...)
+ */
+ public static final String APPLICATION_PROPERTIES = "/jaxx-demo.properties";
+
+ public static final String PROPERTY_FULLSCREEN = "fullscreen";
+
+ public static final String PROPERTY_LOCALE = "locale";
+
+ public static final String PROPERTY_FONT_SIZE = "fontSize";
+
+ public DemoConfig() {
+
+ setConfigFileName(Option.CONFIG_FILE.defaultValue);
+
+ for (Option o : Option.values()) {
+ setDefaultOption(o.key, o.defaultValue);
+ }
+
+ installSaveUserAction(PROPERTY_FULLSCREEN,
+ PROPERTY_FONT_SIZE,
+ PROPERTY_LOCALE);
+ }
+
+ public boolean isFullScreen() {
+ Boolean result = getOptionAsBoolean(Option.FULL_SCREEN.key);
+ return result != null && result;
+ }
+
+ public Locale getLocale() {
+ Locale result = getOption(Locale.class, Option.LOCALE.key);
+ return result;
+ }
+
+ public Float getFontSize() {
+ Float result = getOption(Float.class, Option.FONT_SIZE.key);
+ return result;
+ }
+
+ public void setFullscreen(boolean fullscreen) {
+ Object oldValue = null;
+ setOption(Option.FULL_SCREEN.key, fullscreen + "");
+ firePropertyChange(PROPERTY_FULLSCREEN, oldValue, fullscreen);
+ }
+
+ public void setLocale(Locale newLocale) {
+ setOption(Option.LOCALE.key, newLocale.toString());
+ firePropertyChange(PROPERTY_LOCALE, null, newLocale);
+ }
+
+ public void setFontSize(Float newFontSize) {
+ Float oldValue = getFontSize();
+ if (log.isDebugEnabled()) {
+ log.debug("changing font-size to " + newFontSize);
+ }
+ setOption(Option.FONT_SIZE.key, newFontSize.toString());
+ firePropertyChange(PROPERTY_FONT_SIZE, oldValue, newFontSize);
+ }
+
+ //////////////////////////////////////////////////
+ // Toutes les options disponibles
+ //////////////////////////////////////////////////
+
+ public enum Option implements OptionDef {
+
+ CONFIG_FILE(
+ CONFIG_FILE_NAME,
+ _("jaxxdemo.config.configFileName.description"),
+ "jaxxdemo",
+ String.class,
+ true,
+ true),
+ FULL_SCREEN(
+ "ui.fullscreen",
+ _("jaxxdemo.config.ui.fullscreen"),
+ "false",
+ Boolean.class,
+ false,
+ false),
+ LOCALE(
+ "ui." + PROPERTY_LOCALE,
+ _("jaxxdemo.config.ui.locale"),
+ Locale.FRANCE.toString(),
+ Locale.class,
+ false,
+ false),
+ FONT_SIZE(
+ "ui." + PROPERTY_FONT_SIZE,
+ _("jaxxdemo.config.ui.fontSize"),
+ "10f",
+ Float.class,
+ false,
+ false);
+
+ public final String key;
+
+ public final String description;
+
+ public String defaultValue;
+
+ public final Class<?> type;
+
+ public boolean _transient;
+
+ public boolean _final;
+
+ Option(String key,
+ String description,
+ String defaultValue,
+ Class<?> type,
+ boolean _transient,
+ boolean _final) {
+ this.key = key;
+ this.description = description;
+ this.defaultValue = defaultValue;
+ this.type = type;
+ this._final = _final;
+ this._transient = _transient;
+ }
+
+ @Override
+ public boolean isFinal() {
+ return _final;
+ }
+
+ @Override
+ public void setDefaultValue(String defaultValue) {
+ this.defaultValue = defaultValue;
+ }
+
+ @Override
+ public void setTransient(boolean _transient) {
+ this._transient = _transient;
+ }
+
+ @Override
+ public void setFinal(boolean _final) {
+ this._final = _final;
+ }
+
+ @Override
+ public boolean isTransient() {
+ return _transient;
+ }
+
+ @Override
+ public String getDefaultValue() {
+ return defaultValue;
+ }
+
+ @Override
+ public String getDescription() {
+ return description;
+ }
+
+ @Override
+ public String getKey() {
+ return key;
+ }
+
+ @Override
+ public Class<?> getType() {
+ return type;
+ }
+ }
+}
Property changes on: trunk/jaxx-tutorial-config/src/main/java/jaxx/demo/config/DemoConfig.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/java/jaxx/demo/config/RunDemo.java
===================================================================
--- trunk/jaxx-tutorial-config/src/main/java/jaxx/demo/config/RunDemo.java (rev 0)
+++ trunk/jaxx-tutorial-config/src/main/java/jaxx/demo/config/RunDemo.java 2010-05-07 15:48:43 UTC (rev 1880)
@@ -0,0 +1,141 @@
+package jaxx.demo.config;
+
+import jaxx.runtime.SwingUtil;
+import jaxx.runtime.context.DefaultApplicationContext;
+import jaxx.runtime.context.JAXXInitialContext;
+import jaxx.runtime.swing.editor.config.ConfigUIHelper;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.nuiton.i18n.I18n;
+import org.nuiton.i18n.init.DefaultI18nInitializer;
+
+import javax.swing.JFrame;
+import javax.swing.JOptionPane;
+import java.util.Arrays;
+import java.util.Date;
+
+import static org.nuiton.i18n.I18n._;
+import static org.nuiton.i18n.I18n.n_;
+
+/**
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 2.0.2
+ */
+public class RunDemo {
+
+ /** Logger */
+ private static Log log = LogFactory.getLog(RunDemo.class);
+
+ /** The singleton instance of the main context */
+ protected static DefaultApplicationContext context;
+
+ public static void main(String[] args) {
+
+ log.info("JAXX Demo start at " + new Date() + " args: " + Arrays.toString(args));
+
+ try {
+
+ I18n.setInitializer(new DefaultI18nInitializer("jaxx-tutorial-config-i18n"));
+
+ // init config
+ DemoConfig config = new DemoConfig();
+
+ // init i18n
+ I18n.init(config.getLocale());
+
+ // prepare ui look&feel and load ui properties
+
+ try {
+ SwingUtil.initNimbusLoookAndFeel();
+ } catch (Exception e) {
+ // could not find nimbus look-and-feel
+ log.warn(_("jaxxdemo.warning.nimbus.landf"));
+ } catch (Throwable e) {
+ log.warn(_("jaxxdemo.warning.no.ui"));
+ }
+
+ // instanciate config helper
+ ConfigUIHelper helper = new ConfigUIHelper(config);
+
+ // build the config ui
+ buildConfigUI(helper);
+
+ // display it
+ JFrame parentUI = new JFrame();
+
+ helper.displayUI(parentUI, true);
+
+ // will force quit after quitting config ui
+ parentUI.dispose();
+
+ } catch (Exception e) {
+ log.error(e.getMessage(), e);
+ }
+ }
+
+ public static void buildConfigUI(ConfigUIHelper helper) {
+
+ Runnable reloadUICallback = new Runnable() {
+
+ @Override
+ public void run() {
+ if (log.isInfoEnabled()) {
+ log.info("will say Hello world");
+ }
+ JOptionPane.showMessageDialog(null, "Hello World!");
+ }
+ };
+
+ Runnable reloadApplicationCallback = new Runnable() {
+
+ @Override
+ public void run() {
+ if (log.isInfoEnabled()) {
+ log.info("will reload appplication");
+ }
+ if (log.isInfoEnabled()) {
+ log.info("will say Good Bye world");
+ }
+ JOptionPane.showMessageDialog(null, "Good Bye World!");
+ }
+ };
+
+ helper.registerCallBack("ui",
+ n_("demo.action.reload.ui"),
+ SwingUtil.createActionIcon("reload-ui"),
+ reloadUICallback);
+
+ helper.registerCallBack("application",
+ n_("demo.action.reload.application"),
+ SwingUtil.createActionIcon("reload-application"),
+ reloadApplicationCallback);
+
+ // categorie repertoires
+
+ helper.addCategory(n_("jaxxdemo.config.category.directories"),
+ n_("jaxxdemo.config.category.directories.description"));
+
+ helper.addOption(DemoConfig.Option.CONFIG_FILE);
+
+ // others
+ helper.addCategory(n_("jaxxdemo.config.category.other"),
+ n_("jaxxdemo.config.category.other.description"));
+
+ helper.addOption(DemoConfig.Option.FULL_SCREEN);
+ helper.setOptionPropertyName(DemoConfig.PROPERTY_FULLSCREEN);
+ helper.setOptionCallBack("ui");
+
+ helper.addOption(DemoConfig.Option.FONT_SIZE);
+ helper.setOptionPropertyName(DemoConfig.PROPERTY_FONT_SIZE);
+ helper.setOptionCallBack("application");
+
+ helper.addOption(DemoConfig.Option.LOCALE);
+ helper.setOptionPropertyName(DemoConfig.PROPERTY_LOCALE);
+ helper.setOptionCallBack("ui");
+
+ helper.buildUI(new JAXXInitialContext(),
+ "jaxxdemo.config.category.other");
+
+ }
+
+}
Property changes on: trunk/jaxx-tutorial-config/src/main/java/jaxx/demo/config/RunDemo.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/i18n/jaxx-tutorial-config-en_GB.properties
===================================================================
--- trunk/jaxx-tutorial-config/src/main/resources/i18n/jaxx-tutorial-config-en_GB.properties (rev 0)
+++ trunk/jaxx-tutorial-config/src/main/resources/i18n/jaxx-tutorial-config-en_GB.properties 2010-05-07 15:48:43 UTC (rev 1880)
@@ -0,0 +1,14 @@
+config.title=
+demo.action.reload.application=Reload application
+demo.action.reload.ui=Reload UI
+jaxxdemo.config.category.directories=Files
+jaxxdemo.config.category.directories.description=Files used by application
+jaxxdemo.config.category.other=Others
+jaxxdemo.config.category.other.description=Others preferences
+jaxxdemo.config.configFileName.description=Configuration file name
+jaxxdemo.config.ui.fontSize=default font size to use in sources
+jaxxdemo.config.ui.fullscreen=To change the screen mode (true for full screen)
+jaxxdemo.config.ui.locale=Language used in application
+jaxxdemo.message.config.loaded=Configuration of JAXXDemo v. %1$s loaded.
+jaxxdemo.warning.nimbus.landf=Could not init nymbus look and feel, you need at leasr version 1.6u10 of java.
+jaxxdemo.warning.no.ui=No ui environnement detected
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/i18n/jaxx-tutorial-config-en_GB.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/i18n/jaxx-tutorial-config-fr_FR.properties
===================================================================
--- trunk/jaxx-tutorial-config/src/main/resources/i18n/jaxx-tutorial-config-fr_FR.properties (rev 0)
+++ trunk/jaxx-tutorial-config/src/main/resources/i18n/jaxx-tutorial-config-fr_FR.properties 2010-05-07 15:48:43 UTC (rev 1880)
@@ -0,0 +1,14 @@
+config.title=
+demo.action.reload.application=Redemarrer l'application
+demo.action.reload.ui=Recharger l'interface graphique
+jaxxdemo.config.category.directories=R\u00E9pertoires
+jaxxdemo.config.category.directories.description=R\u00E9pertoires de l'application
+jaxxdemo.config.category.other=Autre
+jaxxdemo.config.category.other.description=Autres options
+jaxxdemo.config.configFileName.description=Le nom du fichier de configuration
+jaxxdemo.config.ui.fontSize=La taille de la police \u00E0 utiliser pour visualiser dans les sources
+jaxxdemo.config.ui.fullscreen=Pour afficher l'aplication en mode pleine \u00E9cran
+jaxxdemo.config.ui.locale=La langue utilis\u00E9e par l'application
+jaxxdemo.message.config.loaded=Configuration de JAXX Demo v. %1$s charg\u00E9e.
+jaxxdemo.warning.nimbus.landf=Le look and Feel Nimbus n'a pas \u00E9t\u00E9 trouv\u00E9, il faut au moins la version 1.6u10 de java.
+jaxxdemo.warning.no.ui=Aucun environnement graphique d\u00E9tect\u00E9
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/i18n/jaxx-tutorial-config-fr_FR.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-about.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-about.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-accept.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-accept.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-block.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-block.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-close.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-close.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-config.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-config.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-exit.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-exit.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-fullscreen.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-fullscreen.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-help.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-help.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-i18n-fr.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-i18n-fr.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-i18n-uk.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-i18n-uk.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-leave-fullscreen.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-leave-fullscreen.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-reload-application.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-reload-application.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-reload-ui.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-reload-ui.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-show-help.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-show-help.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-site.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-site.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/action-translate.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/action-translate.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/icons/jaxx.png
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/icons/jaxx.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/main/resources/log4j.properties
===================================================================
--- trunk/jaxx-tutorial-config/src/main/resources/log4j.properties (rev 0)
+++ trunk/jaxx-tutorial-config/src/main/resources/log4j.properties 2010-05-07 15:48:43 UTC (rev 1880)
@@ -0,0 +1,12 @@
+# Global logging configuration
+log4j.rootLogger=ERROR, stdout
+# Console output...
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) %M - %m%n
+
+log4j.logger.jaxx.demo=INFO
+#log4j.logger.jaxx.demo.config.DemoConfig=DEBUG
+log4j.logger.jaxx.runtime.swing.editor.config=INFO
+#log4j.logger.jaxx.runtime.swing.editor.config.model.ConfigUIModelBuilder=DEBUG
+log4j.logger.org.nuiton=WARN
Property changes on: trunk/jaxx-tutorial-config/src/main/resources/log4j.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/site/rst/images/webstart.gif
===================================================================
(Binary files differ)
Property changes on: trunk/jaxx-tutorial-config/src/site/rst/images/webstart.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/site/rst/index.rst
===================================================================
--- trunk/jaxx-tutorial-config/src/site/rst/index.rst (rev 0)
+++ trunk/jaxx-tutorial-config/src/site/rst/index.rst 2010-05-07 15:48:43 UTC (rev 1880)
@@ -0,0 +1,22 @@
+===============
+Tutorial Config
+===============
+
+TODO
+
+Set it in action
+----------------
+
+|webstart|
+
+To run this example in `Java Web Start`_, click the `following link`_.
+
+For more details about the `Jaxx Demo webstart`_.
+
+.. _Java Web Start: http://java.sun.com/products/javawebstart/
+
+.. |webstart| image:: images/webstart.gif
+
+.. _following link: ./jnlp/launch.jnlp
+
+.. _Jaxx Demo webstart: jnlp-report.html
Property changes on: trunk/jaxx-tutorial-config/src/site/rst/index.rst
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/jaxx-tutorial-config/src/site/site_fr.xml
===================================================================
--- trunk/jaxx-tutorial-config/src/site/site_fr.xml (rev 0)
+++ trunk/jaxx-tutorial-config/src/site/site_fr.xml 2010-05-07 15:48:43 UTC (rev 1880)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="${project.name}">
+
+ <bannerLeft>
+ <name>${project.name}</name>
+ <src>${site.home.url}/jaxx.png</src>
+ <href>index.html</href>
+ </bannerLeft>
+
+ <body>
+
+ <breadcrumbs>
+ <item name="${project.name}" href="index.html"/>
+ </breadcrumbs>
+
+ <menu ref="parent"/>
+
+ <menu name="Utilisateur" inherited="top">
+ <item name="Accueil" href="index.html"/>
+ <item name="Lancer la démo" href="jnlp/launch.jnlp"/>
+ </menu>
+
+ </body>
+</project>
Property changes on: trunk/jaxx-tutorial-config/src/site/site_fr.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-05-07 08:52:07 UTC (rev 1879)
+++ trunk/pom.xml 2010-05-07 15:48:43 UTC (rev 1880)
@@ -49,6 +49,7 @@
<module>maven-jaxx-plugin</module>
<module>jaxx-widgets</module>
+ <module>jaxx-tutorial</module>
<!--<module>jaxx-demo</module>-->
</modules>
1
0
r1879 - in trunk/src/site: . resources resources/tutos rst rst/tutos
by jcouteau@users.nuiton.org 07 May '10
by jcouteau@users.nuiton.org 07 May '10
07 May '10
Author: jcouteau
Date: 2010-05-07 10:52:07 +0200 (Fri, 07 May 2010)
New Revision: 1879
Url: http://nuiton.org/repositories/revision/jaxx/1879
Log:
Add Helloworld tutorial
Added:
trunk/src/site/resources/tutos/
trunk/src/site/resources/tutos/helloworld.png
trunk/src/site/resources/tutos/helloworld.zip
trunk/src/site/rst/tutos/
trunk/src/site/rst/tutos/helloworld.rst
Modified:
trunk/src/site/site_fr.xml
Added: trunk/src/site/resources/tutos/helloworld.png
===================================================================
(Binary files differ)
Property changes on: trunk/src/site/resources/tutos/helloworld.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/src/site/resources/tutos/helloworld.zip
===================================================================
(Binary files differ)
Property changes on: trunk/src/site/resources/tutos/helloworld.zip
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/src/site/rst/tutos/helloworld.rst
===================================================================
--- trunk/src/site/rst/tutos/helloworld.rst (rev 0)
+++ trunk/src/site/rst/tutos/helloworld.rst 2010-05-07 08:52:07 UTC (rev 1879)
@@ -0,0 +1,146 @@
+Hello World
+===========
+
+Dans ce tutoriel, nous allons créer une fenêtre qui affiche le message
+"Hello World". Jaxx s'utilise par défaut avec le gestionnaire de
+dépendances/projet Maven. Nous supposons dans la suite de ce tutoriel que vous
+savez utiliser Maven.
+
+Créer un projet Maven/configuration de JAXX
+-------------------------------------------
+
+Nous allons commencer par créer un projet Maven simple, qui aura comme unique
+source un fichier jaxx.
+
+Dans le pom.xml, il faut configurer les repository nuiton pour pouvoir
+bénéficier de JAXX et de son plugin Maven::
+
+ <repositories>
+
+ <!-- nuiton releases repository, needed to get jaxx -->
+
+ <repository>
+ <id>nuiton.release</id>
+ <name>NuitonReleaseRepository</name>
+ <url>http://maven.nuiton.org/release</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ </repository>
+
+ </repositories>
+
+ <pluginRepositories>
+
+ <!-- nuiton plugin releases repository, needed to get jaxx plugin -->
+
+ <pluginRepository>
+
+ <id>nuiton.release</id>
+ <name>NuitonReleaseRepository</name>
+ <url>http://maven.nuiton.org/release</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ <releases>
+ <enabled>true</enabled>
+ <checksumPolicy>warn</checksumPolicy>
+ </releases>
+ </pluginRepository>
+
+ </pluginRepositories>
+
+Il est aussi nécessaire d'ajouter la dépendance vers la librairie JAXX pour
+la compilation et l'exécution::
+
+ <dependencies>
+
+ <!-- librairie Jaxx -->
+ <dependency>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>jaxx-runtime</artifactId>
+ <version>2.0.1</version>
+ <scope>compile</scope>
+ </dependency>
+
+ </dependencies>
+
+Nous allons configurer aussi le plugin Maven pour la génération depuis les
+fichiers JAXX::
+
+ <build>
+ <plugins>
+
+ <plugin>
+ <groupId>org.nuiton.jaxx</groupId>
+ <artifactId>maven-jaxx-plugin</artifactId>
+ <version>2.0.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+
+Le plugin JAXX doit être dans la même version que jaxx-runtime. Il faut
+spécifier l'exécution du goal generate du plugin pour que le fichier JAXX soit
+transformé en fichier Java.
+
+Pour les autres plugins, je vous laisse les configurer seuls, il s'agit juste
+de configurer maven-compiler plugins pour compiler les sources en version 1.5,
+et maven-jar-plugin et maven-dependency-plugin pour rendre le jar exécutable.
+Pour ceux qui ne sauraient pas comment faire cela, je vous laisse regarder un
+oeil aux sources disponibles au téléchargement en bas de cette page.
+
+Le fichier JAXX
+---------------
+
+Maintenant que le projet est configuré.Nous allons commencer par créer un
+fichier JAXX nommé helloworld.jaxx que nous placerons dans le package de notre
+choix (dans l'exemple, c'est org.nuiton.jaxx.tutos.helloworld mais libre à vous
+d'adapter) ::
+
+ <Application title='Hello World'>
+ <JLabel text='Hello World'/>
+ </Application>
+
+Ce fichier Jaxx est très simple, il va créer une Application helloworld qui
+étends une JFrame qui aura pour titre "Hello World" et placera dedans un
+JLabel "Hello World".
+
+Une fois que tout est créé, on se place à la racine du projet et on le build
+avec la commande ::
+
+ mvn compile
+
+Cela aura pour effet de créer notre jar exécutable si tous les plugins ont bien
+été configurés.
+
+On peut alors le lancer et on obtient le résultat suivant:
+
+.. image::helloworld.png
+
+Conclusion
+----------
+
+Ce tutoriel vous a appris comment créer simplement une petite application Swing,
+très simple au demeurant, en utilisant seulement 3 lignes de code Jaxx. Dans les
+tutoriels suivant vous allez découvrir comment réaliser des applications
+dynamiques beaucoup plus complexes.
+
+Sources de ce tutoriel
+----------------------
+
+Les sources de ce tutoriel sont disponibles au `telechargement ici`_.
+
+.. _telechargement ici::helloworld.zip
+
Modified: trunk/src/site/site_fr.xml
===================================================================
--- trunk/src/site/site_fr.xml 2010-05-05 13:35:08 UTC (rev 1878)
+++ trunk/src/site/site_fr.xml 2010-05-07 08:52:07 UTC (rev 1879)
@@ -53,11 +53,14 @@
<item name="Qu'est-ce qu'un fichier JAXX ?" href="JAXXFile.html"/>
<item name="Fonctionalités de base">
<item name="Utiliser les objets Swing" href="useSwingObjects.html"/>
+ <item name="Les scripts JAXX" href="scripting.html"/>
+ <item name="Le data-binding" href="dataBinding.html"/>
<item name="Utiliser des styles" href="useStylesheets.html"/>
- <item name="Le data-binding" href="dataBinding.html"/>
- <item name="Les scripts JAXX" href="scripting.html"/>
</item>
<item name="Démo" href="demo.html"/>
+ <item name="Tutoriels">
+ <item name="Hello World" href="tutos/helloWorld.html"/>
+ </item>
</menu>
<menu name="Ancienne documentation">
1
0
Author: jcouteau
Date: 2010-05-05 15:35:08 +0200 (Wed, 05 May 2010)
New Revision: 1878
Url: http://nuiton.org/repositories/revision/jaxx/1878
Log:
Add links to jaxx user projects
Modified:
trunk/src/site/rst/index.rst
Modified: trunk/src/site/rst/index.rst
===================================================================
--- trunk/src/site/rst/index.rst 2010-05-05 11:11:43 UTC (rev 1877)
+++ trunk/src/site/rst/index.rst 2010-05-05 13:35:08 UTC (rev 1878)
@@ -47,7 +47,7 @@
.. _demo::jaxx-demo/index.html
-TODO A faire car plus a jour...
+.. TODO A faire car plus a jour...
Le projet JAXX ...
@@ -60,7 +60,7 @@
Ce dont vous avez besoin dans vos dépendances sont uniquement les modules jaxx-runtime-xxx.
-TODO A finir la présentation de la nouvelle architecture (dans la version 1.2).
+.. TODO A finir la présentation de la nouvelle architecture (dans la version 1.2).
**Veuillez consulter la JavaDoc pour de plus ample détails sur les différentes
librairies.**
@@ -85,26 +85,35 @@
* NavigationModel_
-Who use JAXX ?
---------------
+Qui utilise JAXX ?
+------------------
-Here is a list of projects using JAXX :
+Voici une liste de projets utilisant JAXX :
- * Isis-fish
+ * Isis-fish_ - Logiciel de simulation de pêcheries complexes - GPL
- * simExplorer-si
+ * simExplorer-si_
- * ObServe
+ * ObServe_ - Logiciel de saisie de données concernant la pèche thonière - GPL
- * Lima
+ * Lima_ - Logiciel de comptabilité française adaptée aux PME - GPL
- * Vradi
+ * Vradi_ - Logiciel de traitement de flux XML - GPL
* Nuiton-i18n-editor
- TODO Finish this list and add icons and links to site
+.. TODO Finish this list and add icons
+.. _Isis-fish: http://isis-fish.labs.libre-entreprise.org/
+.. _simExplorer-si: http://www.simexplorer.org
+
+.. _ObServe: http://observe.labs.libre-entreprise.org/observe/
+
+.. _Lima: http://maven-site.chorem.org/lima/
+
+.. _Vradi: http://vradi.labs.libre-entreprise.org/vradi/index.html
+
.. _Migration: migration.html
.. _Core: Core.html
1
0
r1877 - trunk/jaxx-runtime/src/main/java/jaxx/runtime/validator/swing
by tchemit@users.nuiton.org 05 May '10
by tchemit@users.nuiton.org 05 May '10
05 May '10
Author: tchemit
Date: 2010-05-05 13:11:43 +0200 (Wed, 05 May 2010)
New Revision: 1877
Url: http://nuiton.org/repositories/revision/jaxx/1877
Log:
fix NPE when changing contextName before having init UI
Modified:
trunk/jaxx-runtime/src/main/java/jaxx/runtime/validator/swing/SwingValidator.java
Modified: trunk/jaxx-runtime/src/main/java/jaxx/runtime/validator/swing/SwingValidator.java
===================================================================
--- trunk/jaxx-runtime/src/main/java/jaxx/runtime/validator/swing/SwingValidator.java 2010-05-05 11:11:18 UTC (rev 1876)
+++ trunk/jaxx-runtime/src/main/java/jaxx/runtime/validator/swing/SwingValidator.java 2010-05-05 11:11:43 UTC (rev 1877)
@@ -33,8 +33,9 @@
import org.apache.commons.logging.LogFactory;
import org.jdesktop.jxlayer.JXLayer;
-import javax.swing.*;
-import java.awt.*;
+import javax.swing.JComponent;
+import javax.swing.SwingUtilities;
+import java.awt.Container;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
@@ -145,8 +146,6 @@
/** ui renderer class */
protected Class<? extends AbstractBeanValidatorUI> uiClass;
-
-
public SwingValidator(Class<B> beanClass,
String contextName,
BeanValidatorScope... filterScopes) {
@@ -204,31 +203,14 @@
@Override
public void setContextName(String contextName) {
- /*Map<ValidatorField<B>, List<ValidatorErrorListener>> oldListeners = new HashMap<ValidatorField<B>, List<ValidatorErrorListener>>();
- for (ValidatorField<B> field : fields) {
- ValidatorErrorListener[] listeners = field.getValidatorErrorListeners();
- List<ValidatorErrorListener> toReinject = new ArrayList<ValidatorErrorListener>();
- for (ValidatorErrorListener listener : listeners) {
- if (listener instanceof AbstractBeanValidatorUI) {
- // this listener will be reinject via installUIs method
- continue;
- }
- toReinject.add(listener);
- }
- oldListeners.put(field, toReinject);
- }*/
super.setContextName(contextName);
// must reinstall ui
- installUIs();
- // reinject none ui listeners
- /*for (Entry<ValidatorField<B>, List<ValidatorErrorListener>> entry : oldListeners.entrySet()) {
- ValidatorField<B> field = getField(entry.getKey().getName());
- for (ValidatorErrorListener listener : entry.getValue()) {
- field.addValidatorErrorListener(listener);
+ if (fieldRepresentation != null) {
+
+ // can not install uis while field are not still init...
+ installUIs();
}
- }
- oldListeners.clear();*/
}
/**
@@ -246,6 +228,11 @@
"' is not defined in validator (no rules on it)");
return;
}
+ if (log.isDebugEnabled()) {
+ log.debug("register field [" + fieldname + "] with component : " +
+ c.getName()
+ );
+ }
fieldRepresentation.put(fieldname, c);
}
@@ -267,6 +254,11 @@
/** install ui on required components */
public void installUIs() {
+ if (fieldRepresentation == null) {
+ throw new NullPointerException(
+ "fieldRepresentation is null, must init before " +
+ "invoking installUIs method...");
+ }
SwingUtilities.invokeLater(new Runnable() {
@Override
@@ -298,9 +290,9 @@
JComponent c,
Class<? extends AbstractBeanValidatorUI> uiClass)
throws InvocationTargetException,
- IllegalAccessException,
- InstantiationException,
- NoSuchMethodException {
+ IllegalAccessException,
+ InstantiationException,
+ NoSuchMethodException {
if (old == c) {
// same component, nothing to do
return;
1
0
05 May '10
Author: tchemit
Date: 2010-05-05 13:11:18 +0200 (Wed, 05 May 2010)
New Revision: 1876
Url: http://nuiton.org/repositories/revision/jaxx/1876
Log:
improve code
Modified:
trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/CardLayout2.java
Modified: trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/CardLayout2.java
===================================================================
--- trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/CardLayout2.java 2010-05-05 10:07:39 UTC (rev 1875)
+++ trunk/jaxx-runtime/src/main/java/jaxx/runtime/swing/CardLayout2.java 2010-05-05 11:11:18 UTC (rev 1876)
@@ -37,15 +37,15 @@
import java.util.List;
/**
- * An override of the awt {@link java.awt.CardLayout}.
+ * An override of the awt {@link CardLayout}.
* <p/>
* Because in the original layout is not overridable : everything is package level accessible.
* <p/>
* This new class offers to test if a constrains (as a Serializable) is actually dealed by the layout,
- * via the method {@link #contains(java.io.Serializable)}.
+ * via the method {@link #contains(Serializable)}.
* <p/>
* We had also another method to obtain the current visible component in a container layouted by the class,
- * via the method {@link #getVisibleComponent(java.awt.Container)}.
+ * via the method {@link #getVisibleComponent(Container)}.
*
* @author tchemit <chemit(a)codelutin.com>
* @version 1.0
@@ -80,7 +80,8 @@
* Test if a constrains is contained in the layout.
*
* @param constraints l'identifiant a tester
- * @return <code>true</code> si l'identifiant est deja present dans le layout, <code>false</code> autrement.
+ * @return {@code true} si l'identifiant est deja present dans le
+ * layout, {@code false} otherwise.
*/
public boolean contains(Serializable constraints) {
return contexts.contains(constraints);
@@ -93,9 +94,7 @@
* @return the component visible in the container.
*/
public Component getVisibleComponent(Container container) {
- if (container.getLayout() != this) {
- throw new IllegalArgumentException("the container is not managed by the current layout");
- }
+ checkContainer(container);
for (Component component : container.getComponents()) {
if (component.isVisible()) {
return component;
@@ -106,12 +105,8 @@
}
public Component getComponent(Container container, String constraints) {
- if (container.getLayout() != this) {
- throw new IllegalArgumentException("the container is not manage by the current layout");
- }
- if (!contexts.contains(constraints)) {
- throw new IllegalArgumentException("the constraints '" + constraints + "' is not supported by this layout : " + contexts);
- }
+ checkContainer(container);
+ checkConstraints(constraints);
int index = contexts.indexOf(constraints);
return container.getComponents()[index];
}
@@ -123,8 +118,8 @@
* @param parent the parent container in which to do the layout
* @return the preferred dimensions to lay out the subcomponents
* of the specified container
- * @see java.awt.Container#getPreferredSize
- * @see java.awt.CardLayout#minimumLayoutSize
+ * @see Container#getPreferredSize
+ * @see CardLayout#minimumLayoutSize
*/
@Override
public Dimension preferredLayoutSize(Container parent) {
@@ -147,8 +142,8 @@
* @param parent the parent container in which to do the layout
* @return the minimum dimensions required to lay out the
* subcomponents of the specified container
- * @see java.awt.Container#doLayout
- * @see java.awt.CardLayout#preferredLayoutSize
+ * @see Container#doLayout
+ * @see CardLayout#preferredLayoutSize
*/
@Override
public Dimension minimumLayoutSize(Container parent) {
@@ -170,7 +165,7 @@
* in the specified target container.
*
* @param target the component which needs to be laid out
- * @see java.awt.Container
+ * @see Container
* @see #minimumLayoutSize
* @see #preferredLayoutSize
*/
@@ -197,7 +192,7 @@
* insets, horizontal gaps, and vertical gaps.
*
* @param parent the parent container in which to do the layout
- * @see java.awt.Container#doLayout
+ * @see Container#doLayout
*/
@Override
public void layoutContainer(Container parent) {
@@ -231,9 +226,7 @@
* @param parent the parent container linked with the layout
*/
public void reset(Container parent) {
- if (parent.getLayout() != this) {
- throw new IllegalArgumentException("wrong parent for CardLayout");
- }
+ checkContainer(parent);
for (Component component : parent.getComponents()) {
removeLayoutComponent(component);
parent.remove(component);
@@ -242,4 +235,19 @@
}
+ protected void checkContainer(Container container) {
+ if (!equals(container.getLayout())) {
+ throw new IllegalArgumentException("the container is not managed by the current layout");
+ }
+ }
+
+ protected void checkConstraints(String constraints) {
+ if (!contains(constraints)) {
+ throw new IllegalArgumentException("the constraints '" + constraints + "' is not supported by this layout : " + contexts);
+ }
+ }
+
+ public Serializable[] getContexts() {
+ return contexts.toArray(new Serializable[contexts.size()]);
+ }
}
1
0
Author: jcouteau
Date: 2010-05-05 12:07:39 +0200 (Wed, 05 May 2010)
New Revision: 1875
Url: http://nuiton.org/repositories/revision/jaxx/1875
Log:
Add demo page
Added:
trunk/src/site/resources/demo1.png
trunk/src/site/resources/demo2.png
trunk/src/site/rst/demo.rst
Modified:
trunk/src/site/site_fr.xml
Added: trunk/src/site/resources/demo1.png
===================================================================
(Binary files differ)
Property changes on: trunk/src/site/resources/demo1.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/src/site/resources/demo2.png
===================================================================
(Binary files differ)
Property changes on: trunk/src/site/resources/demo2.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/src/site/rst/demo.rst
===================================================================
--- trunk/src/site/rst/demo.rst (rev 0)
+++ trunk/src/site/rst/demo.rst 2010-05-05 10:07:39 UTC (rev 1875)
@@ -0,0 +1,33 @@
+====
+Demo
+====
+
+Une démonstration de JAXX est disponible en utilisant Java Webstart.
+
+`Demonstration de JAXX`_
+
+..Fonctionne seulement si site déployé
+.. _Demonstration de JAXX::jaxx-demo/jnlp/launch.jnlp
+
+Cette démonstration a été réalisée en utilisant JAXX, et vous pouvez visionner
+tout ou partie du code source en cliquant sur l'onglet 'Sources'.
+
+Dans cette démonstration, vous pouvez observer nombre des atouts de JAXX et de
+ses composants :
+
+ * Boutons
+ * Eléments de formulaire
+ * Layouts
+ * Menus
+ * Fenêtres
+ * Editeurs
+ * Arbre de navigation
+ * Data-binding
+ * Validation
+
+.. image::demo1.png
+ :width:800px
+
+.. image::demo2.png
+ :width:800px
+
\ No newline at end of file
Modified: trunk/src/site/site_fr.xml
===================================================================
--- trunk/src/site/site_fr.xml 2010-05-05 08:50:11 UTC (rev 1874)
+++ trunk/src/site/site_fr.xml 2010-05-05 10:07:39 UTC (rev 1875)
@@ -47,7 +47,7 @@
<item name="${project.name}" href="index.html" />
</breadcrumbs>
- <menu name="Utilisateur">
+ <menu name="Documentation">
<item name="Accueil" href="index.html"/>
<item name="Présentation/Concept" href="presentation.html"/>
<item name="Qu'est-ce qu'un fichier JAXX ?" href="JAXXFile.html"/>
@@ -57,10 +57,11 @@
<item name="Le data-binding" href="dataBinding.html"/>
<item name="Les scripts JAXX" href="scripting.html"/>
</item>
- <item name="Migration JAXX 2.0" href="migration.html"/>
+ <item name="Démo" href="demo.html"/>
</menu>
- <menu name="Développeur">
+ <menu name="Ancienne documentation">
+ <item name="Migration JAXX 2.0" href="migration.html"/>
<item name="A faire" href="Todo.html"/>
</menu>
1
0
Author: jcouteau
Date: 2010-05-05 10:50:11 +0200 (Wed, 05 May 2010)
New Revision: 1874
Url: http://nuiton.org/repositories/revision/jaxx/1874
Log:
Add doc about scripting
Added:
trunk/src/site/rst/scripting.rst
Modified:
trunk/src/site/site_fr.xml
Added: trunk/src/site/rst/scripting.rst
===================================================================
--- trunk/src/site/rst/scripting.rst (rev 0)
+++ trunk/src/site/rst/scripting.rst 2010-05-05 08:50:11 UTC (rev 1874)
@@ -0,0 +1,79 @@
+===============================================
+Utiliser des scripts pour améliorer l'ordinaire
+===============================================
+
+Dans JAXX, le scripting c'est la capacité d'embarquer du code Java directement
+dans les fichiers JAXX. Et contrairement à ce qu'on entends par script, le code
+n'est pas interprété à l'exécution, mais compilé afin de ne pas souffrir d'un
+défaut de performances.
+
+Dans JAXX, les scripts peuvent apparaitre à plein d'endroits :
+
+ * dans des balise script
+ * dans le data binding
+ * dans les gestionnaires d'évènements
+ * dans l'attribut constraints
+ * dans les paramètres des constructeurs
+
+Les balises script
+------------------
+
+Du code Java peut être embarqué n'importe où dans les fichiers JAXX en utilisant
+les balises <script>. Les balises script peuvent définir des méthodes, des
+champs, des constructeurs, et peuvent aussi exécuter directement du code Java.
+
+Exemple::
+
+ <script><![CDATA[
+ import javax.swing.table.JTableHeader;
+
+ public SearchHandler getSearchHandler() {
+ return getContextValue(SearchHandler.class);
+ }
+ ]]>
+ </script>
+
+Le data-binding
+---------------
+
+Le code Java peut être placé en valeur d'attributs XML quand il est échappé par
+des accolades ({ }). La valeur de l'attribut est ensuite calculée en utilisant
+le code Java, et recalculée quand ses dépendances (s'il y en a) changent. Cette
+utilisation des script est appelée data-binding_
+
+.. _data-binding::dataBinding.html
+
+Exemple::
+
+ <JPanel layout='{new BorderLayout()}'>
+
+Gestionnaires d'évènements
+--------------------------
+
+Dans les balises de classes, les attributs dont le nom commence par 'on' suivi
+d'une majuscule (e.g. onMousePressed, onActionPerformed) sont des gestionnaires
+d'évènement. La valeur de l'attribut est du code Java qui est exécuté lorsque
+l'évènement est lancé.
+
+Exemple::
+
+ <JButton onActionPerformed='myAction()'/>
+
+Attribut constraints
+--------------------
+
+Sur les composants, l'attribut constraints spécifie les contraintes du layout
+(e.g. BorderLayout.NORTH, GridBagConstraints) qui devraient être utilisées
+lorsque le composant est ajouté dans son conteneur parent. La valeur de cet
+attribut est du code Java qui est évalué à la création du composant.
+
+Exemple::
+
+ <JButton constraints='BorderLayout.SOUTH'/>
+
+Paramètres des constructeurs
+----------------------------
+
+Dans les balises de classe, l'attribut constructorParams spécifie les
+paramètres, séparés par des virgules, du constructeur de l'objet. Ces paramètres
+sont interprétés comme du code Java.
Modified: trunk/src/site/site_fr.xml
===================================================================
--- trunk/src/site/site_fr.xml 2010-05-04 19:48:38 UTC (rev 1873)
+++ trunk/src/site/site_fr.xml 2010-05-05 08:50:11 UTC (rev 1874)
@@ -55,6 +55,7 @@
<item name="Utiliser les objets Swing" href="useSwingObjects.html"/>
<item name="Utiliser des styles" href="useStylesheets.html"/>
<item name="Le data-binding" href="dataBinding.html"/>
+ <item name="Les scripts JAXX" href="scripting.html"/>
</item>
<item name="Migration JAXX 2.0" href="migration.html"/>
</menu>
1
0