Package org.geoserver.web.wicket

Examples of org.geoserver.web.wicket.SRSListPanel


    public SRSListPage() {
        add(srsListPanel());
    }

    SRSListPanel srsListPanel() {
        return new SRSListPanel("srsListPanel") {

            @Override
            protected void onCodeClicked(AjaxRequestTarget target, String epsgCode) {
                setResponsePage(SRSDescriptionPage.class, new PageParameters("code=EPSG:"
                        + epsgCode));
View Full Code Here


            });
        }

        @Override
        protected SRSListPanel srsListPanel() {
            SRSListPanel srsList = new SRSListPanel(popupWindow.getContentId()) {

                @Override
                protected void onCodeClicked(AjaxRequestTarget target, String epsgCode) {
                    popupWindow.close(target);

                    String srs = "EPSG:" + epsgCode;
                    srsTextField.setModelObject(srs);
                    target.addComponent(srsTextField);

                    CoordinateReferenceSystem crs = fromSRS(srs);
                    wktLabel.setDefaultModelObject(crs.getName().toString());
                    wktLink.setEnabled(true);
                    target.addComponent(wktLink);
                    updateUnits(crs);
                    target.addComponent(units);
                    target.addComponent(metersPerUnit);
                }
            };
            srsList.setCompactMode(true);
            return srsList;
        }
View Full Code Here

    public SRSListPage() {
        add(srsListPanel());
    }

    SRSListPanel srsListPanel() {
        return new SRSListPanel("srsListPanel") {

            @Override
            protected void onCodeClicked(AjaxRequestTarget target, String epsgCode) {
                setResponsePage(SRSDescriptionPage.class, new PageParameters("code=EPSG:"
                        + epsgCode));
View Full Code Here

TOP

Related Classes of org.geoserver.web.wicket.SRSListPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.