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

📄 customcolumn.java

📁 It is all about project scheduling. GanttProject is a tool for creating a project schedule by means
💻 JAVA
字号:
package net.sourceforge.ganttproject.task;/** * This class describes a single custom column. * @author bbaranne(Benoit Baranne) Mar 2, 2005 *  *//** * @author bbaranne * Mar 8, 2005 *//** * @author bbaranne Mar 8, 2005 */public class CustomColumn {    private String id = null;    /**     * The column name.     */    private String name = null;    /**     * The enclosing value class.     */    private Class type = null;    /**     * Teh default value.     */    private Object defaultValue = null;    /**     * Creates an instance of CustomColmn.     */    public CustomColumn() {    }    /**     * Creates an instance of CustomColmn with a name, a type (class) and a     * default value.     *      * @param colName     *            The column name.     * @param colType     *            The colmun type.     * @param colDefaultValue     *            The default value.     */    public CustomColumn(String colName, Class colType, Object colDefaultValue) {        name = colName;        type = colType;        defaultValue = colDefaultValue;    }    /**     * Creates an instance of CustomColmn. The type is String and the default     * value is en empty String.     *      * @param colName     *            The column name.     */    public CustomColumn(String colName) {        name = colName;        type = String.class;        defaultValue = "";    }    public String getId() {        return id;    }    public void setId(String newId) {        id = newId;    }    /**     * Returns the default value.     *      * @return The defautl value.     */    public Object getDefaultValue() {        return defaultValue;    }    /**     * Sets the default value.     *      * @param defaultValue     *            The default value to be set.     */    public void setDefaultValue(Object defaultValue) {        this.defaultValue = defaultValue;    }    /**     * Returns the column name.     *      * @return The column name.     */    public String getName() {        return name;    }    /**     * Sets the column name.     *      * @param name     *            The column name to be set.     */    public void setName(String name) {        this.name = name;    }    /**     * Returns the column type.     *      * @return The column type.     */    public Class getType() {        return type;    }    /**     * Sets the column type.     *      * @param type     *            The column type to be set.     */    public void setType(Class type) {        this.type = type;    }    /**     * Returns a string representation of the CustomColumn.     *      * @return A string representation of the CustomColumn.     */    public String toString() {        return this.name + " [" + this.type + "] <" + this.defaultValue + ">";    }}

⌨️ 快捷键说明

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