- java.lang.Object
-
- javax.swing.text.View
-
- javax.swing.text.CompositeView
-
- javax.swing.text.BoxView
-
- javax.swing.text.TableView.TableCell
-
- All Implemented Interfaces:
-
SwingConstants
- Enclosing class:
- TableView
已过时。一个表单元格现在可以是任何View实现。
@Deprecated public class TableView.TableCell extends BoxView
-
-
Field Summary
-
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
-
Fields inherited from class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
-
-
方法摘要
所有方法 接口方法 具体的方法 弃用的方法 Modifier and Type 方法 描述 int
getColumnCount()
已过时。获取此单元格跨越的列数(例如网格宽度)。int
getGridColumn()
已过时。获取网格位置的列int
getGridRow()
已过时。获取网格位置的行int
getRowCount()
已过时。获取单元格跨越的行数(即网格高度)。void
setGridLocation(int row, int col)
已过时。设置网格位置。-
Methods inherited from class javax.swing.text.BoxView
baselineLayout, baselineRequirements, calculateMajorAxisRequirements, calculateMinorAxisRequirements, childAllocation, flipEastAndWestAtEnds, forwardUpdate, getAlignment, getAxis, getChildAllocation, getHeight, getMaximumSpan, getMinimumSpan, getOffset, getPreferredSpan, getResizeWeight, getSpan, getViewAtPoint, getWidth, isAfter, isAllocationValid, isBefore, isLayoutValid, layout, layoutChanged, layoutMajorAxis, layoutMinorAxis, modelToView, paint, paintChild, preferenceChanged, replace, setAxis, setSize, viewToModel
-
Methods inherited from class javax.swing.text.CompositeView
getBottomInset, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewAtPosition, getViewCount, getViewIndex, getViewIndexAtPosition, loadChildren, modelToView, setInsets, setParagraphInsets, setParent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class javax.swing.text.View
append, breakView, changedUpdate, createFragment, forwardUpdateToView, getAttributes, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, insertUpdate, isVisible, modelToView, remove, removeAll, removeUpdate, updateChildren, updateLayout, viewToModel
-
-
-
-
构造方法详细信息
-
TableCell
public TableCell(Element elem)
已过时。为给定元素构造一个TableCell。- 参数
-
elem
- 该视图负责的元素 - 从以下版本开始:
- 1.4
-
-
方法详细信息
-
getColumnCount
public int getColumnCount()
已过时。获取此单元格跨越的列数(例如网格宽度)。- 结果
- 列数
-
getRowCount
public int getRowCount()
已过时。获取单元格跨越的行数(即网格高度)。- 结果
- 行数
-
setGridLocation
public void setGridLocation(int row, int col)
已过时。设置网格位置。- 参数
-
row
- 行> = 0 -
col
- 列> = 0
-
getGridRow
public int getGridRow()
已过时。获取网格位置的行
-
getGridColumn
public int getGridColumn()
已过时。获取网格位置的列
-
-