[Dive4elements-commits] [PATCH 06 of 11] Add methods to hide and show the manage projects button of the header

Wald Commits scm-commit at wald.intevation.org
Fri Nov 30 12:02:11 CET 2012


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1354266039 -3600
# Node ID 488db475613d1f04b86c540ff75a0249e0f99c5d
# Parent  7b8063c2d5890be9b026aff89119beca2f8ca773
Add methods to hide and show the manage projects button of the header

It should be possible to show the manage projects button only if the ProjectList
is hidden. Therefore add methods to allow to show and hide the button.

diff -r 7b8063c2d589 -r 488db475613d flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java	Fri Nov 30 09:59:07 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java	Fri Nov 30 10:00:39 2012 +0100
@@ -537,5 +537,13 @@
             this.projectList.show();
         }
     }
+
+    public void hideHeaderProjectButton() {
+        this.header.hideProjectButton();
+    }
+
+    public void shoHeaderProjectButton() {
+        this.header.showProjectButton();
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :


More information about the Dive4elements-commits mailing list