comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/FLYSFooter.java @ 80:a26489e55730

Added footer and a spacer to the webpage layout. flys-client/trunk@1587 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 28 Mar 2011 11:59:00 +0000
parents
children f7967d12ce6e
comparison
equal deleted inserted replaced
79:17815a7354bc 80:a26489e55730
1 package de.intevation.flys.client.client.ui;
2
3 import com.google.gwt.core.client.GWT;
4
5 import com.smartgwt.client.types.Alignment;
6 import com.smartgwt.client.widgets.Label;
7 import com.smartgwt.client.widgets.events.ClickEvent;
8 import com.smartgwt.client.widgets.events.ClickHandler;
9 import com.smartgwt.client.widgets.layout.HLayout;
10
11 import de.intevation.flys.client.client.FLYS;
12 import de.intevation.flys.client.client.FLYSMessages;
13 import de.intevation.flys.client.shared.model.User;
14
15
16 /**
17 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
18 */
19 public class FLYSFooter extends HLayout {
20
21 /** The interface that provides i18n messages. */
22 private FLYSMessages messages = GWT.create(FLYSMessages.class);
23
24 /** An instance to FLYS.*/
25 protected FLYS flys;
26
27 /** The button to open the project list.*/
28 protected Label home;
29
30 /** The button to switch between the english and german version.*/
31 protected Label contact;
32
33 /** The button to open an info panel.*/
34 protected Label impressum;
35
36 /**
37 * The default constructor for creating a new MainMenu.
38 */
39 public FLYSFooter(FLYS flys) {
40 this.flys = flys;
41
42 home = new Label(messages.footerHome());
43 contact = new Label(messages.footerContact());
44 impressum = new Label(messages.footerImpressum());
45
46 init();
47 }
48
49
50 /**
51 * This method is called by the constructor after creating the necessary
52 * components. It initializes layout specific stuff like width, height,
53 * colors and so on and appends the components.
54 */
55 protected void init() {
56 setStyleName("bgBlueDark");
57 setHeight("25px");
58 setLayoutMargin(5);
59
60 home.setStyleName("fontLightSmall");
61 contact.setStyleName("fontLightSmall");
62 impressum.setStyleName("fontLightSmall");
63
64 HLayout panel = new HLayout();
65 panel.setWidth("100%");
66 panel.setMembersMargin(5);
67 panel.setAlign(Alignment.RIGHT);
68 panel.addMember(home);
69 panel.addMember(contact);
70 panel.addMember(impressum);
71 home.setAlign(Alignment.RIGHT);
72 contact.setAlign(Alignment.RIGHT);
73 impressum.setAlign(Alignment.RIGHT);
74
75 home.setWidth(70);
76 contact.setWidth(70);
77 impressum.setWidth(80);
78
79 addMember(panel);
80 }
81
82
83 /**
84 * Returns the FLYS instance stored in this class.
85 *
86 * @return the flys instance.
87 */
88 protected FLYS getFlys() {
89 return flys;
90 }
91 }
92 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org