📄 typeseditorform.java
字号:
/**
* Set sRS to srs.
*
* Also sets WKTSRS.
* srs should be an Integer (in string form) - according to FeatureTypeConfig
*
* @param srs The sRS to set.
*/
public void setSRS(String srs) {
SRS = srs;
try {
// srs should be an Integer - according to FeatureTypeConfig
// TODO: make everything consistent for SRS - either its an int or a
// string.
String newSrs = srs;
if (newSrs.indexOf(':') == -1) {
newSrs = "EPSG:" + srs;
}
declaredCRS = CRS.decode(newSrs);
SRSWKT = declaredCRS.toString();
} catch (FactoryException e) // couldnt decode their code
{
// DJB:
// dont know how to internationize this inside a set() method!!!
// I think I need the request to get the local, then I can get MessageResources
// from the servlet and call an appropriate method.
// Unforutunately, I dont know how to get the local!
SRSWKT = "Could not find a definition for: EPSG:" + srs;
}
}
/**
* Access title property.
*
* @return Returns the title.
*/
public String getTitle() {
return title;
}
/**
* Set title to title.
*
* @param title The title to set.
*/
public void setTitle(String title) {
this.title = title;
}
/**
* DOCUMENT ME!
*
* @return Returns the action.
*/
public String getAction() {
return action;
}
/**
* DOCUMENT ME!
*
* @param action The action to set.
*/
public void setAction(String action) {
this.action = action;
}
/**
* DOCUMENT ME!
*
* @return Returns the maxX.
*/
public String getMaxX() {
return maxX;
}
/**
* DOCUMENT ME!
*
* @param maxX The maxX to set.
*/
public void setMaxX(String maxX) {
this.maxX = maxX;
}
/**
* DOCUMENT ME!
*
* @return Returns the maxY.
*/
public String getMaxY() {
return maxY;
}
/**
* DOCUMENT ME!
*
* @param maxY The maxY to set.
*/
public void setMaxY(String maxY) {
this.maxY = maxY;
}
/**
* DOCUMENT ME!
*
* @return Returns the minX.
*/
public String getMinX() {
return minX;
}
/**
* DOCUMENT ME!
*
* @param minX The minX to set.
*/
public void setMinX(String minX) {
this.minX = minX;
}
/**
* DOCUMENT ME!
*
* @return Returns the minY.
*/
public String getMinY() {
return minY;
}
/**
* DOCUMENT ME!
*
* @param minY The minY to set.
*/
public void setMinY(String minY) {
this.minY = minY;
}
/**
* DOCUMENT ME!
*
* @return Returns the styleId.
*/
public String getStyleId() {
return styleId;
}
/**
* DOCUMENT ME!
*
* @param styleId The styleId to set.
*/
public void setStyleId(String styleId) {
this.styleId = styleId;
}
/**
* DOCUMENT ME!
*
* @return Returns the styles.
*/
public SortedSet getStyles() {
return styles;
}
/**
* DOCUMENT ME!
*
* @param styles The styles to set.
*/
public void setStyles(SortedSet styles) {
this.styles = styles;
}
public Object getAttribute(int index) {
return attributes.get(index);
}
public void setAttribute(int index, Object attribute) {
attributes.set(index, attribute);
}
/**
* Access newAttribute property.
*
* @return Returns the newAttribute.
*/
public String getNewAttribute() {
return newAttribute;
}
/**
* Set newAttribute to newAttribute.
*
* @param newAttribute The newAttribute to set.
*/
public void setNewAttribute(String newAttribute) {
this.newAttribute = newAttribute;
}
/**
* Access the autoGenerateExtent attribute.
*
*/
public String getAutoGenerateExtent() {
if (this.autoGenerateExtent == null) {
this.autoGenerateExtent = "false";
}
return this.autoGenerateExtent;
}
/**
* Set autoGenerateExtent to autoGenerateExtent.
* @param autoGenerateExtent The autoGenerateExtent to set.
*/
public void setAutoGenerateExtent(String autoGenerateExtent) {
this.autoGenerateExtent = autoGenerateExtent;
}
/**
* DOCUMENT ME!
*
* @return List of attributes available for addition
*/
public List getCreateableAttributes() {
return addList;
}
/**
* DOCUMENT ME!
*
* @return Returns the schemaName.
*/
public String getSchemaName() {
return schemaName;
}
/**
* DOCUMENT ME!
*
* @param schemaName The schemaName to set.
*/
public void setSchemaName(String schemaName) {
this.schemaName = schemaName;
}
public void setDataMinX(String x) {
dataMinX = x;
}
public void setDataMinY(String x) {
dataMinY = x;
}
public void setDataMaxX(String x) {
dataMaxX = x;
}
public void setDataMaxY(String x) {
dataMaxY = x;
}
public String getDataMinX() {
return dataMinX;
}
public String getDataMinY() {
return dataMinY;
}
public String getDataMaxX() {
return dataMaxX;
}
public String getDataMaxY() {
return dataMaxY;
}
public String getWmsPath() {
return wmsPath;
}
public void setWmsPath(String wmsPath) {
this.wmsPath = wmsPath;
}
public String getCacheMaxAge() {
return cacheMaxAge;
}
public void setCacheMaxAge(String cacheMaxAge) {
this.cacheMaxAge = cacheMaxAge;
}
public boolean isCachingEnabled() {
return cachingEnabled;
}
public void setCachingEnabled(boolean cachingEnabled) {
cachingEnabledChecked = true;
this.cachingEnabled = cachingEnabled;
}
public boolean isCachingEnabledChecked() {
return cachingEnabledChecked;
}
public String[] getOtherSelectedStyles() {
return otherSelectedStyles;
}
public void setOtherSelectedStyles(String[] otherSelectedStyles) {
this.otherSelectedStyles = otherSelectedStyles;
}
public SortedSet getPanelStyleIds() {
return panelStyleIds;
}
public SortedSet getTypeStyles() {
return typeStyles;
}
public List getAllSrsHandling() {
return allSrsHandling;
}
/**
* This methods are used by the form, where the "leave" option cannot be offered, if
* they are equal the drop down list won't be shown, that's all
* @return
*/
public String getSrsHandling() {
if(srsHandling >= 0 && srsHandling < allSrsHandling.size())
return (String) allSrsHandling.get(srsHandling);
else
return (String) allSrsHandling.get(0);
}
public void setSrsHandling(String handling) {
srsHandling = allSrsHandling.indexOf(handling);
if(srsHandling == -1)
srsHandling = FeatureTypeInfo.FORCE;
}
public int getSrsHandlingCode() {
return srsHandling;
}
public void setSrsHandlingCode(int code) {
this.srsHandling = code;
}
public boolean isDeclaredCRSDifferent() {
return nativeCRS == null || (declaredCRS != null && !CRS.equalsIgnoreMetadata(declaredCRS, nativeCRS));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -