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

📄 kabstracttablemodel.java~6~

📁 封装了SQL、Socket、WAP、MIME等功能的通用组件
💻 JAVA~6~
字号:
package org.lazybug.skit.table;

/**
 * <p>Title: Geniux</p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: </p>
 *
 * @author David Lau
 * @version 1.0
 */
public abstract class KAbstractTableModel implements KTableModel
{
    /**
     * Returns the number of columns in the model.
     *
     * @return the number of columns in the model
     * @todo Implement this org.lazybug.skit.table.KTableModel method
     */
    public int getColumnCount()
    {
        return 0;
    }

    /**
     * Returns the name of the column at <code>columnIndex</code>.
     *
     * @param columnIndex the index of the column
     * @return the name of the column
     * @todo Implement this org.lazybug.skit.table.KTableModel method
     */
    public String getColumnName(int columnIndex)
    {
        return "第"+columnIndex+"列";
    }

    /**
     * Returns the number of rows in the model.
     *
     * @return the number of rows in the model
     * @todo Implement this org.lazybug.skit.table.KTableModel method
     */
    public int getRowCount()
    {
        return 0;
    }

    /**
     * Returns the value for the cell at <code>columnIndex</code> and
     * <code>rowIndex</code>.
     *
     * @param rowIndex the row whose value is to be queried
     * @param columnIndex the column whose value is to be queried
     * @return the value Object at the specified cell
     * @todo Implement this org.lazybug.skit.table.KTableModel method
     */
    public Object getValueAt(int rowIndex, int columnIndex)
    {
        return null;
    }

    /**
     * Returns true if the cell at <code>rowIndex</code> and
     * <code>columnIndex</code> is editable.
     *
     * @param rowIndex the row whose value to be queried
     * @param columnIndex the column whose value to be queried
     * @return true if the cell is editable
     * @todo Implement this org.lazybug.skit.table.KTableModel method
     */
    public boolean isCellEditable(int rowIndex, int columnIndex)
    {
        return false;
    }

    /**
     * Sets the value in the cell at <code>columnIndex</code> and
     * <code>rowIndex</code> to <code>aValue</code>.
     *
     * @param aValue the new value
     * @param rowIndex the row whose value is to be changed
     * @param columnIndex the column whose value is to be changed
     * @todo Implement this org.lazybug.skit.table.KTableModel method
     */
    public void setValueAt(Object aValue, int rowIndex, int columnIndex)
    {
    }
}

⌨️ 快捷键说明

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