📄 datafeaturetypesnewform.java
字号:
/* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
* This code is licensed under the GPL 2.0 license, availible at the root
* application directory.
*/
package org.vfny.geoserver.form.data;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.vfny.geoserver.config.DataConfig;
import java.util.SortedSet;
import java.util.TreeSet;
import javax.servlet.http.HttpServletRequest;
/**
* DataFeatureTypesNewForm purpose.
*
* @author rgould, Refractions Research, Inc.
* @author $Author: dmzwiers $ (last modification)
* @version $Id: DataFeatureTypesNewForm.java 6326 2007-03-15 18:36:40Z jdeolive $
*/
public class DataFeatureTypesNewForm extends ActionForm {
String selectedNewFeatureType;
HttpServletRequest request;
public SortedSet getNewFeatureTypes() {
DataConfig dataConfig = (DataConfig) request.getSession().getServletContext()
.getAttribute(DataConfig.CONFIG_KEY);
TreeSet out = new TreeSet(dataConfig.getFeatureTypeIdentifiers(
getServlet().getServletContext()));
out.removeAll(dataConfig.getFeaturesTypes().keySet());
return out;
}
public void reset(ActionMapping arg0, HttpServletRequest request) {
super.reset(arg0, request);
this.request = request;
selectedNewFeatureType = "";
}
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
return errors;
}
/**
* Access selectedNewFeatureType property.
*
* @return Returns the selectedNewFeatureType.
*/
public String getSelectedNewFeatureType() {
return selectedNewFeatureType;
}
/**
* Set selectedNewFeatureType to selectedNewFeatureType.
*
* @param selectedNewFeatureType The selectedNewFeatureType to set.
*/
public void setSelectedNewFeatureType(String selectedNewFeatureType) {
this.selectedNewFeatureType = selectedNewFeatureType;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -