comparison gwt-client/src/main/java/org/dive4elements/river/client/client/Config.java @ 8503:9f3ffb218bc0

(issue1777) Hide logout button if it is configured.
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 16 Dec 2014 12:47:46 +0100
parents ac6c41fcae55
children
comparison
equal deleted inserted replaced
8502:7f63ad20d4f0 8503:9f3ffb218bc0
101 */ 101 */
102 public String getLocale() { 102 public String getLocale() {
103 return LocaleInfo.getCurrentLocale().getLocaleName(); 103 return LocaleInfo.getCurrentLocale().getLocaleName();
104 } 104 }
105 105
106 public boolean getHideLogout() {
107 Node hide_logout = config.getElementsByTagName("hide-logout").item(0);
108 if (hide_logout == null) {
109 return false;
110 }
111 String value = hide_logout.getFirstChild().getNodeValue();
112 return value.toLowerCase().equals("true");
113 }
106 114
107 /** 115 /**
108 * Returns the integer configured at 116 * Returns the integer configured at
109 * <i>/config/projectlist/update-interval/text()</i> or -1 if an error 117 * <i>/config/projectlist/update-interval/text()</i> or -1 if an error
110 * occured or no such option is defined. 118 * occured or no such option is defined.

http://dive4elements.wald.intevation.org