Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/MainMenu.java @ 532:0ba7c43e7b62
Replaced buttons displayed as labels with real buttons.
flys-client/trunk@2023 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 27 May 2011 13:10:09 +0000 |
parents | e3ea3c74b7f5 |
children | 725470fc57d2 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/MainMenu.java Fri May 27 09:50:57 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/MainMenu.java Fri May 27 13:10:09 2011 +0000 @@ -7,6 +7,7 @@ import com.smartgwt.client.types.Alignment; import com.smartgwt.client.util.BooleanCallback; import com.smartgwt.client.util.SC; +import com.smartgwt.client.widgets.Button; import com.smartgwt.client.widgets.Label; import com.smartgwt.client.widgets.events.ClickEvent; import com.smartgwt.client.widgets.events.ClickHandler; @@ -35,19 +36,19 @@ protected Label userText; /** The button to log the current user out.*/ - protected Label logout; + protected Button logout; /** The button to add new projects.*/ - protected Label newProject; + protected Button newProject; /** The button to open the project list.*/ - protected Label projectList; + protected Button projectList; /** The button to switch between the english and german version.*/ - protected Label language; + protected Button language; /** The button to open an info panel.*/ - protected Label info; + protected Button info; /** * The default constructor for creating a new MainMenu. @@ -58,11 +59,11 @@ String guest = messages.user() + " " + messages.guest(); userText = new Label(guest); - newProject = new Label(messages.new_project()); - projectList = new Label(messages.manage_projects()); - logout = new Label(messages.logout()); - language = new Label(messages.switch_language()); - info = new Label(messages.info()); + newProject = new Button(messages.new_project()); + projectList = new Button(messages.manage_projects()); + logout = new Button(messages.logout()); + language = new Button(messages.switch_language()); + info = new Button(messages.info()); newProject.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { @@ -146,10 +147,6 @@ leftPanel.addMember(projectList); userText.setAlign(Alignment.RIGHT); - logout.setAlign(Alignment.RIGHT); - info.setAlign(Alignment.RIGHT); - language.setAlign(Alignment.RIGHT); - userText.setWidth(200); logout.setWidth(70); info.setWidth(40);