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

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

?? examplefilefilter.java

?? 從word文件中制取文字的控件
?? JAVA
字號:
package wordextractor;//------------------------------------------------------------------------------/** * Title:        基于移動電子商務的分布式工作流管理系統-客戶端代碼 Beta 1.0 * Description:  讀取WORD文件用到的進行文件選擇時的文件過濾器 * 采用Applet形式的客戶端開發。 * 用戶管理的子導航條面板 * 2002年11月24日 * Copyright:    Copyright (c) 2002 * Company:      浙江大學現代制造工作研究所 * @author 戰洪飛 * @version 1.0 *///------------------------------------------------------------------------------import java.io.File;import java.util.Hashtable;import java.util.Enumeration;import javax.swing.*;import javax.swing.filechooser.*;//------------------------------------------------------------------------------/** * A convenience implementation of FileFilter that filters out * all files except for those type extensions that it knows about. * * Extensions are of the type ".foo", which is typically found on * Windows and Unix boxes, but not on Macinthosh. Case is ignored. * * Example - create a new filter that filerts out all files * but gif and jpg image files: * *     JFileChooser chooser = new JFileChooser(); *     ExampleFileFilter filter = new ExampleFileFilter( *                   new String{"gif", "jpg"}, "JPEG & GIF Images") *     chooser.addChoosableFileFilter(filter); *     chooser.showOpenDialog(this); * * @version 1.9 04/23/99 * @author Jeff Dinkins */public class ExampleFileFilter extends FileFilter {    private static String TYPE_UNKNOWN = "Type Unknown";    private static String HIDDEN_FILE = "Hidden File";    private Hashtable filters = null;    private String description = null;    private String fullDescription = null;    private boolean useExtensionsInDescription = true;    /**     * Creates a file filter. If no filters are added, then all     * files are accepted.     *     * @see #addExtension     */    public ExampleFileFilter() {	this.filters = new Hashtable();    }    /**     * Creates a file filter that accepts files with the given extension.     * Example: new ExampleFileFilter("jpg");     *     * @see #addExtension     */    public ExampleFileFilter(String extension) {	this(extension,null);    }    /**     * Creates a file filter that accepts the given file type.     * Example: new ExampleFileFilter("jpg", "JPEG Image Images");     *     * Note that the "." before the extension is not needed. If     * provided, it will be ignored.     *     * @see #addExtension     */    public ExampleFileFilter(String extension, String description) {	this();	if(extension!=null) addExtension(extension); 	if(description!=null) setDescription(description);    }    /**     * Creates a file filter from the given string array.     * Example: new ExampleFileFilter(String {"gif", "jpg"});     *     * Note that the "." before the extension is not needed adn     * will be ignored.     *     * @see #addExtension     */    public ExampleFileFilter(String[] filters) {	this(filters, null);    }    /**     * Creates a file filter from the given string array and description.     * Example: new ExampleFileFilter(String {"gif", "jpg"}, "Gif and JPG Images");     *     * Note that the "." before the extension is not needed and will be ignored.     *     * @see #addExtension     */    public ExampleFileFilter(String[] filters, String description) {	this();	for (int i = 0; i < filters.length; i++) {	    // add filters one by one	    addExtension(filters[i]);	} 	if(description!=null) setDescription(description);    }    /**     * Return true if this file should be shown in the directory pane,     * false if it shouldn't.     *     * Files that begin with "." are ignored.     *     * @see #getExtension     * @see FileFilter#accepts     */    public boolean accept(File f) {	if(f != null) {	    if(f.isDirectory()) {		return true;	    }	    String extension = getExtension(f);	    if(extension != null && filters.get(getExtension(f)) != null) {		return true;	    };	}	return false;    }    /**     * Return the extension portion of the file's name .     *     * @see #getExtension     * @see FileFilter#accept     */     public String getExtension(File f) {	if(f != null) {	    String filename = f.getName();	    int i = filename.lastIndexOf('.');	    if(i>0 && i<filename.length()-1) {		return filename.substring(i+1).toLowerCase();	    };	}	return null;    }    /**     * Adds a filetype "dot" extension to filter against.     *     * For example: the following code will create a filter that filters     * out all files except those that end in ".jpg" and ".tif":     *     *   ExampleFileFilter filter = new ExampleFileFilter();     *   filter.addExtension("jpg");     *   filter.addExtension("tif");     *     * Note that the "." before the extension is not needed and will be ignored.     */    public void addExtension(String extension) {	if(filters == null) {	    filters = new Hashtable(5);	}	filters.put(extension.toLowerCase(), this);	fullDescription = null;    }    /**     * Returns the human readable description of this filter. For     * example: "JPEG and GIF Image Files (*.jpg, *.gif)"     *     * @see setDescription     * @see setExtensionListInDescription     * @see isExtensionListInDescription     * @see FileFilter#getDescription     */    public String getDescription() {	if(fullDescription == null) {	    if(description == null || isExtensionListInDescription()) { 		fullDescription = description==null ? "(" : description + " (";		// build the description from the extension list		Enumeration extensions = filters.keys();		if(extensions != null) {		    fullDescription += "." + (String) extensions.nextElement();		    while (extensions.hasMoreElements()) {			fullDescription += ", " + (String) extensions.nextElement();		    }		}		fullDescription += ")";	    } else {		fullDescription = description;	    }	}	return fullDescription;    }    /**     * Sets the human readable description of this filter. For     * example: filter.setDescription("Gif and JPG Images");     *     * @see setDescription     * @see setExtensionListInDescription     * @see isExtensionListInDescription     */    public void setDescription(String description) {	this.description = description;	fullDescription = null;    }    /**     * Determines whether the extension list (.jpg, .gif, etc) should     * show up in the human readable description.     *     * Only relevent if a description was provided in the constructor     * or using setDescription();     *     * @see getDescription     * @see setDescription     * @see isExtensionListInDescription     */    public void setExtensionListInDescription(boolean b) {	useExtensionsInDescription = b;	fullDescription = null;    }    /**     * Returns whether the extension list (.jpg, .gif, etc) should     * show up in the human readable description.     *     * Only relevent if a description was provided in the constructor     * or using setDescription();     *     * @see getDescription     * @see setDescription     * @see setExtensionListInDescription     */    public boolean isExtensionListInDescription() {	return useExtensionsInDescription;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美亚洲综合色| 午夜精品视频一区| 国产高清不卡一区| 国产婷婷色一区二区三区| 国产一区二区成人久久免费影院| 欧美精品一区视频| 国产高清不卡一区| 亚洲激情av在线| 欧美日韩中文字幕一区二区| 日韩av不卡一区二区| 精品va天堂亚洲国产| 国产成人精品亚洲午夜麻豆| 亚洲日本欧美天堂| 91精品国产综合久久精品麻豆 | 国产精品网站在线| 99久久免费精品| 午夜精品久久久久久久久久久| 精品国产人成亚洲区| 国产a级毛片一区| 亚洲成人激情社区| 日韩精品一区二区三区视频| 国产高清精品久久久久| 亚洲国产婷婷综合在线精品| 欧美大肚乱孕交hd孕妇| av影院午夜一区| 热久久一区二区| 中文字幕视频一区| 欧美一区二区三区思思人| 国产成人在线网站| 亚洲成人黄色小说| 欧美极品另类videosde| 精品视频一区二区不卡| 国产剧情一区在线| 亚洲五码中文字幕| 国产精品久久免费看| 7777精品伊人久久久大香线蕉完整版| 国产福利一区二区三区| 亚洲h在线观看| 国产精品麻豆一区二区| 欧美电影一区二区三区| caoporn国产精品| 久热成人在线视频| 亚洲免费观看视频| 国产欧美一区二区三区在线老狼 | 午夜免费久久看| 国产精品福利一区| 精品第一国产综合精品aⅴ| 在线看国产日韩| 不卡高清视频专区| 国产精一区二区三区| 日韩电影在线免费观看| 亚洲激情图片qvod| 国产精品福利一区二区三区| 久久看人人爽人人| 91麻豆精品国产自产在线观看一区| 99精品久久免费看蜜臀剧情介绍| 精品亚洲国产成人av制服丝袜 | 精品国产电影一区二区| 欧美日韩国产一级二级| 99天天综合性| 成人免费高清视频在线观看| 极品少妇xxxx偷拍精品少妇| 午夜精品成人在线视频| 一区二区久久久久| 成人免费在线播放视频| 亚洲国产成人在线| 国产女人aaa级久久久级| 久久免费精品国产久精品久久久久| 538在线一区二区精品国产| 欧美三级在线视频| 欧美网站大全在线观看| 在线免费观看日韩欧美| 91免费国产视频网站| 91在线视频免费观看| 国产成a人亚洲| 国产精品一二二区| 国产成人高清视频| 成人激情开心网| 成人av中文字幕| 色综合久久久久综合99| 91久久精品一区二区三区| 一本久道久久综合中文字幕| 色屁屁一区二区| 欧美日韩精品欧美日韩精品一| 欧美日韩免费观看一区二区三区| 在线免费亚洲电影| 欧美男生操女生| 日韩欧美一级二级三级久久久| 日韩三级免费观看| www日韩大片| 欧美激情一二三区| 亚洲三级小视频| 亚洲午夜激情av| 男男成人高潮片免费网站| 精品影院一区二区久久久| 国产精品91一区二区| 成人黄色a**站在线观看| 在线视频你懂得一区| 51精品国自产在线| 久久蜜臀精品av| 亚洲视频电影在线| 日韩精品一二三| 国产一区二区免费在线| 不卡大黄网站免费看| 欧美日韩中文字幕一区二区| 欧美va天堂va视频va在线| 中文字幕av不卡| 亚洲午夜电影在线| 国产精品一区二区在线观看网站| 成人精品免费视频| 欧美日韩免费视频| 国产欧美日韩三级| 亚洲成a天堂v人片| 国产精品一区二区三区网站| 日本国产一区二区| 欧美精品一区二区三区很污很色的| 欧美国产日韩亚洲一区| 亚洲成人一区二区在线观看| 国产电影精品久久禁18| 欧美亚洲国产bt| 国产欧美日韩综合| 日韩影院精彩在线| 97久久精品人人做人人爽| 正在播放一区二区| 中文字幕亚洲电影| 久久99深爱久久99精品| 91福利区一区二区三区| 久久久国产综合精品女国产盗摄| 亚洲欧美国产高清| 国产一区91精品张津瑜| 欧美日韩激情在线| 国产精品三级久久久久三级| 丝袜美腿亚洲一区二区图片| av电影在线不卡| 精品福利在线导航| 日本在线不卡一区| 色94色欧美sute亚洲线路二| 久久久久久久综合日本| 日韩电影免费在线观看网站| 91一区二区三区在线观看| 久久午夜免费电影| 日韩电影在线免费看| 欧美在线影院一区二区| 国产精品久久久久久久久久久免费看 | 91在线观看视频| 中文字幕+乱码+中文字幕一区| 美腿丝袜亚洲一区| 欧美日韩一级片在线观看| 亚洲视频在线一区二区| 国产成人av电影在线| 欧美哺乳videos| 蜜臀精品久久久久久蜜臀| 色94色欧美sute亚洲线路一久| 中文字幕不卡的av| 国产福利不卡视频| 国产区在线观看成人精品| 奇米色一区二区三区四区| 欧美日韩精品专区| 午夜精品久久久久久久久| 欧美在线视频日韩| 亚洲精品成人悠悠色影视| av激情成人网| 亚洲人成网站影音先锋播放| av中文字幕一区| 成人欧美一区二区三区黑人麻豆| 国产成人av影院| 国产欧美一区二区三区沐欲 | 亚洲国产精品激情在线观看| 国产资源在线一区| 精品国产一区二区精华| 国产一级精品在线| 国产喷白浆一区二区三区| 成人激情免费网站| 亚洲色欲色欲www在线观看| 91色在线porny| 一区二区三区四区在线播放| 91久久精品一区二区三| 亚洲成av人影院| 91精品国产综合久久精品性色| 免费成人av在线播放| 精品免费视频一区二区| 国产在线国偷精品免费看| 久久久久国产免费免费| 国产成人精品三级| 中文字幕一区二区三区蜜月 | 免费久久精品视频| 欧美电视剧在线观看完整版| 精品一区二区在线看| 久久久国产精品午夜一区ai换脸| 成人av网站在线| 亚洲欧美视频在线观看视频| 色悠悠亚洲一区二区| 亚洲图片欧美一区| 日韩精品中文字幕一区二区三区| 国产成人亚洲综合a∨婷婷图片| 欧美经典三级视频一区二区三区| 色噜噜狠狠色综合中国| 日韩精品亚洲一区| 中文字幕乱码亚洲精品一区| 日本黄色一区二区|