changeset 857:fa8efe5b8aee

Added RedrawRequestHandler interface and friend. flys-client/trunk@2650 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 06 Sep 2011 10:58:32 +0000
parents ec5c75da5c7a
children 9f07f67f60a5
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/event/HasRedrawRequestHandlers.java flys-client/src/main/java/de/intevation/flys/client/client/event/RedrawRequestHandler.java
diffstat 3 files changed, 41 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Sep 06 07:47:15 2011 +0000
+++ b/flys-client/ChangeLog	Tue Sep 06 10:58:32 2011 +0000
@@ -1,3 +1,12 @@
+2011-09-06	Felix Wolfsteller	<felix.wolfsteller@intevation.de> 
+
+	Added concept of a RedrawRequestHandler to allow e.g. ChartThemePanel to
+	trigger a redraw of a Chart.
+
+	* src/main/java/de/intevation/flys/client/client/event/HasRedrawRequestHandlers.java,
+	  src/main/java/de/intevation/flys/client/client/event/RedrawRequestHandler.java:
+	  New, trivial yet eventless notification handler interfaces.
+
 2011-09-06  Ingo Weinzierl <ingo@intevation.de>
 
 	  flys/issue166 (Projektname in die Fensterleiste übernehmen)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/event/HasRedrawRequestHandlers.java	Tue Sep 06 10:58:32 2011 +0000
@@ -0,0 +1,17 @@
+package de.intevation.flys.client.client.event;
+
+
+/**
+ * Implements function to add a RedrawRequestHandler.
+ */
+public interface HasRedrawRequestHandlers {
+
+    /**
+     * Adds a new RedrawRequestHandler.
+     *
+     * @param handler The new RedrawRequestHandler
+     */
+    public void addRedrawRequestHandler(RedrawRequestHandler rrh);
+}
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/event/RedrawRequestHandler.java	Tue Sep 06 10:58:32 2011 +0000
@@ -0,0 +1,15 @@
+package de.intevation.flys.client.client.event;
+
+
+/**
+ * Handler interface for RedrawRequests.
+ */
+public interface RedrawRequestHandler {
+
+    /**
+     * Handle the redraw request.
+     */
+    public void onRedrawRequest();
+}
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
+

http://dive4elements.wald.intevation.org