scrollable.java

来自「这是一个j2me开发的手机图书馆程序」· Java 代码 · 共 45 行

JAVA
45
字号
package ui.table;

import javax.microedition.lcdui.Graphics;

/**
 * <P>The <CODE>Scrollable</CODE> interface defines the contract that is 
 * fulfilled by a component that can be larger than the physical display.
 *
 * @see ScrollPane
 * @author Darryl L. Pierce
 * @version $Revision: 2.0 $
 */
public interface Scrollable {
    /**
     * <P>Returns the full width of the component.
     */
    public int getFullWidth();

    /**
     * <P>Returns the full height of the component.
     */
    public int getFullHeight();

    /**
     * <P>The amount to scroll this component vertically.
     */
    public int getVerticalScrollAmount();

    /**
     * <P>The amount to scroll this component horizontally.
     */
    public int getHorizontalScrollAmount();

    /**
     * <P>Called when the component needs to repaint itself.
     */
    public void render(Graphics g);
    public void setCurrentRow(int row);
    public int getCurrentRow();
    public int getTotalRow();
    public int getTotalDisplayRow();
    public int getCurrentRowY();
    public TableModel getTableModel();
}

⌨️ 快捷键说明

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