[Dive4elements-commits] [PATCH 2 of 6] Get rid of the footer and the spacer in the flys webpage

Wald Commits scm-commit at wald.intevation.org
Fri Nov 16 14:27:38 CET 2012


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1353072278 -3600
# Node ID ebc22575e4137684d1c39465672b27b33236b78b
# Parent  5e25a2b19ddd5a452f919a4a169404b41caf03e5
Get rid of the footer and the spacer in the flys webpage

diff -r 5e25a2b19ddd -r ebc22575e413 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 16 12:33:25 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java	Fri Nov 16 14:24:38 2012 +0100
@@ -91,9 +91,6 @@
     /** The FLYSWorkspace. */
     protected FLYSWorkspace workspace;
 
-    /** The footer. */
-    protected FLYSFooter footer;
-
     /** The user who is currently logged in. */
     protected User currentUser;
 
@@ -136,20 +133,12 @@
         vertical.setWidth100();
         vertical.setHeight100();
 
-        HLayout spacerBar = new HLayout();
-        spacerBar.setWidth("100%");
-        spacerBar.setHeight("20px");
-        spacerBar.setStyleName("bgBlueLight");
-
         menu = new MainMenu(this);
         view = new FLYSView();
-        footer = new FLYSFooter(this);
 
         vertical.addMember(new FLYSHeader());
         vertical.addMember(menu);
-        vertical.addMember(spacerBar);
         vertical.addMember(view);
-        vertical.addMember(footer);
 
         vertical.draw();
 
diff -r 5e25a2b19ddd -r ebc22575e413 flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSFooter.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSFooter.java	Fri Nov 16 12:33:25 2012 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,89 +0,0 @@
-package de.intevation.flys.client.client.ui;
-
-import com.google.gwt.core.client.GWT;
-
-import com.smartgwt.client.types.Alignment;
-import com.smartgwt.client.widgets.Label;
-import com.smartgwt.client.widgets.layout.HLayout;
-
-import de.intevation.flys.client.client.FLYS;
-import de.intevation.flys.client.client.FLYSConstants;
-
-
-/**
- * @author <a href="mailto:raimund.renkert at intevation.de">Raimund Renkert</a>
- */
-public class FLYSFooter extends HLayout {
-
-    /** The interface that provides i18n messages. */
-    private FLYSConstants messages = GWT.create(FLYSConstants.class);
-
-    /** An instance to FLYS.*/
-    protected FLYS flys;
-
-    /** The button to open the project list.*/
-    protected Label home;
-
-    /** The button to switch between the english and german version.*/
-    protected Label contact;
-
-    /** The button to open an info panel.*/
-    protected Label impressum;
-
-    /**
-     * The default constructor for creating a new MainMenu.
-     */
-    public FLYSFooter(FLYS flys) {
-        this.flys     = flys;
-
-        home    = new Label(messages.footerHome());
-        contact  = new Label(messages.footerContact());
-        impressum = new Label(messages.footerImpressum());
-
-        init();
-    }
-
-
-    /**
-     * This method is called by the constructor after creating the necessary
-     * components. It initializes layout specific stuff like width, height,
-     * colors and so on and appends the components.
-     */
-    protected void init() {
-        setStyleName("bgBlueDark");
-        setHeight("25px");
-        setLayoutMargin(5);
-
-        home.setStyleName("fontLightSmall");
-        contact.setStyleName("fontLightSmall");
-        impressum.setStyleName("fontLightSmall");
-
-        HLayout panel = new HLayout();
-        panel.setWidth("100%");
-        panel.setMembersMargin(5);
-        panel.setAlign(Alignment.RIGHT);
-        panel.addMember(home);
-        panel.addMember(contact);
-        panel.addMember(impressum);
-        home.setAlign(Alignment.RIGHT);
-        contact.setAlign(Alignment.RIGHT);
-        impressum.setAlign(Alignment.RIGHT);
-
-        home.setWidth(70);
-        contact.setWidth(70);
-        impressum.setWidth(80);
-
-        addMember(panel);
-    }
-
-
-    /**
-     * Returns the FLYS instance stored in this class.
-     *
-     * @return the flys instance.
-     */
-    protected FLYS getFlys() {
-        return flys;
-    }
-}
-// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :


More information about the Dive4elements-commits mailing list