raimund@80: package de.intevation.flys.client.client.ui; raimund@80: raimund@80: import com.google.gwt.core.client.GWT; raimund@80: raimund@80: import com.smartgwt.client.types.Alignment; raimund@80: import com.smartgwt.client.widgets.Label; raimund@80: import com.smartgwt.client.widgets.layout.HLayout; raimund@80: raimund@80: import de.intevation.flys.client.client.FLYS; ingo@211: import de.intevation.flys.client.client.FLYSConstants; raimund@80: raimund@80: raimund@80: /** raimund@80: * @author Raimund Renkert raimund@80: */ raimund@80: public class FLYSFooter extends HLayout { raimund@80: raimund@80: /** The interface that provides i18n messages. */ ingo@211: private FLYSConstants messages = GWT.create(FLYSConstants.class); raimund@80: raimund@80: /** An instance to FLYS.*/ raimund@80: protected FLYS flys; raimund@80: raimund@80: /** The button to open the project list.*/ raimund@80: protected Label home; raimund@80: raimund@80: /** The button to switch between the english and german version.*/ raimund@80: protected Label contact; raimund@80: raimund@80: /** The button to open an info panel.*/ raimund@80: protected Label impressum; raimund@80: raimund@80: /** raimund@80: * The default constructor for creating a new MainMenu. raimund@80: */ raimund@80: public FLYSFooter(FLYS flys) { raimund@80: this.flys = flys; raimund@80: raimund@80: home = new Label(messages.footerHome()); raimund@80: contact = new Label(messages.footerContact()); raimund@80: impressum = new Label(messages.footerImpressum()); raimund@80: raimund@80: init(); raimund@80: } raimund@80: raimund@80: raimund@80: /** raimund@80: * This method is called by the constructor after creating the necessary raimund@80: * components. It initializes layout specific stuff like width, height, raimund@80: * colors and so on and appends the components. raimund@80: */ raimund@80: protected void init() { raimund@80: setStyleName("bgBlueDark"); raimund@80: setHeight("25px"); raimund@80: setLayoutMargin(5); raimund@80: raimund@80: home.setStyleName("fontLightSmall"); raimund@80: contact.setStyleName("fontLightSmall"); raimund@80: impressum.setStyleName("fontLightSmall"); raimund@80: raimund@80: HLayout panel = new HLayout(); raimund@80: panel.setWidth("100%"); raimund@80: panel.setMembersMargin(5); raimund@80: panel.setAlign(Alignment.RIGHT); raimund@80: panel.addMember(home); raimund@80: panel.addMember(contact); raimund@80: panel.addMember(impressum); raimund@80: home.setAlign(Alignment.RIGHT); raimund@80: contact.setAlign(Alignment.RIGHT); raimund@80: impressum.setAlign(Alignment.RIGHT); raimund@80: raimund@80: home.setWidth(70); raimund@80: contact.setWidth(70); raimund@80: impressum.setWidth(80); raimund@80: raimund@80: addMember(panel); raimund@80: } raimund@80: raimund@80: raimund@80: /** raimund@80: * Returns the FLYS instance stored in this class. raimund@80: * raimund@80: * @return the flys instance. raimund@80: */ raimund@80: protected FLYS getFlys() { raimund@80: return flys; raimund@80: } raimund@80: } raimund@80: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :