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

📄 mycustomcriteria.java

📁 采用java实现的arcgis server程序
💻 JAVA
字号:
/*
 * Copyright (c) 2008 ESRI
 *
 * All rights reserved under the copyright laws of the United States
 * and applicable international laws, treaties, and conventions.
 *
 * You may freely redistribute and use this sample code, with or
 * without modification, provided you include the original copyright
 * notice and use restrictions.
 *
 * See use restrictions at <install>/ArcGIS/java/samples/userestrictions.
 */

package com.esri.adf.sample.criteria;

import com.esri.adf.web.data.query.QueryCriteria;

/*
 * Defines common properties of this custom query used by MyAGSCustomQueryFunctionality
 */
public class MyCustomCriteria implements QueryCriteria {

  public static final String CRITERIA_TYPE = "MyCustomCriteria";

  private String displayFieldName = null;

  private int maxRecordCount = -1;

  private boolean fetchResultDetails = true;

  public String getCriteriaType() {
    return MyCustomCriteria.CRITERIA_TYPE;
  }

  public String getDisplayFieldName() {
    return this.displayFieldName;
  }

  public int getMaxRecordCount() {
    return this.maxRecordCount;
  }

  public boolean isFetchResultDetails() {
    return this.fetchResultDetails;
  }

  public void setDisplayFieldName(String displayFieldName) {
    this.displayFieldName = displayFieldName;
  }

  public void setFetchResultDetails(boolean fetchResultDetails) {
    this.fetchResultDetails = fetchResultDetails;
  }

  public void setMaxRecordCount(int maxRecordCount) {
    this.maxRecordCount = maxRecordCount;
  }
}

⌨️ 快捷键说明

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