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

📄 nullcomparatordescriptor.java

📁 PIY(Program It Yourself)是一个基于Java的应用程序开发环境
💻 JAVA
字号:
package piy;

import java.io.File;
import javax.swing.ImageIcon;

/**
* Describes the Null comparator action.  It has restricted instantiation via the 
* Singleton pattern for no other reason than it makes no sense to have
* more than one of these.
* @author David Vivash
* @version 1.0, 30/04/01
*/
public class NullComparatorDescriptor extends ActionDescriptor
{
	private static NullComparatorDescriptor instance = null;

	private NullComparatorDescriptor() { }

	public Class getDescribedClass() { return NullComparator.class; }

	public String getName() { return "Null"; }

	public String getDescription() { return "Does nothing"; }

	public static NullComparatorDescriptor getInstance() {
		return (instance == null) ? instance = new NullComparatorDescriptor() : instance;
	}

	/**
	* Returns the (40x40) icon that should be displayed in the actionlist viewer window.
	* @return the (large) image of the null action
	*/
	public ImageIcon getBigIcon() {
		String sep = File.separator;
		return new ImageIcon("piy" + sep + "images" + sep + "nullaction.gif");
	}

}

⌨️ 快捷键说明

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