Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java @ 796:cd8603aaa730
Improved the process of creating OutputTabs. Added support for map output.
flys-client/trunk@2312 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 08 Jul 2011 08:54:08 +0000 |
parents | |
children | cc3f481e9484 |
line wrap: on
line source
package de.intevation.flys.client.client.ui.map; import com.smartgwt.client.widgets.Canvas; import com.smartgwt.client.widgets.layout.HLayout; import de.intevation.flys.client.shared.model.Collection; import de.intevation.flys.client.shared.model.OutputMode; import de.intevation.flys.client.client.ui.CollectionView; import de.intevation.flys.client.client.ui.OutputTab; public class MapOutputTab extends OutputTab { protected CollectionView parent; protected Canvas themePanel; protected Canvas mapPanel; public MapOutputTab( String title, Collection collection, OutputMode mode, CollectionView collectionView ){ super(title, collection, mode); this.parent = collectionView; initLayout(); } protected void initLayout() { themePanel = createThemePanel(); mapPanel = createMapPanel(); HLayout layout = new HLayout(); layout.setWidth100(); layout.setHeight100(); layout.addMember(themePanel); layout.addMember(mapPanel); setPane(layout); } protected Canvas createThemePanel() { Canvas c = new Canvas(); c.setWidth(200); c.setHeight100(); c.setBorder("1px solid blue"); return c; } protected Canvas createMapPanel() { Canvas c = new Canvas(); c.setWidth("*"); c.setHeight100(); c.setBorder("1px solid green"); return c; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :