PageRenderTime 43ms CodeModel.GetById 17ms app.highlight 6ms RepoModel.GetById 0ms app.codeStats 0ms

/webportal/src/main/java/org/ala/spatial/analysis/web/MapOptions.java

http://alageospatialportal.googlecode.com/
Java | 28 lines | 19 code | 5 blank | 4 comment | 2 complexity | 3b6026b3a81a45506463711fbc45fdf4 MD5 | raw file
 1package org.ala.spatial.analysis.web;
 2
 3import au.org.emii.portal.composer.UtilityComposer;
 4import java.util.List;
 5import org.zkoss.zul.Radio;
 6import org.zkoss.zul.Radiogroup;
 7
 8/**
 9 *
10 * @author Adam
11 */
12public class MapOptions extends UtilityComposer {
13    
14    Radiogroup rgBaseMap;
15
16    @Override
17    public void afterCompose() {
18        super.afterCompose();
19
20        String baseMap = getMapComposer().getBaseMap();
21        for(Radio r : (List<Radio>) rgBaseMap.getItems()) {
22            if(r.getValue().equals(baseMap)) {
23                rgBaseMap.setSelectedItem(r);
24                break;
25            }
26        }
27    }
28}