Package org.geoserver.wms.web.publish

Source Code of org.geoserver.wms.web.publish.GeoSearchLayerConfigPanel

/* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.wms.web.publish;

import org.geoserver.catalog.LayerInfo;
import org.geoserver.web.util.MapModel;
import org.geoserver.web.publish.LayerConfigurationPanel;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.PropertyModel;
import org.apache.wicket.markup.html.form.CheckBox;

/**
* Configures a {@link LayerInfo} geo-search related metadata
*/
@SuppressWarnings("serial")
public class GeoSearchLayerConfigPanel extends LayerConfigurationPanel{
    public GeoSearchLayerConfigPanel(String id, IModel model){
        super(id, model);

        add(new CheckBox("geosearch.enable", new MapModel(new PropertyModel(getModel(), "resource.metadata"), "indexingEnabled")));
    }
}
TOP

Related Classes of org.geoserver.wms.web.publish.GeoSearchLayerConfigPanel

TOP
Copyright © 2018 www.massapi.com. 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.