/* (c) 2014 - 2015 Open Source Geospatial Foundation - all rights reserved
* (c) 2001 - 2013 OpenPlans
* This code is licensed under the GPL 2.0 license, available at the root
* application directory.
*/
package org.geoserver.web.data.resource;
import java.util.logging.Logger;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;
import org.geoserver.catalog.ResourceInfo;
import org.geotools.util.logging.Logging;
/**
* A panel created to configure one aspect of a {@link ResourceInfo} object.
* <p>
* Typically there will be one panel dealing generically with
* {@link ResourceInfo} and one extra panel to deal with the specifics of each
* subclass.
* <p>
* All the components in the panel must be contained in a {@link Form} to make
* sure the whole tab switch and page submit workflow function properly
*/
@SuppressWarnings("serial")
public class ResourceConfigurationPanel extends Panel {
protected static Logger LOGGER = Logging.getLogger(ResourceConfigurationPanel.class);
public ResourceConfigurationPanel(String panelId, IModel model){
super(panelId, model);
}
public ResourceInfo getResourceInfo(){
return (ResourceInfo)getDefaultModelObject();
}
/**
* Called when the resource gets updated in the main page. The ajax request target might be null
* in case there is none.
*
* @param target
*/
public void resourceUpdated(AjaxRequestTarget target) {
// nothing to do;
}
}