⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 editor.jsp

📁 联合国农粮署牵头开发的geonetwork源代码最新版
💻 JSP
📖 第 1 页 / 共 2 页
字号:
            </td>
            <td>
              <html:text property="maxX" size="15"/>
            </td>
            <td style="white-space: nowrap;">
              <span class="help" title="<bean:message key="help.type.maxy"/>">
                <bean:message key="label.type.maxy"/>:
              </span>
            </td>
            <td>
              <html:text property="maxY" size="15"/>
            </td>
          </tr>
        </table>
	  </td>
    </tr>

    <tr>
      <td class="label">
		<span class="help" title="<bean:message key="help.dataFeatureTypeKeywords"/>">
			<bean:message key="label.keywords"/>:
		</span>
	  </td>
	  <td class="datum">
		<html:textarea property="keywords" cols="60" rows="2"/>
	  </td>
    </tr>

    <tr>
      <td class="label">
		<span class="help" title="<bean:message key="help.dataFeatureTypeAbstract"/>">
			<bean:message key="label.abstract"/>:
		</span>
	  </td>
	  <td class="datum">
		<html:textarea property="abstract" cols="60" rows="3"/>
      </td>
    </tr>
    
	<tr>
      <td class="label">
		<span class="help" title="<bean:message key="help.wms.path"/>">
          <bean:message key="label.wms.path"/>:
        </span>
	  </td>
	  <td class="datum">
		<html:text property="wmsPath" size="60"/>
	  </td>
	</tr>

    <tr>
      <td class="label">
		<span class="help" title="<bean:message key="help.dataFeatureTypeMetadataURLs"/>">
			<bean:message key="label.metadataURL"/>:
		</span>
	  </td>
	  <td class="datum">
	  	  <table cellspacing="0">
	  	  	<tr>
	  	  	  <td align="left">
				<span class="help" title="<bean:message key="help.dataFeatureTypeMetadataURLType"/>">
					<bean:message key="label.metadataURLType"/>
				</span>
			  </td>
			  <td align="left">
				<span class="help" title="<bean:message key="help.dataFeatureTypeMetadataURLFormat"/>">
					<bean:message key="label.metadataURLFormat"/>
				</span>
			  </td>
			  <td align="left">
				<span class="help" title="<bean:message key="help.dataFeatureTypeMetadataURLLink"/>">
					<bean:message key="label.metadataURLLink" />
				</span>
			  </td>
	  	  	</tr>
	  	  	<tr>
	  	  	  <td class="datum">
	  	  	  	<html:select property="metadataLink[0].metadataType">
	  	  	  	  <html:options property="allMetadataURLTypes"/>
	  	  	  	</html:select>
	  	  	  </td>
	  	  	  <td class="datum">
	  	  	  	<html:text property="metadataLink[0].type"/>
	  	  	  </td>
	  	  	  <td class="datum">
	  	  	  	<html:text property="metadataLink[0].content" size="60"/>
	  	  	  </td>
	  	  	</tr>
	  	  	<tr>
	  	  	  <td class="datum">
	  	  	  	<html:select property="metadataLink[1].metadataType">
	  	  	  	  <html:options property="allMetadataURLTypes"/>
	  	  	  	</html:select>
	  	  	  </td>
	  	  	  <td class="datum">
	  	  	  	<html:text property="metadataLink[1].type"/>
	  	  	  </td>
	  	  	  <td class="datum">
	  	  	  	<html:text property="metadataLink[1].content" size="60"/>
	  	  	  </td>
	  	  	</tr>
	  	  </table>
	  </td>
    </tr>
    
    <tr>
	    <td class="label">
    		<span class="help" title="<bean:message key="help.type.cachingEnabled" />">
    			<bean:message key="label.cachingEnabled" />:
    		</span>
    	</td>
    	<td class="datum">
    		<html:checkbox property="cachingEnabled" />
    	</td>
    </tr>
    
    <tr>
    	<td class="label">
    		<span class="help" title="<bean:message key="help.type.cacheMaxAge" />">
    			<bean:message key="label.cacheMaxAge" />:
    		</span>
    	</td>
    	<td class="datum">
    		<html:text property="cacheMaxAge" size="10" />
    	</td>
    </tr>

    <tr>
      <td class="label">
		<span class="help" title="<bean:message key="help.type.base"/>">
			<bean:message key="label.base"/>:
		</span>
	  </td>
	  <td class="datum">
		<html:select property="schemaBase">
			<html:options property="allYourBase"/>
		</html:select>
		<html:submit property="action">
			<bean:message key="label.change"/>
		</html:submit>
      </td>
    </tr>

  <% boolean first = true;
     org.vfny.geoserver.form.data.AttributeDisplay attributeDisplay = null;;
     org.vfny.geoserver.form.data.AttributeForm attributeForm = null; 
     
     org.vfny.geoserver.form.data.TypesEditorForm form = 
             (org.vfny.geoserver.form.data.TypesEditorForm) request.getAttribute("typesEditorForm");
     java.util.List attributes = (java.util.List) form.getAttributes();
     int attributesSize = attributes.size(); %>
             
    <% if (!("--".equals(form.getSchemaBase())) ) { %>
    <tr>
      <td class="label">
		<span class="help" title="<bean:message key="help.type.schemaName"/>">
          <bean:message key="label.schemaName"/>:
        </span>
	  </td>
	  <td class="datum">
		<html:text property="schemaName" size="60"/>
	  </td>
	</tr>
    <% } %>    

<logic:iterate id="attribute" indexId="index" name="typesEditorForm" property="attributes">
	<tr>
      <td class="label">
		<bean:write name="attribute" property="name"/>:
	  </td>
	  <td class="datum">
        <table border=0 width="100%">
          <tr style="white-space: nowrap;">
            
		  <%
		     if (attribute instanceof org.vfny.geoserver.form.data.AttributeDisplay) { 
		  	     attributeDisplay = (org.vfny.geoserver.form.data.AttributeDisplay) attribute; %>
            <td width="70%"><bean:write name="attribute" property="type"/></td>
            <td>nillable:<bean:write name="attribute" property="nillable"/></td>
            <td>min:<bean:write name="attribute" property="minOccurs"/></td>
            <td>max:<bean:write name="attribute" property="maxOccurs"/></td>
          <% } else { 
                 attributeForm = (org.vfny.geoserver.form.data.AttributeForm) attribute; %>
            <td width="70%">
            	<html:select property='<%= "attributes[" + index + "].type"%>'>
          			<html:options property='<%= "attributes[" + index + "].types"%>'/>
        		</html:select>
				<html:submit property="action">
					<bean:message key="label.change"/>
				</html:submit>        		
            </td>
            <td><bean:message key="label.nillable"/>:<html:checkbox property='<%= "attributes[" + index + "].nillable" %>'/></td>
            <td><bean:message key="label.min"/>:<html:text size="2" property='<%= "attributes[" + index + "].minOccurs"%>'/></td>
            <td><bean:message key="label.max"/>:<html:text size="2" property='<%= "attributes[" + index + "].maxOccurs"%>'/></td>
            <td width=16>
              <% if (first == false) { %>
          	  <html:image src="../../../data/images/up.png" 
          	  	          titleKey="type.title.up" 
          	  	          property="action" 
          	  	          value='<%= "up_"+ index%>'/>
          	  <% } 
          	     first = false; %>
          	</td>
          	<td width=16>
          	  <% if (attributesSize-1 != index.intValue()) { %>
          	  <html:image src="../../../data/images/down.png" 
          	              titleKey="type.title.down" 
          	              property="action" 
          	              value='<%= "down_"+ index%>'/>
          	  <% } %>
          	</td> 
          	<td width=16>
          	  <html:image src="../../../data/images/delete.png" 
          	  	          titleKey="type.title.delete" 
          	  	          property="action" 
          	  	          value='<%= "delete_"+ index%>'/>
		    </td>
          <% } %>
          </tr>
          <%
            if (attributeForm != null && attributeForm.getType().equals(org.vfny.geoserver.config.AttributeTypeInfoConfig.TYPE_FRAGMENT)) {
  		  %>
          <tr>
            <td align="left" valign="top" colspan="7">
              		<html:textarea cols="80" rows="3" 
              		               property='<%= "attributes[" + index + "].fragment" %>'/>
            </td>
          </tr>
          <% } %>
        </table>		
      </td>
    </tr>
</logic:iterate>
    
    
    <% if (form.getCreateableAttributes().size() != 0) { %>
    <tr>
    	<td>
  			<html:select property="newAttribute">
				<html:options property="createableAttributes"/>
			</html:select>
		</td>
		<td>
			<html:submit property="action">
				<bean:message key="label.add"/>
			</html:submit>    	
		</td>
    </tr>
    <% } %>
    
    <tr>
      <td class="label">
        &nbsp;
      </td>
	  <td class="datum">

		<html:submit property="action">
			<bean:message key="label.submit"/>
		</html:submit>
		
		<html:reset>
			<bean:message key="label.reset"/>
		</html:reset>

	  </td>
    </tr>
  </table>
<html:hidden property="autoGenerateExtent" value="false"/>
</html:form>

<% } catch (Throwable hate ){
   System.err.println( "FeatureType Editor problem:"+ hate );
   hate.printStackTrace();
   throw hate;
} %>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -