arlut.csd.JTable
Class tableRow

java.lang.Object
  |
  +--arlut.csd.JTable.tableRow

class tableRow
extends java.lang.Object

This class holds all the information for a particular row in the table, including current position of the row in the table, height of row in elemental lines, and a vector of the current cells in this row.


Field Summary
(package private)  int bottomEdge
           
(package private)  java.util.Vector cells
           
(package private)  int rowSpan
           
(package private)  arlut.csd.JTable.baseTable rt
           
(package private)  int topEdge
           
 
Constructor Summary
(package private) tableRow(arlut.csd.JTable.baseTable rt, int size)
          size constructor
(package private) tableRow(arlut.csd.JTable.baseTable rt, arlut.csd.JTable.tableCell[] cells)
          tableCell array constructor
 
Method Summary
(package private)  arlut.csd.JTable.tableCell elementAt(int index)
          Cell accessor.
(package private)  int getBottomEdge()
          This method returns the current position of the bottom edge of this row within the table.
(package private)  int getHeight()
           
(package private)  int getRowSpan()
          This method returns the number of lines that this row requires when displayed.
(package private)  int getTopEdge()
          This method returns the current position of the top edge of this row within the table.
(package private)  void removeElementAt(int index)
          This method removes a cell from this row.
(package private)  void setBottomEdge(int y)
          This method records the current position of the bottom edge of this row within the table.
(package private)  void setElementAt(arlut.csd.JTable.tableCell cell, int index)
          This method is used to replace an existing cell in this row with a new cell.
(package private)  void setTopEdge(int y)
          This method is used to record the current position of the top edge of this row within the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rt

arlut.csd.JTable.baseTable rt

cells

java.util.Vector cells

rowSpan

int rowSpan

topEdge

int topEdge

bottomEdge

int bottomEdge
Constructor Detail

tableRow

tableRow(arlut.csd.JTable.baseTable rt,
         arlut.csd.JTable.tableCell[] cells)
tableCell array constructor

Parameters:
rt - The baseTable this row belongs to
cells - The initial contents of this row

tableRow

tableRow(arlut.csd.JTable.baseTable rt,
         int size)
size constructor

Parameters:
rt - The baseTable this row belongs to
size - The number of cells to create in this row
Method Detail

removeElementAt

void removeElementAt(int index)
This method removes a cell from this row. Used by baseTable when a column in the table is being deleted.


elementAt

arlut.csd.JTable.tableCell elementAt(int index)
Cell accessor.


setElementAt

void setElementAt(arlut.csd.JTable.tableCell cell,
                  int index)
This method is used to replace an existing cell in this row with a new cell.


getRowSpan

int getRowSpan()
This method returns the number of lines that this row requires when displayed.


setTopEdge

void setTopEdge(int y)
This method is used to record the current position of the top edge of this row within the table. This position is measured with respect to the full height of the table, irrespective of the current scrollbar position.


getTopEdge

int getTopEdge()
This method returns the current position of the top edge of this row within the table.


setBottomEdge

void setBottomEdge(int y)
This method records the current position of the bottom edge of this row within the table.


getBottomEdge

int getBottomEdge()
This method returns the current position of the bottom edge of this row within the table.


getHeight

int getHeight()