JBoss Rich Faces SVN: r5886 - in branches/3.1.x/framework/impl/src/main/java/org: ajax4jsf/resource/util and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-02-06 19:29:13 -0500 (Wed, 06 Feb 2008)
New Revision: 5886
Added:
branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/resource/util/
branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/resource/util/URLToStreamHelper.java
Removed:
branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/resource/util/URLToStreamHelper.java
Modified:
branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java
branches/3.1.x/framework/impl/src/main/java/org/richfaces/skin/SkinFactoryImpl.java
Log:
http://jira.jboss.com/jira/browse/RF-1284
Modified: branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java
===================================================================
--- branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java 2008-02-07 00:21:32 UTC (rev 5885)
+++ branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java 2008-02-07 00:29:13 UTC (rev 5886)
@@ -47,10 +47,7 @@
import javax.servlet.ServletContext;
import org.ajax4jsf.Messages;
-import org.ajax4jsf.resource.InternetResource;
-import org.ajax4jsf.resource.InternetResourceBuilder;
-import org.ajax4jsf.resource.ResourceNotFoundException;
-import org.ajax4jsf.resource.ResourceRenderer;
+import org.ajax4jsf.resource.util.URLToStreamHelper;
import org.ajax4jsf.util.base64.Codec;
import org.ajax4jsf.webapp.WebXml;
import org.apache.commons.digester.Digester;
@@ -154,7 +151,7 @@
+ resourceConfig.toExternalForm());
}
- InputStream in = resourceConfig.openStream();
+ InputStream in = URLToStreamHelper.urlToStream(resourceConfig);
try {
Digester digester = new Digester();
digester.setValidating(false);
Copied: branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/resource/util (from rev 5885, trunk/framework/impl/src/main/java/org/ajax4jsf/resource/util)
Deleted: branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/resource/util/URLToStreamHelper.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/util/URLToStreamHelper.java 2008-02-07 00:21:32 UTC (rev 5885)
+++ branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/resource/util/URLToStreamHelper.java 2008-02-07 00:29:13 UTC (rev 5886)
@@ -1,59 +0,0 @@
-/**
- * License Agreement.
- *
- * JBoss RichFaces - Ajax4jsf Component Library
- *
- * Copyright (C) 2007 Exadel, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License version 2.1 as published by the Free Software Foundation.
- *
- * This library 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
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-package org.ajax4jsf.resource.util;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.net.URL;
-import java.net.URLConnection;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-/**
- * Utility class to solve JAR locking issue using {@link URLConnection#setUseCaches(boolean)} method.
- * Contains one utility method that gets {@link InputStream} from {@link URL} with caching disabled.
- *
- * Created 07.02.2008
- * @author Nick Belaevski
- * @since 3.2
- */
-
-public final class URLToStreamHelper {
-
- private static final Log log = LogFactory.getLog(URLToStreamHelper.class);
-
- private URLToStreamHelper() {
- super();
- }
-
- public static final InputStream urlToStream(URL url) throws IOException {
- URLConnection connection = url.openConnection();
- try {
- connection.setUseCaches(false);
- } catch (IllegalArgumentException e) {
- log.error(e.getLocalizedMessage(), e);
- }
-
- return connection.getInputStream();
- }
-}
Copied: branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/resource/util/URLToStreamHelper.java (from rev 5885, trunk/framework/impl/src/main/java/org/ajax4jsf/resource/util/URLToStreamHelper.java)
===================================================================
--- branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/resource/util/URLToStreamHelper.java (rev 0)
+++ branches/3.1.x/framework/impl/src/main/java/org/ajax4jsf/resource/util/URLToStreamHelper.java 2008-02-07 00:29:13 UTC (rev 5886)
@@ -0,0 +1,59 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.ajax4jsf.resource.util;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URL;
+import java.net.URLConnection;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+/**
+ * Utility class to solve JAR locking issue using {@link URLConnection#setUseCaches(boolean)} method.
+ * Contains one utility method that gets {@link InputStream} from {@link URL} with caching disabled.
+ *
+ * Created 07.02.2008
+ * @author Nick Belaevski
+ * @since 3.2
+ */
+
+public final class URLToStreamHelper {
+
+ private static final Log log = LogFactory.getLog(URLToStreamHelper.class);
+
+ private URLToStreamHelper() {
+ super();
+ }
+
+ public static final InputStream urlToStream(URL url) throws IOException {
+ URLConnection connection = url.openConnection();
+ try {
+ connection.setUseCaches(false);
+ } catch (IllegalArgumentException e) {
+ log.error(e.getLocalizedMessage(), e);
+ }
+
+ return connection.getInputStream();
+ }
+}
Modified: branches/3.1.x/framework/impl/src/main/java/org/richfaces/skin/SkinFactoryImpl.java
===================================================================
--- branches/3.1.x/framework/impl/src/main/java/org/richfaces/skin/SkinFactoryImpl.java 2008-02-07 00:21:32 UTC (rev 5885)
+++ branches/3.1.x/framework/impl/src/main/java/org/richfaces/skin/SkinFactoryImpl.java 2008-02-07 00:29:13 UTC (rev 5886)
@@ -39,12 +39,10 @@
import javax.faces.el.ValueBinding;
import org.ajax4jsf.Messages;
+import org.ajax4jsf.resource.util.URLToStreamHelper;
import org.ajax4jsf.util.ELUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.richfaces.skin.Skin;
-import org.richfaces.skin.SkinFactory;
-import org.richfaces.skin.SkinNotFoundException;
/**
* Implementation of {@link SkinFactory} with building skins from properties
@@ -159,7 +157,7 @@
URL url = (URL) properties.nextElement();
InputStream propertyStream = null;
try {
- propertyStream = url.openStream();
+ propertyStream = URLToStreamHelper.urlToStream(url);
defaultProperties.load(propertyStream);
} catch (IOException e) {
// DO Nothing...
@@ -294,7 +292,7 @@
URL url = (URL) properties.nextElement();
InputStream propertyStream = null;
try {
- propertyStream = url.openStream();
+ propertyStream = URLToStreamHelper.urlToStream(url);
skinProperties.load(propertyStream);
loadedPropertiesCount++;
} catch (IOException e) {
18 years, 2 months
JBoss Rich Faces SVN: r5885 - in trunk/framework/impl/src/main/java/org: ajax4jsf/resource/util and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2008-02-06 19:21:32 -0500 (Wed, 06 Feb 2008)
New Revision: 5885
Added:
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/util/
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/util/URLToStreamHelper.java
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java
trunk/framework/impl/src/main/java/org/richfaces/skin/SkinFactoryImpl.java
Log:
http://jira.jboss.com/jira/browse/RF-1284
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java 2008-02-06 19:18:44 UTC (rev 5884)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/resource/ResourceBuilderImpl.java 2008-02-07 00:21:32 UTC (rev 5885)
@@ -47,10 +47,7 @@
import javax.servlet.ServletContext;
import org.ajax4jsf.Messages;
-import org.ajax4jsf.resource.InternetResource;
-import org.ajax4jsf.resource.InternetResourceBuilder;
-import org.ajax4jsf.resource.ResourceNotFoundException;
-import org.ajax4jsf.resource.ResourceRenderer;
+import org.ajax4jsf.resource.util.URLToStreamHelper;
import org.ajax4jsf.util.base64.Codec;
import org.ajax4jsf.webapp.WebXml;
import org.apache.commons.digester.Digester;
@@ -154,7 +151,7 @@
+ resourceConfig.toExternalForm());
}
- InputStream in = resourceConfig.openStream();
+ InputStream in = URLToStreamHelper.urlToStream(resourceConfig);
try {
Digester digester = new Digester();
digester.setValidating(false);
Added: trunk/framework/impl/src/main/java/org/ajax4jsf/resource/util/URLToStreamHelper.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/resource/util/URLToStreamHelper.java (rev 0)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/resource/util/URLToStreamHelper.java 2008-02-07 00:21:32 UTC (rev 5885)
@@ -0,0 +1,59 @@
+/**
+ * License Agreement.
+ *
+ * JBoss RichFaces - Ajax4jsf Component Library
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.ajax4jsf.resource.util;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URL;
+import java.net.URLConnection;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+/**
+ * Utility class to solve JAR locking issue using {@link URLConnection#setUseCaches(boolean)} method.
+ * Contains one utility method that gets {@link InputStream} from {@link URL} with caching disabled.
+ *
+ * Created 07.02.2008
+ * @author Nick Belaevski
+ * @since 3.2
+ */
+
+public final class URLToStreamHelper {
+
+ private static final Log log = LogFactory.getLog(URLToStreamHelper.class);
+
+ private URLToStreamHelper() {
+ super();
+ }
+
+ public static final InputStream urlToStream(URL url) throws IOException {
+ URLConnection connection = url.openConnection();
+ try {
+ connection.setUseCaches(false);
+ } catch (IllegalArgumentException e) {
+ log.error(e.getLocalizedMessage(), e);
+ }
+
+ return connection.getInputStream();
+ }
+}
Modified: trunk/framework/impl/src/main/java/org/richfaces/skin/SkinFactoryImpl.java
===================================================================
--- trunk/framework/impl/src/main/java/org/richfaces/skin/SkinFactoryImpl.java 2008-02-06 19:18:44 UTC (rev 5884)
+++ trunk/framework/impl/src/main/java/org/richfaces/skin/SkinFactoryImpl.java 2008-02-07 00:21:32 UTC (rev 5885)
@@ -39,12 +39,10 @@
import javax.faces.el.ValueBinding;
import org.ajax4jsf.Messages;
+import org.ajax4jsf.resource.util.URLToStreamHelper;
import org.ajax4jsf.util.ELUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.richfaces.skin.Skin;
-import org.richfaces.skin.SkinFactory;
-import org.richfaces.skin.SkinNotFoundException;
/**
* Implementation of {@link SkinFactory} with building skins from properties
@@ -159,7 +157,7 @@
URL url = (URL) properties.nextElement();
InputStream propertyStream = null;
try {
- propertyStream = url.openStream();
+ propertyStream = URLToStreamHelper.urlToStream(url);
defaultProperties.load(propertyStream);
} catch (IOException e) {
// DO Nothing...
@@ -294,7 +292,7 @@
URL url = (URL) properties.nextElement();
InputStream propertyStream = null;
try {
- propertyStream = url.openStream();
+ propertyStream = URLToStreamHelper.urlToStream(url);
skinProperties.load(propertyStream);
loadedPropertiesCount++;
} catch (IOException e) {
18 years, 2 months
JBoss Rich Faces SVN: r5884 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-02-06 14:18:44 -0500 (Wed, 06 Feb 2008)
New Revision: 5884
Modified:
trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
Log:
http://jira.jboss.com/jira/browse/RF-2100 - add description to the show(), hide() functions.
Modified: trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2008-02-06 19:18:23 UTC (rev 5883)
+++ trunk/docs/userguide/en/src/main/docbook/included/modalPanel.xml 2008-02-06 19:18:44 UTC (rev 5884)
@@ -66,17 +66,17 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:modalPanel id="panel">
- <f:facet name="header">
- <h:outputText value="header">
- </f:facet>
- ...
- <!--Any Content inside-->
- ...
- <a href="javascript:RichFaces.hideModalPanel('form:panel')">Hide</a>
- </rich:modalPanel>
+<rich:modalPanel id="panel">
+ <f:facet name="header">
+ <h:outputText value="header" />
+ </f:facet>
+ ...
+ <!--Any Content inside-->
+ ...
+ <a href="javascript:RichFaces.hideModalPanel('form:panel')">Hide</a>
+</rich:modalPanel>
...
- <a href="javascript:RichFaces.showModalPanel('form:panel')">Show</a>
+<a href="javascript:RichFaces.showModalPanel('form:panel')">Show</a>
...
]]></programlisting>
</section>
@@ -144,18 +144,17 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <form jsfc="h:form" id="form">
- <rich:modalPanel id="panel" width="400" height="300">
- <f:facet name="header">
- <h:outputText value="Modal Panel"/>
- </f:facet>
+<form jsfc="h:form" id="form">
+ <rich:modalPanel id="panel" width="400" height="300">
+ <f:facet name="header">
+ <h:outputText value="Modal Panel"/>
+ </f:facet>
<h:graphicImage value="/pages/california_large.png"/>
<a href="javascript:Richfaces.hideModalPanel('form:panel')">Close</a>
- </rich:modalPanel>
- <a href="javascript:Richfaces.showModalPanel('form:panel');">Open</a>
- </form>
-...
-]]></programlisting>
+ </rich:modalPanel>
+ <a href="javascript:Richfaces.showModalPanel('form:panel');">Open</a>
+</form>
+...]]></programlisting>
<para>This defines a window with a particular size and ID. It includes one "Open" link. Clicking
on this link makes the modal window content appear.</para>
@@ -178,14 +177,16 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:modalPanel id="mp">
- <f:facet name="header"><h:outputText value="Modal Panel"/></f:facet>
- <f:facet name="controls">
- <h:graphicImage value="/pages/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('mp')" />
- </f:facet>
- <h:graphicImage value="/pages/california_large.png"/>
- </rich:modalPanel>
-]]></programlisting>
+<rich:modalPanel id="mp">
+ <f:facet name="header">
+ <h:outputText value="Modal Panel"/>
+ </f:facet>
+ <f:facet name="controls">
+ <h:graphicImage value="/pages/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('mp')" />
+ </f:facet>
+ <h:graphicImage value="/pages/california_large.png"/>
+</rich:modalPanel>
+...]]></programlisting>
<para>The result is displayed here:</para>
@@ -228,8 +229,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[Richfaces.showModalPanel('panelId', {left: auto}, {param1: value1});
- ]]></programlisting>
+ <programlisting role="XML"><![CDATA[Richfaces.showModalPanel('panelId', {left: auto}, {param1: value1});]]></programlisting>
<para> Thus, except the standard modalPanel parameters you can pass any of your own parameters. </para>
<para> Also modalPanel allows to handle its own opening and closing events on the client side.
The <emphasis><property>"onshow"</property></emphasis> and <emphasis><property>"onclose"</property></emphasis> attributes are used in this
@@ -241,7 +241,7 @@
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[onshow="alert(event.parameters.param1)"]]></programlisting>
+ <programlisting role="XML"><![CDATA[onshow="alert(event.parameters.param1)"]]></programlisting>
<para> Here, during modalPanel opening the value of a passing parameter is output. </para>
<para> More information about this problem could be found on the <ulink
@@ -260,10 +260,9 @@
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[...
+ <programlisting role="XML"><![CDATA[...
<a href="javascript:Richfaces.showModalPanel('_panel', {top:'10px', left:'10px', height:'400'});">Show</a>
-...
- ]]></programlisting>
+...]]></programlisting>
<para> Here, if you open modal dialog window using current link and after submits data then
modalPanel destination and height on new loaded page will be restored. </para>
@@ -278,23 +277,22 @@
<para><emphasis role="bold">Example:</emphasis></para>
<programlisting role="XML"><![CDATA[...
- <rich:modalPanel>
- <f:facet name="header">
- <h:outputText value="Test" />
- </f:facet>
- <f:facet name="controls">
- <h:commandLink value="Close" style="cursor:pointer" onclick="Richfaces.hideModalPanel('mp')" />
- </f:facet>
- <h:form>
- <t:commandButton value="Test" action="#{TESTCONTROLLER.test}" />
- </h:form>
- </rich:modalPanel>
- ...
- <h:form>
- <!--Some other Page content-->
- </h:form>
-...
-]]></programlisting>
+<rich:modalPanel>
+ <f:facet name="header">
+ <h:outputText value="Test" />
+ </f:facet>
+ <f:facet name="controls">
+ <h:commandLink value="Close" style="cursor:pointer" onclick="Richfaces.hideModalPanel('mp')" />
+ </f:facet>
+ <h:form>
+ <h:commandButton value="Test" action="#{TESTCONTROLLER.test}" />
+ </h:form>
+</rich:modalPanel>
+...
+<h:form>
+ <!--Some other Page content-->
+</h:form>
+...]]></programlisting>
@@ -320,15 +318,13 @@
<tbody>
<row>
- <entry>Show()</entry>
-
- <entry>Shows the corresponding ToolTip</entry>
+ <entry>show()</entry>
+ <entry>Opens the corresponding modalPanel</entry>
</row>
<row>
- <entry>Hide()</entry>
-
- <entry>Hides the corresponding ToolTip</entry>
+ <entry>hide()</entry>
+ <entry>Closes the corresponding modalPanel</entry>
</row>
</tbody>
18 years, 2 months
JBoss Rich Faces SVN: r5883 - trunk/docs/userguide/en/src/main/resources/images.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-02-06 14:18:23 -0500 (Wed, 06 Feb 2008)
New Revision: 5883
Modified:
trunk/docs/userguide/en/src/main/resources/images/tree_CS1.png
trunk/docs/userguide/en/src/main/resources/images/tree_CS2.png
Log:
http://jira.jboss.com/jira/browse/RF-1137 - screenshots for Definition of Custom Style Classes section
Modified: trunk/docs/userguide/en/src/main/resources/images/tree_CS1.png
===================================================================
(Binary files differ)
Modified: trunk/docs/userguide/en/src/main/resources/images/tree_CS2.png
===================================================================
(Binary files differ)
18 years, 2 months
JBoss Rich Faces SVN: r5882 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-02-06 14:17:40 -0500 (Wed, 06 Feb 2008)
New Revision: 5882
Modified:
trunk/docs/userguide/en/src/main/docbook/included/tree.xml
Log:
http://jira.jboss.com/jira/browse/RF-1137 - Definition of Custom Style Classes, Events handling verified.
Modified: trunk/docs/userguide/en/src/main/docbook/included/tree.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2008-02-06 19:16:34 UTC (rev 5881)
+++ trunk/docs/userguide/en/src/main/docbook/included/tree.xml 2008-02-06 19:17:40 UTC (rev 5882)
@@ -59,9 +59,9 @@
</para>
<programlisting role="XML"><![CDATA[...
- <rich:tree>
- <rich:recursiveTreeNodesAdaptor roots="#{fileSystemBean.sourceRoots}" var="item" nodes="#{item.nodes}" />
- </rich:tree>
+<rich:tree>
+ <rich:recursiveTreeNodesAdaptor roots="#{fileSystemBean.sourceRoots}" var="item" nodes="#{item.nodes}" />
+</rich:tree>
...]]></programlisting>
<para> In the second case, it's necessary to define it with these attributes as
@@ -71,12 +71,12 @@
<emphasis role="bold">Example:</emphasis>
</para>
<programlisting role="XML"><![CDATA[...
- <rich:tree value="#{library.data}" var="item" >
- <rich:treeNode icon="/images/tree/singer.png" >
- <h:outputText value="#{item.name}" />
- </rich:treeNode>
- ...
- </rich:tree>
+<rich:tree value="#{library.data}" var="item" >
+ <rich:treeNode icon="/images/tree/singer.png" >
+ <h:outputText value="#{item.name}" />
+ </rich:treeNode>
+ ...
+</rich:tree>
...]]></programlisting>
</section>
<section>
@@ -372,18 +372,18 @@
</para>
<programlisting role="XML"><![CDATA[...
- <h:form>
- <rich:tree style="width:300px" value="#{library.data}" var="item" nodeFace="#{item.type}">
- <rich:treeNode type="artist" iconLeaf="/images/tree/singer.png" icon="/images/tree/singer.png">
- <h:outputText value="#{item.name}" />
- </rich:treeNode>
- <rich:treeNode type="album" iconLeaf="/images/tree/disc.png" icon="/images/tree/disc.png">
- <h:outputText value="#{item.title}" />
- </rich:treeNode>
- <rich:treeNode type="song" iconLeaf="/images/tree/song.png" icon="/images/tree/song.png">
- <h:outputText value="#{item.title}" />
- </rich:treeNode>
- </rich:tree>
+<h:form>
+ <rich:tree style="width:300px" value="#{library.data}" var="item" nodeFace="#{item.type}">
+ <rich:treeNode type="artist" iconLeaf="/images/tree/singer.png" icon="/images/tree/singer.png">
+ <h:outputText value="#{item.name}" />
+ </rich:treeNode>
+ <rich:treeNode type="album" iconLeaf="/images/tree/disc.png" icon="/images/tree/disc.png">
+ <h:outputText value="#{item.title}" />
+ </rich:treeNode>
+ <rich:treeNode type="song" iconLeaf="/images/tree/song.png" icon="/images/tree/song.png">
+ <h:outputText value="#{item.title}" />
+ </rich:treeNode>
+ </rich:tree>
</h:form>
...]]></programlisting>
<para>This is a result: </para>
@@ -430,7 +430,7 @@
<para>
<emphasis role="bold">Example:</emphasis>
</para>
- <programlisting role="JAVA"><![CDATA[nodeFace="#{data.name != 'param-value' ? 'artist' : 'album'}" ]]></programlisting>
+ <programlisting role="XML"><![CDATA[nodeFace="#{data.name != 'param-value' ? 'artist' : 'album'}" ]]></programlisting>
<para>There are some essential moments in a <emphasis>
<property>"nodeFace"</property>
</emphasis> attribute usage. For their description it's necessary to define notions
@@ -491,19 +491,19 @@
</para>
<programlisting role="XML"><![CDATA[...
- <h:form>
- <rich:tree style="width:300px" value="#{library.data}" var="item" nodeFace="#{item.type}">
- ...
- <rich:treeNode type="album" iconLeaf="/images/tree/album.gif" icon="/images/tree/album.gif"
+<h:form>
+ <rich:tree style="width:300px" value="#{library.data}" var="item" nodeFace="#{item.type}">
+ ...
+ <rich:treeNode type="album" iconLeaf="/images/tree/album.gif" icon="/images/tree/album.gif"
rendered="#{item.exist}">
- <h:outputText value="#{item.name}" />
- </rich:treeNode>
- <rich:treeNode type="album" iconLeaf="/images/tree/album_absent.gif" icon="/images/tree/album_absent.gif"
+ <h:outputText value="#{item.name}" />
+ </rich:treeNode>
+ <rich:treeNode type="album" iconLeaf="/images/tree/album_absent.gif" icon="/images/tree/album_absent.gif"
rendered="#{not item.exist}">
- <h:outputText value="#{item.name}" />
- </rich:treeNode>
- ...
- </rich:tree>
+ <h:outputText value="#{item.name}" />
+ </rich:treeNode>
+ ...
+ </rich:tree>
</h:form>
...]]></programlisting>
<para>This is a result: </para>
@@ -566,22 +566,22 @@
</para>
<programlisting role="XML"><![CDATA[...
- <rich:tree ....>
- ...
- <f:facet name="icon">
- <h:graphicImage value="/images/tree/singer.png "/>
- </f:facet>
- <f:facet name="iconCollapsed">
- <h:graphicImage value="/images/tree/singer.png " />
- </f:facet>
- <f:facet name="iconExpanded">
- <h:graphicImage value="/images/tree/singer.png " />
- </f:facet>
- <f:facet name="iconLeaf">
- <h:graphicImage value="/images/tree/song.png " />
- </f:facet>
- ...
- </rich:tree>
+<rich:tree value="#{library.data}" var="item">
+ ...
+ <f:facet name="icon">
+ <h:graphicImage value="/images/tree/singer.png "/>
+ </f:facet>
+ <f:facet name="iconCollapsed">
+ <h:graphicImage value="/images/tree/singer.png " />
+ </f:facet>
+ <f:facet name="iconExpanded">
+ <h:graphicImage value="/images/tree/singer.png " />
+ </f:facet>
+ <f:facet name="iconLeaf">
+ <h:graphicImage value="/images/tree/song.png " />
+ </f:facet>
+ ...
+</rich:tree>
...]]></programlisting>
<para> The <emphasis role="bold">
@@ -671,21 +671,21 @@
</para>
<programlisting role="XML"><![CDATA[...
- <h:form>
- <rich:tree dragIndicator=":treeDragIndicator" dropListener="#{libraryAjaxTree.processDrop}" style="width:300px" value="#{libraryAjaxTree.data}" var="item" nodeFace="#{item.type}">
- <rich:treeNode type="artist" acceptedTypes="album" iconLeaf="/images/tree/group.png" icon="/images/tree/group.png">
- <h:outputText value="#{item.name}" />
- </rich:treeNode>
- <rich:treeNode type="album" dragType="album" acceptedTypes="song" iconLeaf="/images/tree/cd.png" icon="/images/tree/cd.png">
- <h:outputText value="#{item.title}" />
- <rich:dndParam name="label" type="drag" value="Album: #{item.title}" />
- </rich:treeNode>
- <rich:treeNode type="song" dragType="song" iconLeaf="/images/tree/music.png" icon="/images/tree/music.png">
- <h:outputText value="#{item.title}" />
- <rich:dndParam name="label" type="drag" value="Song: #{item.title}" />
- </rich:treeNode>
- </rich:tree>
- </h:form>
+<h:form>
+ <rich:tree dragIndicator=":treeDragIndicator" dropListener="#{libraryAjaxTree.processDrop}" style="width:300px" value="#{libraryAjaxTree.data}" var="item" nodeFace="#{item.type}">
+ <rich:treeNode type="artist" acceptedTypes="album" iconLeaf="/images/tree/group.png" icon="/images/tree/group.png">
+ <h:outputText value="#{item.name}" />
+ </rich:treeNode>
+ <rich:treeNode type="album" dragType="album" acceptedTypes="song" iconLeaf="/images/tree/cd.png" icon="/images/tree/cd.png">
+ <h:outputText value="#{item.title}" />
+ <rich:dndParam name="label" type="drag" value="Album: #{item.title}" />
+ </rich:treeNode>
+ <rich:treeNode type="song" dragType="song" iconLeaf="/images/tree/music.png" icon="/images/tree/music.png">
+ <h:outputText value="#{item.title}" />
+ <rich:dndParam name="label" type="drag" value="Song: #{item.title}" />
+ </rich:treeNode>
+ </rich:tree>
+</h:form>
...]]></programlisting>
<para>In the example a song from one album can be dragged into other because for the second
@@ -803,6 +803,7 @@
</section>
<section>
<title>Definition of Custom Style Classes</title>
+
<table id="tab_cn7">
<title>Classes names that define a component appearance</title>
<tgroup cols="2">
@@ -817,22 +818,6 @@
<entry>rich-tree</entry>
<entry>Defines styles for a wrapper <div> element of a tree</entry>
</row>
- <row>
- <entry>rich-tree-node</entry>
- <entry>Defines styles for a node of a tree</entry>
- </row>
- <row>
- <entry>rich-tree-node-children</entry>
- <entry>Defines styles for a wrapper <div> element of a child node of a tree</entry>
- </row>
- <row>
- <entry>rich-tree-node-selected</entry>
- <entry>Defines styles for a selected node of a tree</entry>
- </row>
- <row>
- <entry>rich-tree-node-highlighted</entry>
- <entry>Defines styles for a highlighted node of a tree</entry>
- </row>
</tbody>
</tgroup>
</table>
@@ -847,7 +832,7 @@
</para>
<programlisting role="CSS"><![CDATA[...
.rich-tree{
- color: #ff7700;
+ font-weight:bold;
}
...]]></programlisting>
@@ -862,7 +847,7 @@
</mediaobject>
</figure>
- <para>In the example a tree color text was changed.</para>
+ <para>In the example a tree font weight was changed to bold.</para>
<para>Also it’s possible to change styles of particular <emphasis role="bold"
><property><rich:tree></property></emphasis> component. In this case you should create own style classes and use them in corresponding <emphasis role="bold"
><property><rich:tree></property></emphasis> <property>styleClass</property> attributes. An example is placed below:</para>
@@ -872,10 +857,10 @@
</para>
<programlisting role="CSS"><![CDATA[...
.myClass{
- background-color: #bdd5f7;
+ font-weight:bold;
}
...]]></programlisting>
- <para>The <emphasis><property>"styleClass"</property></emphasis> attribute for <emphasis role="bold"
+ <para>The <emphasis><property>"highlightedClass"</property></emphasis> attribute for <emphasis role="bold"
><property><rich:tree> </property></emphasis> is defined as it’s shown in the example below:</para>
<para>
@@ -895,7 +880,7 @@
</mediaobject>
</figure>
- <para>As it could be seen on the picture above, background color of tree was changed.</para>
+ <para>As it could be seen on the picture above, font weight of highlighted text node of a tree was changed to bold.</para>
</section>
<section>
18 years, 2 months
JBoss Rich Faces SVN: r5881 - trunk/docs/userguide/en/src/main/docbook/modules.
by richfaces-svn-commits@lists.jboss.org
Author: artdaw
Date: 2008-02-06 14:16:34 -0500 (Wed, 06 Feb 2008)
New Revision: 5881
Modified:
trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
Log:
http://jira.jboss.com/jira/browse/RF-2117 - ALL ScriptLoadingStrategy
Modified: trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-02-06 18:39:28 UTC (rev 5880)
+++ trunk/docs/userguide/en/src/main/docbook/modules/RFCarchitectover.xml 2008-02-06 19:16:34 UTC (rev 5881)
@@ -916,16 +916,17 @@
it manually in a page header. </para>
<note>
+ <title>Note:</title>
<para>
- If you use "ALL" value of Scripts Load Strategy, make sure you turn the JavaScript files compression off:
+ If you use <property>ALL</property> value of Scripts Load Strategy, the JavaScript files compression turns off!
</para>
- <programlisting role="XML"><![CDATA[...
+ <!--programlisting role="XML"><![CDATA[...
<context-param>
<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
<param-value>false</param-value>
</context-param>
...
-]]></programlisting>
+]]></programlisting-->
</note>
<para>
18 years, 2 months
JBoss Rich Faces SVN: r5880 - in trunk/samples/pickList-sample/src/main: webapp/pages and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-06 13:39:28 -0500 (Wed, 06 Feb 2008)
New Revision: 5880
Modified:
trunk/samples/pickList-sample/src/main/java/org/richfaces/Bean.java
trunk/samples/pickList-sample/src/main/webapp/pages/index.jsp
Log:
Modified: trunk/samples/pickList-sample/src/main/java/org/richfaces/Bean.java
===================================================================
--- trunk/samples/pickList-sample/src/main/java/org/richfaces/Bean.java 2008-02-06 18:38:40 UTC (rev 5879)
+++ trunk/samples/pickList-sample/src/main/java/org/richfaces/Bean.java 2008-02-06 18:39:28 UTC (rev 5880)
@@ -7,8 +7,13 @@
public class Bean {
private ArrayList testList = new ArrayList();
- private String selectedInfo;
+ private String selectedInfo;
+ private String targetListWidth="";
+ private String sourceListWidth="";
+ private String listsHeight="";
+ private String [] values = new String[]{"polecat","suricate"};
+
public Bean() {
testList.add(new SelectItem("polecat", "polecat"));
testList.add(new SelectItem("suricate", "suricate"));
@@ -40,4 +45,40 @@
return selectedInfo;
}
+ public String getTargetListWidth() {
+ return targetListWidth;
+ }
+
+ public void setTargetListWidth(String targetListWidth) {
+ this.targetListWidth = targetListWidth;
+ }
+
+ public String getSourceListWidth() {
+ return sourceListWidth;
+ }
+
+ public void setSourceListWidth(String sourceListWidth) {
+ this.sourceListWidth = sourceListWidth;
+ }
+
+ public String getListsHeight() {
+ return listsHeight;
+ }
+
+ public void setListsHeight(String listsHeight) {
+ this.listsHeight = listsHeight;
+ }
+
+ public void setTestList(ArrayList testList) {
+ this.testList = testList;
+ }
+
+ public String[] getValues() {
+ return values;
+ }
+
+ public void setValues(String[] values) {
+ this.values = values;
+ }
+
}
\ No newline at end of file
Modified: trunk/samples/pickList-sample/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/pickList-sample/src/main/webapp/pages/index.jsp 2008-02-06 18:38:40 UTC (rev 5879)
+++ trunk/samples/pickList-sample/src/main/webapp/pages/index.jsp 2008-02-06 18:39:28 UTC (rev 5880)
@@ -12,18 +12,42 @@
<h:commandLink action="#{skinBean.change}" value="set skin" />
<h:outputText value="Current skin: #{skinBean.skin}"/><br />
</h:form>
+
+ <h:form>
+ <h:panelGrid columns="2">
+ <h:outputText value="set target list width: "></h:outputText>
+ <h:inputText value="#{pickBean.targetListWidth}"></h:inputText>
+
+
+ <h:outputText value="set source list width: "></h:outputText>
+ <h:inputText value="#{pickBean.sourceListWidth}"></h:inputText>
+
+ <h:outputText value="set list heights: "></h:outputText>
+ <h:inputText value="#{pickBean.listsHeight}"></h:inputText>
+ </h:panelGrid>
- <h:form>
- <pickList:pickList size="5" valueChangeListener="#{pickBean.selectionChanged}">
- <f:selectItem itemValue="cat" itemLabel="cat"/>
- <f:selectItem itemValue="dog" itemLabel="dog"/>
- <f:selectItems value="#{pickBean.testList}"/>
- </pickList:pickList>
+ <br/>
+ <br/>
+ <br/>
+ <br/>
+ <br/>
+ <br/>
- <h:commandButton value="Submit" action="none"/>
- <h:outputText value="#{pickBean.selectedInfo}"/>
- </h:form>
+ <pickList:pickList
+ listsHeight="#{pickBean.listsHeight}"
+ valueChangeListener="#{pickBean.selectionChanged}"
+ sourceListWidth="#{pickBean.sourceListWidth}"
+ targetListWidth="#{pickBean.targetListWidth}"
+ >
+ <f:selectItem itemValue="cat" itemLabel="cat"/>
+ <f:selectItem itemValue="dog" itemLabel="dog"/>
+ <f:selectItems value="#{pickBean.testList}"/>
+ </pickList:pickList>
+
+ <h:commandButton value="Submit" action="none"/>
+ <h:outputText value="#{pickBean.selectedInfo}"/>
+ </h:form>
</f:view>
</body>
</html>
18 years, 2 months
JBoss Rich Faces SVN: r5879 - in trunk/ui/pickList/src/main: java/org/richfaces/component and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-02-06 13:38:40 -0500 (Wed, 06 Feb 2008)
New Revision: 5879
Modified:
trunk/ui/pickList/src/main/config/component/picklist.xml
trunk/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java
trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
Log:
clean classes
Modified: trunk/ui/pickList/src/main/config/component/picklist.xml
===================================================================
--- trunk/ui/pickList/src/main/config/component/picklist.xml 2008-02-06 16:48:00 UTC (rev 5878)
+++ trunk/ui/pickList/src/main/config/component/picklist.xml 2008-02-06 18:38:40 UTC (rev 5879)
@@ -29,29 +29,12 @@
</tag>
<properties>
- <property>
- <name>displayValueOnly</name>
- <classname>boolean</classname>
- <defaultvalue>false</defaultvalue>
- </property>
- <property>
- <name>displayValueOnlyStyle</name>
- <classname>java.lang.String</classname>
- <defaultvalue>""</defaultvalue>
- </property>
- <property>
- <name>displayValueOnlyStyleClass</name>
- <classname>java.lang.String</classname>
- <defaultvalue>""</defaultvalue>
- </property>
- <property>
- <name>size</name>
- <classname>int</classname>
- </property>
+
<property hidden="true">
<name>selectedValues</name>
<classname>java.lang.Object</classname>
</property>
+
<property>
<name>valueChangeListener</name>
<classname>javax.el.MethodExpression</classname>
@@ -65,7 +48,7 @@
</property>
<property>
- <name>showButtonLabels</name>
+ <name>showButtonsLabel</name>
<classname>java.lang.String</classname>
<defaultvalue>"true"</defaultvalue>
</property>
@@ -93,68 +76,67 @@
<classname>java.lang.String</classname>
<defaultvalue>""</defaultvalue>
</property>
-
+
+ <property>
+ <name>listClass</name>
+ <classname>java.lang.String</classname>
+ <description>CSS class for a list</description>
+ <defaultvalue><![CDATA[""]]></defaultvalue>
+ </property>
+
+ <property>
+ <name>switchByClick</name>
+ <classname>boolean</classname>
+ <description>If "true", dragging between lists realized by click </description>
+ <defaultvalue>false</defaultvalue>
+ </property>
+
+ <property>
+ <name>sourceListWidth</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Defines width of a source list
+ </description>
+ <defaultvalue>"140px"</defaultvalue>
+ </property>
+
+ <property>
+ <name>targetListWidth</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Defines width of a target list
+ </description>
+ <defaultvalue>"140px"</defaultvalue>
+ </property>
+
+ <property>
+ <name>listsHeight</name>
+ <classname>java.lang.String</classname>
+ <description>
+ Defines height of the list
+ </description>
+ <defaultvalue>"140px"</defaultvalue>
+ </property>
+ &ui_component_attributes;
+ &html_universal_attributes;
+ &html_events;
+ &html_control_events;
+
<property>
- <name>value</name>
- <classname>java.lang.String</classname>
- </property>
-
- <property>
- <name>listClass</name>
- <classname>java.lang.String</classname>
- <description>CSS class for a list</description>
- <defaultvalue><![CDATA[""]]></defaultvalue>
- </property>
- <property>
- <name>switchByClick</name>
- <classname>boolean</classname>
- <description>If "true", dragging between lists realized by click </description>
- <defaultvalue>false</defaultvalue>
- </property>
- <property>
- <name>sourceListWidth</name>
- <classname>java.lang.String</classname>
- <description>
- Defines width of a source list
- </description>
- <defaultvalue>"140"</defaultvalue>
- </property>
- <property>
- <name>targetListWidth</name>
- <classname>java.lang.String</classname>
- <description>
- Defines width of a target list
- </description>
- <defaultvalue>"140"</defaultvalue>
- </property>
- <property>
- <name>listsHeight</name>
- <classname>java.lang.String</classname>
- <description>
- Defines height of the list
- </description>
- <defaultvalue>"140"</defaultvalue>
- </property>
- &ui_component_attributes;
- &html_universal_attributes;
- &html_events;
- &html_control_events;
-
- <property>
<name>enabledStyleClass</name>
<classname>java.lang.String</classname>
</property>
-
+
<property>
<name>enabledStyle</name>
<classname>java.lang.String</classname>
</property>
-
+
<property>
<name>disabledStyleClass</name>
<classname>java.lang.String</classname>
</property>
-
+
<property>
<name>disabledStyle</name>
<classname>java.lang.String</classname>
Modified: trunk/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java
===================================================================
--- trunk/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java 2008-02-06 16:48:00 UTC (rev 5878)
+++ trunk/ui/pickList/src/main/java/org/richfaces/component/UIPickList.java 2008-02-06 18:38:40 UTC (rev 5879)
@@ -12,24 +12,12 @@
public abstract String getMoveControlsVerticalAlign();
public abstract void setMoveControlsVerticalAlign(String moveControlsVerticalAlign);
- public abstract boolean isDisplayValueOnly();
- public abstract void setDisplayValueOnly(boolean displayValueOnly);
-
- public abstract String getDisplayValueOnlyStyle();
- public abstract void setDisplayValueOnlyStyle(String style);
-
- public abstract String getDisplayValueOnlyStyleClass();
- public abstract void setDisplayValueOnlyStyleClass(String styleClass);
-
public abstract int getSize();
public abstract void setSize(int size);
public abstract boolean isDisabled();
public abstract void setDisabled(boolean disabled);
- public abstract boolean isFastOrderControlsVisible();
- public abstract void setFastOrderControlsVisible(boolean visible);
-
/**
* Get base clietntId of this component ( withowt iteration part )
*
Modified: trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
===================================================================
--- trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-02-06 16:48:00 UTC (rev 5878)
+++ trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-02-06 18:38:40 UTC (rev 5879)
@@ -40,7 +40,7 @@
private static final String HIDDEN_SUFFIX = "valueKeeper";
protected static final OrderingComponentRendererBase.ControlsHelper[] SHUTTLE_HELPERS = ListShuttleControlsHelper.HELPERS;
- protected final static String SHOW_LABELS_ATTRIBUTE_NAME = "showButtonLabels";
+ protected final static String SHOW_LABELS_ATTRIBUTE_NAME = "showButtonsLabel";
private static final String MESSAGE_BUNDLE_NAME = OrderingListRendererBase.class.getPackage().getName() + "ListShuttle";
private boolean isSelectedList;
private boolean isAvailableList;
@@ -86,7 +86,7 @@
String hiddenClientId = picklist.getClientId(context) + HIDDEN_SUFFIX;
Map paramValuesMap = context.getExternalContext().getRequestParameterValuesMap();
- if (isDisabledOrReadOnly(picklist)) {
+ if (picklist.isDisabled()) {
return;
}
@@ -103,10 +103,6 @@
}
}
- private boolean isDisabledOrReadOnly(UIPickList picklist) {
- return picklist.isDisplayValueOnly() || isTrue(picklist.getAttributes().get("disabled"));
- }
-
private static boolean isTrue(Object obj) {
if (!(obj instanceof Boolean)) {
return false;
@@ -298,7 +294,7 @@
boolean enable;
for (int i = 0; i < SHUTTLE_HELPERS.length; i++) {
OrderingComponentRendererBase.ControlsHelper helper = SHUTTLE_HELPERS[i];
- if (helper.getName().equals(ListShuttleControlsHelper.NAME_REMOVEALL)) {
+ if (helper.getName().equals(ListShuttleControlsHelper.DEFAULT_LABEL_COPY_ALL)) {
enable = isSelectedList;
} else if (helper.getName().equals(ListShuttleControlsHelper.NAME_COPYALL)) {
enable = isAvailableList;
18 years, 2 months
JBoss Rich Faces SVN: r5878 - management/design/columnSortFilterFeatures.
by richfaces-svn-commits@lists.jboss.org
Author: ilya_shaikovsky
Date: 2008-02-06 11:48:00 -0500 (Wed, 06 Feb 2008)
New Revision: 5878
Modified:
management/design/columnSortFilterFeatures/FuncSpec - Filtering Feature.doc
Log:
Modified: management/design/columnSortFilterFeatures/FuncSpec - Filtering Feature.doc
===================================================================
(Binary files differ)
18 years, 2 months
JBoss Rich Faces SVN: r5877 - trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/html/images.
by richfaces-svn-commits@lists.jboss.org
Author: dsvyatobatsko
Date: 2008-02-06 11:28:54 -0500 (Wed, 06 Feb 2008)
New Revision: 5877
Modified:
trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/html/images/ProgressBarAnimatedBg.java
trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/html/images/ProgressBarBg.java
Log:
Now a little bit lighter, test ya!
Modified: trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/html/images/ProgressBarAnimatedBg.java
===================================================================
--- trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/html/images/ProgressBarAnimatedBg.java 2008-02-06 16:13:17 UTC (rev 5876)
+++ trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/html/images/ProgressBarAnimatedBg.java 2008-02-06 16:28:54 UTC (rev 5877)
@@ -102,9 +102,9 @@
*/
private BufferedImage createMainStage(ResourceContext ctx) {
progressbarBackgroundColor = progressbarBasicColor;
- progressbarSpiralColor = adjustLightness(progressbarBasicColor, 0.15f);
- progressbarShadowStartColor = overwriteAlpha(adjustLightness(progressbarBasicColor, 0.5f), 0.6f);
- progressbarShadowEndColor = overwriteAlpha(adjustLightness(progressbarBasicColor, 0.1f), 0.6f);
+ progressbarSpiralColor = adjustLightness(progressbarBasicColor, 0.2f);
+ progressbarShadowStartColor = overwriteAlpha(adjustLightness(progressbarBasicColor, 0.7f), 0.6f);
+ progressbarShadowEndColor = overwriteAlpha(adjustLightness(progressbarBasicColor, 0.3f), 0.6f);
BufferedImage retVal = ((ImageRenderer) getRenderer(ctx)).createImage(frameSize.width, frameSize.height * 2);
Graphics g = retVal.getGraphics();
g.setColor(progressbarBackgroundColor);
Modified: trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/html/images/ProgressBarBg.java
===================================================================
--- trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/html/images/ProgressBarBg.java 2008-02-06 16:13:17 UTC (rev 5876)
+++ trunk/sandbox/ui/progressBAR/src/main/java/org/richfaces/renderkit/html/images/ProgressBarBg.java 2008-02-06 16:28:54 UTC (rev 5877)
@@ -85,9 +85,9 @@
*/
protected void paint(ResourceContext context, Graphics2D g2d) {
Color progressbarBackgroundColor = progressbarBasicColor;
- Color progressbarSpiralColor = adjustLightness(progressbarBasicColor, 0.15f);
- Color progressbarShadowStartColor = overwriteAlpha(adjustLightness(progressbarBasicColor, 0.5f), 0.6f);
- Color progressbarShadowEndColor = overwriteAlpha(adjustLightness(progressbarBasicColor, 0.1f), 0.6f);
+ Color progressbarSpiralColor = adjustLightness(progressbarBasicColor, 0.2f);
+ Color progressbarShadowStartColor = overwriteAlpha(adjustLightness(progressbarBasicColor, 0.7f), 0.6f);
+ Color progressbarShadowEndColor = overwriteAlpha(adjustLightness(progressbarBasicColor, 0.3f), 0.6f);
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2d.setColor(progressbarBackgroundColor);
g2d.fillRect(0, 0, dim.width, dim.height);
18 years, 2 months