public class

TableView.TableCell

extends BoxView
java.lang.Object
   ↳ javax.swing.text.View
     ↳ javax.swing.text.CompositeView
       ↳ javax.swing.text.BoxView
         ↳ javax.swing.text.TableView.TableCell

This class is deprecated.
A table cell can now be any View implementation.

Summary

[Expand]
Inherited Constants
From class javax.swing.text.View
From interface javax.swing.SwingConstants
Public Constructors
TableView.TableCell(Element elem)
Constructs a TableCell for the given element.
Public Methods
int getColumnCount()
Gets the number of columns this cell spans (e.g.
int getGridColumn()
Gets the column of the grid location
int getGridRow()
Gets the row of the grid location
int getRowCount()
Gets the number of rows this cell spans (that is, the grid height).
void setGridLocation(int row, int col)
Sets the grid location.
[Expand]
Inherited Methods
From class javax.swing.text.BoxView
From class javax.swing.text.CompositeView
From class javax.swing.text.View
From class java.lang.Object

Public Constructors

public TableView.TableCell (Element elem)

Constructs a TableCell for the given element.

Parameters
elem the element that this view is responsible for

Public Methods

public int getColumnCount ()

Gets the number of columns this cell spans (e.g. the grid width).

Returns
  • the number of columns

public int getGridColumn ()

Gets the column of the grid location

public int getGridRow ()

Gets the row of the grid location

public int getRowCount ()

Gets the number of rows this cell spans (that is, the grid height).

Returns
  • the number of rows

public void setGridLocation (int row, int col)

Sets the grid location.

Parameters
row the row >= 0
col the column >= 0