tablemodel.java

来自「一个j2me上的电子表格的实现代码」· Java 代码 · 共 44 行

JAVA
44
字号
/*
 * TableModel.java
 *
 * Created on 2006年7月2日, 下午3:53
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package cn.edu.uestc.table;

/**
 *
 * @author pandaxiaoxi
 */
public interface TableModel {
    /**
     * <P>Returns the number of columns the model contains.
     */
    public int getColumnCount();

    /**
     * <P>Returns the number of rows the model contains.
     */
    public int getRowCount();

    /**
     * <P>Returns the text for the column header.
     */
    public String getColumnHeaderText(int col);

    /**
     * <P>Returns whether column headers are displayed.
     */
    public boolean hasColumnHeaders();

    /**
     * <P>Returns the value for the specified cell.
     */
    public String getValueAt(int row,int col);
    
}

⌨️ 快捷键说明

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