亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? formatfilter.java

?? swing編寫的庫存管理程序。畢業設計類
?? JAVA
字號:
/**
 * ========================================
 * JFreeReport : a free Java report library
 * ========================================
 *
 * Project Info:  http://www.jfree.org/jfreereport/index.html
 * Project Lead:  Thomas Morgner;
 *
 * (C) Copyright 2000-2002, by Simba Management Limited and Contributors.
 *
 * This library is free software; you can redistribute it and/or modify it under the terms
 * of the GNU Lesser General Public License as published by the Free Software Foundation;
 * either version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along with this
 * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * -----------------
 * FormatFilter.java
 * -----------------
 * (C)opyright 2002, by Simba Management Limited and Contributors.
 *
 * Original Author:  Thomas Morgner;
 * Contributor(s):   David Gilbert (for Simba Management Limited);
 *
 * $Id: FormatFilter.java,v 1.2 2003/08/24 15:13:22 taqua Exp $
 *
 * Changes
 * -------
 * 20-May-2002 : Initial version
 * 06-Jun-2002 : Updated Javadoc comments (DG);
 * 03-Jul-2002 : Cloneable implemented
 */

package org.jfree.report.filter;

import java.io.Serializable;
import java.text.Format;

/**
 * The base class for filters that format data.  Data is received from a DataSource and formatted.
 * The data source might be a field in the TableModel or a report function, or even another
 * format filter (since filters implement the DataSource interface).
 * <p>
 * Formating is done by a java.text.Format object. This filter will always return a String
 * object on getValue().
 * <p>
 * If the formater does not understand the object returned by the defined datasource,
 * the defined null value is returned.
 * <p>
 * The nullValue is set to "-" by default.
 *
 * @author Thomas Morgner
 */
public class FormatFilter implements DataFilter, Serializable
{
  /** The format used to create the string representation of the data. */
  private Format format;

  /** The datasource from where the data is obtained. */
  private DataSource datasource;

  /** The string used to represent null. */
  private String nullvalue;

  /**
   * Default constructor.
   */
  public FormatFilter()
  {
    nullvalue = null;
  }

  /**
   * Sets the format for the filter.
   *
   * @param format The format.
   *
   * @throws NullPointerException if the given format is null
   */
  public void setFormatter(final Format format)
  {
    if (format == null)
    {
      throw new NullPointerException();
    }
    this.format = format;
  }

  /**
   * Returns the format for the filter.
   *
   * @return The format.
   */
  public Format getFormatter()
  {
    return this.format;
  }

  /**
   * Returns the formatted string. The value is read using the data source given
   * and formated using the formatter of this object. The formating is guaranteed to
   * completly form the object to an string or to return the defined NullValue.
   * <p>
   * If format, datasource or object are null, the NullValue is returned.
   *
   * @return The formatted value.
   */
  public Object getValue()
  {
    final Format f = getFormatter();
    if (f == null)
    {
      return getNullValue();
    }

    final DataSource ds = getDataSource();
    if (ds == null)
    {
      return getNullValue();
    }

    final Object o = ds.getValue();
    if (o == null)
    {
      return getNullValue();
    }

    try
    {
      return f.format(o);
    }
    catch (IllegalArgumentException e)
    {
      return getNullValue();
    }
  }

  /**
   * Sets the value that will be displayed if the data source supplies a null value.
   *
   * @param nullvalue The string.
   */
  public void setNullValue(final String nullvalue)
  {
    if (nullvalue == null)
    {
      throw new NullPointerException();
    }
    this.nullvalue = nullvalue;
  }

  /**
   * Returns the string representing a null value from the data source.
   *
   * @return The string.
   */
  public String getNullValue()
  {
    return nullvalue;
  }

  /**
   * Returns the data source for the filter.
   *
   * @return The data source.
   */
  public DataSource getDataSource()
  {
    return datasource;
  }

  /**
   * Sets the data source.
   *
   * @param ds The data source.
   */
  public void setDataSource(final DataSource ds)
  {
    if (ds == null)
    {
      throw new NullPointerException();
    }
    this.datasource = ds;
  }

  /**
   * Clones the filter.
   *
   * @return a clone.
   *
   * @throws CloneNotSupportedException this should never happen.
   */
  public Object clone() throws CloneNotSupportedException
  {
    final FormatFilter f = (FormatFilter) super.clone();
    if (datasource != null)
    {
      f.datasource = (DataSource) datasource.clone();
    }
    if (format != null)
    {
      f.format = (Format) format.clone();
    }
    return f;
  }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91农村精品一区二区在线| 天涯成人国产亚洲精品一区av| 香港成人在线视频| 国产日韩亚洲欧美综合| 精品美女被调教视频大全网站| 国产精品第13页| 国产精品乱人伦一区二区| 久久久久亚洲蜜桃| 日韩一区二区三免费高清| 91欧美一区二区| 色综合天天性综合| 91豆麻精品91久久久久久| 不卡视频一二三| 成人性生交大片免费看在线播放| 日韩av一级片| 午夜精品久久久久久久久久久| 亚洲日本青草视频在线怡红院| 久久精品一区二区三区四区| 日韩欧美国产系列| 久久精品视频在线看| 欧美日韩在线一区二区| 日本一区二区高清| 亚洲男同1069视频| 亚洲h动漫在线| 国产一区二区主播在线| 狠狠色丁香婷综合久久| www.66久久| 国产亚洲美州欧州综合国| 久久综合五月天婷婷伊人| 99久久久精品免费观看国产蜜| 成人激情图片网| 国产成人超碰人人澡人人澡| 国产麻豆欧美日韩一区| 国产99一区视频免费| 国产成人免费视频网站高清观看视频| 精油按摩中文字幕久久| 国产不卡在线一区| 欧美日韩在线播放一区| 2023国产一二三区日本精品2022| 日韩三级在线观看| 亚洲国产经典视频| 一区二区三区精品在线| 亚洲va韩国va欧美va| 视频一区视频二区在线观看| 日本成人在线电影网| www.欧美日韩| 欧美一级午夜免费电影| 国产精品久久久久久久裸模| 天天综合天天综合色| 国产在线视频精品一区| 色哟哟欧美精品| 欧美精品aⅴ在线视频| 3d动漫精品啪啪一区二区竹菊| 欧美人狂配大交3d怪物一区| 日韩精品专区在线影院观看| 国产亚洲欧美在线| 日韩电影在线观看一区| 91日韩精品一区| 欧美一区二区在线视频| 日本一区二区三区四区| 一区二区三区视频在线看| 日本在线播放一区二区三区| 国产毛片精品国产一区二区三区| 91国模大尺度私拍在线视频| 欧美日韩精品三区| 中文字幕第一页久久| 麻豆精品久久精品色综合| 成人黄动漫网站免费app| 日韩欧美在线观看一区二区三区| 国产午夜精品在线观看| 精久久久久久久久久久| 欧美一区二区三区在线看| 亚洲综合视频在线观看| 99精品热视频| 中文字幕在线播放不卡一区| 粉嫩在线一区二区三区视频| 欧美精品一区二区三区蜜臀| 免费人成精品欧美精品| 欧美一区二区三区视频在线| 日韩国产成人精品| 欧美日韩国产成人在线91| 亚洲一区二区三区自拍| 欧美性猛交xxxxxxxx| 亚洲一区二区精品3399| 欧美亚洲国产一区在线观看网站| 亚洲女厕所小便bbb| 欧美亚洲动漫精品| 午夜精品一区二区三区电影天堂 | 国产精品国产三级国产有无不卡 | 91小视频免费看| 1区2区3区欧美| 在线观看一区不卡| 亚洲成av人片在线观看无码| 欧美午夜理伦三级在线观看| 五月综合激情日本mⅴ| 911精品国产一区二区在线| 天堂一区二区在线| 精品99999| 成人黄色网址在线观看| 一片黄亚洲嫩模| 欧美一区三区四区| 成人免费视频视频在线观看免费| 中文字幕在线观看不卡视频| 99精品视频在线观看免费| 亚洲国产日韩一级| www成人在线观看| 色综合久久中文综合久久牛| 午夜精品久久久久久久蜜桃app| 精品国产一区二区三区久久影院| 国产激情偷乱视频一区二区三区| 亚洲欧美日韩国产另类专区| 欧美高清激情brazzers| 国产福利视频一区二区三区| 亚洲精品五月天| 精品伦理精品一区| 色婷婷av一区二区三区gif| 日本三级亚洲精品| 国产精品电影一区二区| 日韩一区二区三区观看| 91在线国产观看| 国内精品国产三级国产a久久| 一区在线观看视频| 日韩欧美电影一区| 欧美在线观看视频一区二区三区| 九色porny丨国产精品| 亚洲老司机在线| 国产嫩草影院久久久久| 3atv一区二区三区| 99re热视频这里只精品| 国产毛片精品视频| 免费成人在线视频观看| 一区二区三区在线免费播放| 国产性做久久久久久| 91.麻豆视频| 欧美主播一区二区三区| 9久草视频在线视频精品| 精品一区二区三区在线观看| 亚洲成av人综合在线观看| 日韩一区中文字幕| 国产欧美精品区一区二区三区| 日韩一区二区在线观看| 欧美少妇bbb| 在线视频你懂得一区| caoporm超碰国产精品| 国产盗摄一区二区三区| 国内国产精品久久| 久久电影网站中文字幕| 免费看日韩精品| 蜜臀va亚洲va欧美va天堂| 丝袜脚交一区二区| 视频一区国产视频| 香蕉成人伊视频在线观看| 亚洲妇女屁股眼交7| 亚洲午夜精品一区二区三区他趣| 椎名由奈av一区二区三区| 中文字幕第一区综合| 欧美一区二区三区四区久久 | 成人美女视频在线观看| 精品视频1区2区3区| 国产亚洲欧美在线| 午夜欧美大尺度福利影院在线看 | 久久久久久久性| 一区二区三区小说| 国产一区二区影院| 欧美三级蜜桃2在线观看| 国产欧美精品一区二区色综合| 亚洲成人7777| 99久久精品免费精品国产| 日韩一区二区三区四区| 亚洲精品日韩一| 国产精品资源在线| 欧美一区二区黄色| 一区二区三区鲁丝不卡| 成人小视频免费观看| 日韩一区国产二区欧美三区| 亚洲三级电影网站| 成人一级片在线观看| 精品乱码亚洲一区二区不卡| 亚洲超碰精品一区二区| www.成人网.com| 久久精品人人做人人爽人人| 日韩av中文在线观看| 欧美性感一区二区三区| 亚洲素人一区二区| 国产白丝精品91爽爽久久| 精品少妇一区二区三区| 日韩电影在线观看电影| 欧美性高清videossexo| 中文字幕综合网| 成人av一区二区三区| 国产亚洲欧美中文| 国产呦萝稀缺另类资源| 精品日韩在线观看| 免费不卡在线观看| 日韩一区二区免费视频| 日韩中文字幕亚洲一区二区va在线| 91国模大尺度私拍在线视频| 亚洲美女在线国产| 91成人国产精品| 亚洲午夜久久久久久久久久久 |