- 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
Deprecated.A table cell can now be any View implementation.
@Deprecated public class TableView.TableCell extends BoxView
-
-
Field Summary
-
Fields inherited from class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
-
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
-
-
Constructor Summary
Constructors Constructor and Description TableView.TableCell(Element elem)
Deprecated.Constructs a TableCell for the given element.
-
Method Summary
Methods Modifier and Type Method and Description int
getColumnCount()
Deprecated.Gets the number of columns this cell spans (e.g.int
getGridColumn()
Deprecated.Gets the column of the grid locationint
getGridRow()
Deprecated.Gets the row of the grid locationint
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, 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 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
-
-
-
-
Constructor Detail
-
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- Since:
- 1.4
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
Deprecated.Gets the number of columns this cell spans (e.g. the grid width).- Returns:
- the number of columns
-
getRowCount
public int getRowCount()
Deprecated.Gets the number of rows this cell spans (that is, the grid height).- Returns:
- the number of rows
-
setGridLocation
public void setGridLocation(int row, int col)
Deprecated.Sets the grid location.- Parameters:
row
- the row >= 0col
- the column >= 0
-
getGridRow
public int getGridRow()
Deprecated.Gets the row of the grid location
-
getGridColumn
public int getGridColumn()
Deprecated.Gets the column of the grid location
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/swing/text/TableView.TableCell.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.