Module java.desktop
Package javax.swing.text

Class TableView.TableCell

所有实现的接口:
SwingConstants
封装类:
TableView

@Deprecated public class TableView.TableCell extends BoxView
Deprecated.
A table cell can now be any View implementation.
  • Constructor Details

    • TableCell

      public TableCell(Element elem)
      Deprecated.
      构造给定元素的TableCell。
      参数:
      elem - 负责此视图的元素
      自1.4版本起:
      1.4
  • Method Details

    • getColumnCount

      public int getColumnCount()
      Deprecated.
      获取此单元格跨越的列数(例如,网格宽度)。
      返回:
      列数
    • getRowCount

      public int getRowCount()
      Deprecated.
      获取此单元格跨越的行数(即,网格高度)。
      返回:
      行数
    • setGridLocation

      public void setGridLocation(int row, int col)
      Deprecated.
      设置网格位置。
      参数:
      row - 行 >= 0
      col - 列 >= 0
    • getGridRow

      public int getGridRow()
      Deprecated.
      获取网格位置的行
    • getGridColumn

      public int getGridColumn()
      Deprecated.
      获取网格位置的列