当前页面:
在线文档首页 >
JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档
Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Class TableView.TableCell - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档
javax.swing.text
Class TableView.TableCell
java.lang.Object
|
+--javax.swing.text.View
|
+--javax.swing.text.CompositeView
|
+--javax.swing.text.BoxView
|
+--javax.swing.text.TableView.TableCell
- Enclosing class:
- TableView
Deprecated. A table cell can now be any View implementation.
- public class TableView.TableCell
- extends BoxView
- implements javax.swing.text.TableView.GridCell
Method Summary |
int |
getColumnCount()
Deprecated. Gets the number of columns this cell spans (e.g. |
int |
getGridColumn()
Deprecated. Gets the column of the grid location |
int |
getGridRow()
Deprecated. Gets the row of the grid location |
int |
getRowCount()
Deprecated. Gets the number of rows this cell spans (that is, the
grid height). |
void |
setGridLocation(int row,
int col)
Deprecated. Sets the grid location. |
Methods inherited from class javax.swing.text.BoxView |
baselineLayout,
baselineRequirements,
calculateMajorAxisRequirements,
calculateMinorAxisRequirements,
childAllocation,
flipEastAndWestAtEnds,
getAlignment,
getChildAllocation,
getHeight,
getMaximumSpan,
getMinimumSpan,
getOffset,
getPreferredSpan,
getResizeWeight,
getSpan,
getViewAtPoint,
getWidth,
isAfter,
isAllocationValid,
isBefore,
layout,
layoutMajorAxis,
layoutMinorAxis,
modelToView,
paint,
paintChild,
preferenceChanged,
replace,
setSize,
viewToModel |
Methods inherited from class javax.swing.text.CompositeView |
append,
changedUpdate,
getBottomInset,
getInsideAllocation,
getLeftInset,
getNextEastWestVisualPositionFrom,
getNextNorthSouthVisualPositionFrom,
getNextVisualPositionFrom,
getRightInset,
getTopInset,
getView,
getViewAtPosition,
getViewCount,
getViewIndexAtPosition,
insert,
insertUpdate,
loadChildren,
modelToView,
removeAll,
removeUpdate,
setInsets,
setParagraphInsets,
setParent |
Methods inherited from class javax.swing.text.View |
breakView,
createFragment,
getAttributes,
getBreakWeight,
getContainer,
getDocument,
getElement,
getEndOffset,
getParent,
getStartOffset,
getViewFactory,
isVisible,
modelToView,
viewToModel |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TableView.TableCell
public TableView.TableCell(Element elem)
- Deprecated.
- Constructs a TableCell for the given element.
- Parameters:
elem
- the element that this view is responsible for
getColumnCount
public int getColumnCount()
- Deprecated.
- Gets the number of columns this cell spans (e.g. the
grid width).
- Specified by:
- getColumnCount in interface javax.swing.text.TableView.GridCell
- Returns:
- the number of columns
getRowCount
public int getRowCount()
- Deprecated.
- Gets the number of rows this cell spans (that is, the
grid height).
- Specified by:
- getRowCount in interface javax.swing.text.TableView.GridCell
- Returns:
- the number of rows
setGridLocation
public void setGridLocation(int row,
int col)
- Deprecated.
- Sets the grid location.
- Specified by:
- setGridLocation in interface javax.swing.text.TableView.GridCell
- Parameters:
row
- the row >= 0col
- the column >= 0
getGridRow
public int getGridRow()
- Deprecated.
- Gets the row of the grid location
- Specified by:
- getGridRow in interface javax.swing.text.TableView.GridCell
getGridColumn
public int getGridColumn()
- Deprecated.
- Gets the column of the grid location
- Specified by:
- getGridColumn in interface javax.swing.text.TableView.GridCell
Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.