Mercurial > dive4elements > river
changeset 4558:9d7497f5be05
Remove the new project button from the menue
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 16 Nov 2012 14:25:05 +0100 |
parents | ebc22575e413 |
children | 7f86ab48284c |
files | flys-client/src/main/java/de/intevation/flys/client/client/ui/MainMenu.java |
diffstat | 1 files changed, 0 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/MainMenu.java Fri Nov 16 14:24:38 2012 +0100 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/MainMenu.java Fri Nov 16 14:25:05 2012 +0100 @@ -40,9 +40,6 @@ /** The button to log the current user out.*/ protected Button logout; - /** The button to add new projects.*/ - protected Button newProject; - /** The button to open the project list.*/ protected Button projectList; @@ -64,20 +61,11 @@ String guest = messages.user() + " " + messages.guest(); userText = new Label(guest); - 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() { - @Override - public void onClick(ClickEvent event) { - GWT.log("Clicked 'New Project' button."); - createNewProject(); - } - }); - projectList.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { @@ -151,10 +139,8 @@ setHeight("25px"); setLayoutMargin(5); - newProject.setStyleName("fontLightSmall"); projectList.setStyleName("fontLightSmall"); userText.setStyleName("fontLightSmall"); - newProject.setStyleName("fontLightSmall"); logout.setStyleName("fontLightSmall"); language.setStyleName("fontLightSmall"); info.setStyleName("fontLightSmall"); @@ -164,7 +150,6 @@ HLayout leftPanel = new HLayout(); leftPanel.setWidth("80%"); leftPanel.setMembersMargin(5); - leftPanel.addMember(newProject); leftPanel.addMember(projectList); userText.setAlign(Alignment.RIGHT);