All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface tea.set.Model

public interface Model
extends ModelBase
Model and ModelBase combined to form the interface for a two dimensional matrix. It includes methods for manipulating rows and columns, in addition to individual cells.

See Also:
ModelBase, Grid, TextGrid

Method Index

 o fetchRow(int)
Fetch the actual content of a row.
 o getCharSize(int, int)
Get the size of a cell.
 o getObject(int, int)
Return the value in the cell.
 o setCharSize(int, int, Dimension)
Set the size of a cell.
 o setObject(int, int, Object)
Set the content of a cell.

Methods

 o getObject
  public abstract Object getObject(int r,
                                   int c)
Return the value in the cell.

Parameters:
r - row number.
c - column number.
Returns:
cell content.
 o setObject
  public abstract void setObject(int r,
                                 int c,
                                 Object v)
Set the content of a cell.

Parameters:
r - row number.
c - column number.
v - cell content.
 o getCharSize
  public abstract Dimension getCharSize(int r,
                                        int c)
Get the size of a cell.

Parameters:
r - row number.
c - column number.
Returns:
cell size in characters.
 o setCharSize
  public abstract void setCharSize(int r,
                                   int c,
                                   Dimension sz)
Set the size of a cell.

Parameters:
r - row number.
c - column number.
sz - size in characters.
 o fetchRow
  public abstract void fetchRow(int r)
Fetch the actual content of a row. This is for implementing delayed loading. The row number passed to this method may not be in the 0 - (getRowCount()-1) range.

Parameters:
r - row number.

All Packages  Class Hierarchy  This Package  Previous  Next  Index