changeset 1762:c85a84d60f68

In LongitudinalSection-Diagram, Qs enter inactive. flys-artifacts/trunk@3077 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 25 Oct 2011 14:41:34 +0000
parents 577e8843ceeb
children 0e748e8972b5
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java
diffstat 2 files changed, 24 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Tue Oct 25 14:32:30 2011 +0000
+++ b/flys-artifacts/ChangeLog	Tue Oct 25 14:41:34 2011 +0000
@@ -1,3 +1,11 @@
+2011-10-25  Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	Let Qs in Longitudinal Diagram be inactive, initally.
+
+	* src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java:
+	  (getInitialFacetActivity): Do not let Facets ending with a 'q'
+	  enter in active state.
+
 2011-10-25  Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* doc/conf/meta-data.xml: Fix broken datacage config.
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java	Tue Oct 25 14:32:30 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java	Tue Oct 25 14:41:34 2011 +0000
@@ -1273,5 +1273,21 @@
 
         return values.toNativeArray();
     }
+
+
+    /**
+     * Determines Facets initial disposition regarding activity (think of
+     * selection in Client ThemeList GUI). This will be checked one time
+     * when the facet enters a collections describe document.
+     *
+     * @param facetName name of the facet.
+     * @param index     index of the facet.
+     */
+    public int getInitialFacetActivity(String facetName, int index) {
+        return facetName.endsWith("q")
+               ? 0
+               : 1;
+    }
+
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org