JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class JCCellPosition

java.lang.Object
  |
  +--com.klg.jclass.table.JCCellPosition
All Implemented Interfaces:
Serializable

public class JCCellPosition
extends Object
implements Serializable

JCCellPosition is used to set the attributes or values of a cell, label or range.

The following special row/column values specify other parts of the table:

         ALL         all cells and labels in a row or column
         LABEL       a row or column label
         ALLCELLS    all cells (but not labels) in a row or column
 
If both row and column are set to ALL, the entire table is specified (all rows, columns, and labels). The following are some examples of usage:
          1 2         cell (1, 2)
          ALL 1       all cells and the label of column 1
          2 ALL       all cells and the label of row 2
          ALL LABEL   all row labels
 

See Also:
Serialized Form

Field Summary
 int column
          Column number, starting at 0.
 int row
          Row number, starting at 0.
 
Constructor Summary
JCCellPosition()
          Creates a new JCCellPosition instance with row and column set to JCTableEnum.NOVALUE
JCCellPosition(int r, int c)
          Creates a new JCCellPosition instance for the given row/column.
 
Method Summary
 boolean equals(int r, int c)
          Returns true if a row/column pair matches this JCCellPosition.
 boolean equals(com.klg.jclass.table.JCCellPosition p)
          Returns true if another JCCellPosition equals this one.
 void reshape(int r, int c)
          Changes the row/column values for a JCCellPosition object.
 String toString()
          Return a string representation of this JCCellPosition object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

row

public int row
Row number, starting at 0.


column

public int column
Column number, starting at 0.

Constructor Detail

JCCellPosition

public JCCellPosition()
Creates a new JCCellPosition instance with row and column set to JCTableEnum.NOVALUE


JCCellPosition

public JCCellPosition(int r,
                      int c)
Creates a new JCCellPosition instance for the given row/column.

Parameters:
r - The row index
c - The column index
Method Detail

equals

public boolean equals(com.klg.jclass.table.JCCellPosition p)
Returns true if another JCCellPosition equals this one.

Parameters:
p - The JCCellPosition object to compare against.
Returns:
true if another JCCellPosition equals this one

equals

public boolean equals(int r,
                      int c)
Returns true if a row/column pair matches this JCCellPosition.

Parameters:
r - The row index
c - The column index
Returns:
true if a row/column pair matches this JCCellPosition

reshape

public void reshape(int r,
                    int c)
Changes the row/column values for a JCCellPosition object.

Parameters:
r - The row index
c - The column index

toString

public String toString()
Return a string representation of this JCCellPosition object.

Overrides:
toString in class Object
Returns:
A string representation of this object.

Copyright © 2004 Quest Software Inc..
All rights reserved.