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

📄 descriptorpropertydescription.java

📁 eclipseme的最新版本的source,欢迎j2me程序员使用
💻 JAVA
字号:
/**
 * Copyright (c) 2003-2005 Craig Setera
 * All Rights Reserved.
 * Licensed under the Eclipse Public License - v 1.0
 * For more information see http://www.eclipse.org/legal/epl-v10.html
 */
package eclipseme.core.model;

/**
 * This class represents an application descriptor property description.
 * <p>
 * <b>Note:</b> This class/interface is part of an interim API that is still 
 * under development and expected to change before reaching stability. It is 
 * being made available at this early stage to solicit feedback 
 * from pioneering adopters on the understanding that any code that uses 
 * this API will almost certainly be broken as the API evolves.
 * </p>
 * Copyright (c) 2003-2005 Craig Setera<br>
 * All Rights Reserved.<br>
 * Licensed under the Eclipse Public License - v 1.0<p/>
 * <br>
 * $Revision: 1.4 $
 * <br>
 * $Date: 2005/07/07 02:37:17 $
 * <br>
 * @author Craig Setera
 */

public class DescriptorPropertyDescription {
	/** String property type */
	public static final int DATATYPE_STRING = 1;
	
	/** URL property type */
	public static final int DATATYPE_URL = 2;
	
	/** Integer property type */
	public static final int DATATYPE_INT = 3;
	
	/** List property type */
	public static final int DATATYPE_LIST = 4;
	
	// The name of the underlying property
	private String propertyName;
	
	// The displayable name for this property
	private String displayName;
	
	// The data type for this property
	private int dataType;
	
	/**
	 * Constructor 
	 */
	public DescriptorPropertyDescription(
		String propertyName, 
		String displayName,
		int dataType) 
	{
		super();
		this.propertyName = propertyName;
		this.displayName = displayName;
		this.dataType = dataType;
	}

	/**
	 * @return the data type
	 */
	public int getDataType() {
		return dataType;
	}

	/**
	 * @return the display name
	 */
	public String getDisplayName() {
		return displayName;
	}

	/**
	 * @return the property name
	 */
	public String getPropertyName() {
		return propertyName;
	}

	/**
	 * @param i the data type
	 */
	public void setDataType(int i) {
		dataType = i;
	}

	/**
	 * @param string the display name
	 */
	public void setDisplayName(String string) {
		displayName = string;
	}

	/**
	 * @param string the property name
	 */
	public void setPropertyName(String string) {
		propertyName = string;
	}
}

⌨️ 快捷键说明

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