APIdia Launch Partner
Top Description Inners Fields Constructors Methods
javax.swing.text

public abstract Class TableView

extends BoxView
Class Inheritance
Imports
java.awt.*, java.util.BitSet, .Vector, javax.swing.SizeRequirements, javax.swing.event.DocumentEvent, javax.swing.text.html.HTML

Implements View interface for a table, that is composed of an element structure where the child elements of the element this view is responsible for represent rows and the child elements of the row elements are cells. The cell elements can have an arbitrary element structure under them, which will be built with the ViewFactory returned by the getViewFactory method.


   TABLE
     ROW
       CELL
       CELL
     ROW
       CELL
       CELL

This is implemented as a hierarchy of boxes, the table itself is a vertical box, the rows are horizontal boxes, and the cells are vertical boxes. The cells are allowed to span multiple columns and rows. By default, the table can be thought of as being formed over a grid (i.e. somewhat like one would find in gridbag layout), where table cells can request to span more than one grid cell. The default horizontal span of table cells will be based upon this grid, but can be changed by reimplementing the requested span of the cell (i.e. table cells can have independent spans if desired).

Author
Timothy Prinzing
See Also
View

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static interface
TableView.GridCell

THIS IS NO LONGER USED, AND WILL BE REMOVED IN THE NEXT RELEASE.

public class
TableView.TableCell

Deprecated A table cell can now be any View implementation.
public class
TableView.TableRow

View of a row in a row-centric table.

Field Summary

Modifier and TypeField and Description
pack-priv int[]
pack-priv SizeRequirements[]
pack-priv int[]
private static final BitSet
pack-priv boolean
pack-priv Vector<TableView.TableRow>
pack-priv SizeRequirements
Inherited from javax.swing.text.BoxView:
majorAllocValidmajorAxismajorOffsetsmajorRequestmajorReqValidmajorSpanmajorSpansminorAllocValidminorOffsetsminorRequestminorReqValidminorSpanminorSpanstempRect

Constructor Summary

AccessConstructor and Description
public
TableView(Element
the element that this view is responsible for
elem
)

Constructs a TableView for the given element.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
addFill(int row, int col)

Mark a grid location as filled in for a cells overflow.

pack-priv void
calculateColumnRequirements(int axis)

Calculate the requirements for each column.

protected SizeRequirements
calculateMinorAxisRequirements(int axis, SizeRequirements r)

Overrides javax.swing.text.BoxView.calculateMinorAxisRequirements.

Calculate the requirements for the minor axis.

pack-priv void
checkMultiColumnCell(int axis, int col, int ncols, View v)

check the requirements of a table cell that spans multiple columns.

pack-priv void
checkSingleColumnCell(int axis, int col, View v)

check the requirements of a table cell that spans a single column.

protected TableView.TableCell
createTableCell(Element
an element
elem
)
Deprecated Table cells can now be any arbitrary View implementation and should be produced by the ViewFactory rather than the table.

Returns: the cell

protected TableView.TableRow

Returns:

the row
createTableRow
(Element
an element
elem
)

Creates a new table row.

protected void
forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory f)

Overrides javax.swing.text.BoxView.forwardUpdate.

Forwards the given DocumentEvent to the child views that need to be notified of the change to the model.

pack-priv int
getColumnCount()

The number of columns in the table.

pack-priv int
getColumnsOccupied(View v)

Determines the number of columns occupied by the table cell represented by given element.

pack-priv int
getColumnSpan(int col)

Fetches the span (width) of the given column.

pack-priv TableView.TableRow
getRow(int row)

pack-priv int
getRowCount()

The number of rows in the table.

pack-priv int
getRowsOccupied(View v)

Determines the number of rows occupied by the table cell represented by given element.

pack-priv int
getRowSpan(int row)

Fetches the span (height) of the given row.

protected View

Returns:

the view representing the given position, or null if there isn't one
getViewAtPosition
(int
the search position >= 0
pos
,
Rectangle
the allocation to the table on entry, and the allocation of the view containing the position on exit
a
)

Overrides javax.swing.text.CompositeView.getViewAtPosition.

Fetches the child view that represents the given position in the model.

pack-priv void
protected void
layoutColumns(int
the given span for total of all the table columns
targetSpan
,
int[]
the return value of the offset from the origin for each column
offsets
,
int[]
the return value of how much to allocated to each column
spans
,
SizeRequirements[]
the requirements desired for each column. This is the column maximum of the cells minimum, preferred, and maximum requested span
reqs
)

Lays out the columns to fit within the given target span.

protected void
layoutMinorAxis(int
the total span given to the view, which would be used to layout the children.
targetSpan
,
int
the axis being laid out.
axis
,
int[]
the offsets from the origin of the view for each of the child views. This is a return value and is filled in by the implementation of this method.
offsets
,
int[]
the span of each child view. This is a return value and is filled in by the implementation of this method.
spans
)

Overrides javax.swing.text.BoxView.layoutMinorAxis.

Perform layout for the minor axis of the box (i.e. the axis orthogonal to the axis that it represents).

public void
replace(int offset, int length, View[] views)

Overrides javax.swing.text.BoxView.replace.

Change the child views.

pack-priv void
updateGrid()

Fill in the grid locations that are placeholders for multi-column, multi-row, and missing grid locations.

Inherited from javax.swing.text.BoxView:
baselineLayoutbaselineRequirementscalculateMajorAxisRequirementscheckRequestschildAllocationflipEastAndWestAtEndsgetAlignmentgetAxisgetChildAllocationgetHeightgetMaximumSpangetMinimumSpangetOffsetgetPreferredSpangetResizeWeightgetSpangetSpanOnAxisgetViewAtPointgetWidthisAfterisAllocationValidisBeforeisLayoutValidlayoutlayoutChangedlayoutMajorAxismodelToViewpaintpaintChildpreferenceChangedsetAxissetSizesetSpanOnAxisupdateChildSizesupdateLayoutArrayviewToModel

Field Detail

columnOffsetsback to summary
pack-priv int[] columnOffsets
columnRequirementsback to summary
pack-priv SizeRequirements[] columnRequirements
columnSpansback to summary
pack-priv int[] columnSpans
EMPTYback to summary
private static final BitSet EMPTY
gridValidback to summary
pack-priv boolean gridValid
rowsback to summary
pack-priv Vector<TableView.TableRow> rows
totalColumnRequirementsback to summary
pack-priv SizeRequirements totalColumnRequirements

Constructor Detail

TableViewback to summary
public TableView(Element elem)

Constructs a TableView for the given element.

Parameters
elem:Element

the element that this view is responsible for

Method Detail

addFillback to summary
pack-priv void addFill(int row, int col)

Mark a grid location as filled in for a cells overflow.

calculateColumnRequirementsback to summary
pack-priv void calculateColumnRequirements(int axis)

Calculate the requirements for each column. The calculation is done as two passes over the table. The table cells that occupy a single column are scanned first to determine the maximum of minimum, preferred, and maximum spans along the give axis. Table cells that span multiple columns are excluded from the first pass. A second pass is made to determine if the cells that span multiple columns are satisfied. If the column requirements are not satisfied, the needs of the multi-column cell is mixed into the existing column requirements. The calculation of the multi-column distribution is based upon the proportions of the existing column requirements and taking into consideration any constraining maximums.

calculateMinorAxisRequirementsback to summary
protected SizeRequirements calculateMinorAxisRequirements(int axis, SizeRequirements r)

Overrides javax.swing.text.BoxView.calculateMinorAxisRequirements.

Calculate the requirements for the minor axis. This is called by the superclass whenever the requirements need to be updated (i.e. a preferenceChanged was messaged through this view).

This is implemented to calculate the requirements as the sum of the requirements of the columns.

checkMultiColumnCellback to summary
pack-priv void checkMultiColumnCell(int axis, int col, int ncols, View v)

check the requirements of a table cell that spans multiple columns.

checkSingleColumnCellback to summary
pack-priv void checkSingleColumnCell(int axis, int col, View v)

check the requirements of a table cell that spans a single column.

createTableCellback to summary
protected TableView.TableCell createTableCell(Element elem)

Deprecated

Table cells can now be any arbitrary View implementation and should be produced by the ViewFactory rather than the table.

Parameters
elem:Element

an element

Returns:TableView.TableCell

the cell

Annotations
@Deprecated
createTableRowback to summary
protected TableView.TableRow createTableRow(Element elem)

Creates a new table row.

Parameters
elem:Element

an element

Returns:TableView.TableRow

the row

forwardUpdateback to summary
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory f)

Overrides javax.swing.text.BoxView.forwardUpdate.

Doc from javax.swing.text.BoxView.forwardUpdate.

Forwards the given DocumentEvent to the child views that need to be notified of the change to the model. If a child changed its requirements and the allocation was valid prior to forwarding the portion of the box from the starting child to the end of the box will be repainted.

getColumnCountback to summary
pack-priv int getColumnCount()

The number of columns in the table.

getColumnsOccupiedback to summary
pack-priv int getColumnsOccupied(View v)

Determines the number of columns occupied by the table cell represented by given element.

getColumnSpanback to summary
pack-priv int getColumnSpan(int col)

Fetches the span (width) of the given column. This is used by the nested cells to query the sizes of grid locations outside of themselves.

getRowback to summary
pack-priv TableView.TableRow getRow(int row)
getRowCountback to summary
pack-priv int getRowCount()

The number of rows in the table.

getRowsOccupiedback to summary
pack-priv int getRowsOccupied(View v)

Determines the number of rows occupied by the table cell represented by given element.

getRowSpanback to summary
pack-priv int getRowSpan(int row)

Fetches the span (height) of the given row.

getViewAtPositionback to summary
protected View getViewAtPosition(int pos, Rectangle a)

Overrides javax.swing.text.CompositeView.getViewAtPosition.

Fetches the child view that represents the given position in the model. This is implemented to walk through the children looking for a range that contains the given position. In this view the children do not necessarily have a one to one mapping with the child elements.

Parameters
pos:int

the search position >= 0

a:Rectangle

the allocation to the table on entry, and the allocation of the view containing the position on exit

Returns:View

the view representing the given position, or null if there isn't one

invalidateGridback to summary
pack-priv void invalidateGrid()
layoutColumnsback to summary
protected void layoutColumns(int targetSpan, int[] offsets, int[] spans, SizeRequirements[] reqs)

Lays out the columns to fit within the given target span. Returns the results through offsets and spans.

Parameters
targetSpan:int

the given span for total of all the table columns

offsets:int[]

the return value of the offset from the origin for each column

spans:int[]

the return value of how much to allocated to each column

reqs:SizeRequirements[]

the requirements desired for each column. This is the column maximum of the cells minimum, preferred, and maximum requested span

layoutMinorAxisback to summary
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans)

Overrides javax.swing.text.BoxView.layoutMinorAxis.

Perform layout for the minor axis of the box (i.e. the axis orthogonal to the axis that it represents). The results of the layout should be placed in the given arrays which represent the allocations to the children along the minor axis. This is called by the superclass whenever the layout needs to be updated along the minor axis.

This is implemented to call the layoutColumns method, and then forward to the superclass to actually carry out the layout of the tables rows.

Parameters
targetSpan:int

the total span given to the view, which would be used to layout the children.

axis:int

the axis being laid out.

offsets:int[]

the offsets from the origin of the view for each of the child views. This is a return value and is filled in by the implementation of this method.

spans:int[]

the span of each child view. This is a return value and is filled in by the implementation of this method.

replaceback to summary
public void replace(int offset, int length, View[] views)

Overrides javax.swing.text.BoxView.replace.

Change the child views. This is implemented to provide the superclass behavior and invalidate the grid so that rows and columns will be recalculated.

updateGridback to summary
pack-priv void updateGrid()

Fill in the grid locations that are placeholders for multi-column, multi-row, and missing grid locations.

javax.swing.text back to summary

pack-priv Interface TableView.GridCell

Known Direct Implementers
javax.swing.text.TableView.TableCell

THIS IS NO LONGER USED, AND WILL BE REMOVED IN THE NEXT RELEASE. THE JCK SIGNATURE TEST THINKS THIS INTERFACE SHOULD EXIST

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the number of columns
getColumnCount
()

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

public int
getGridColumn()

Gets the column of the grid location

public int
getGridRow()

Gets the row of the grid location

public int

Returns:

the number of rows
getRowCount
()

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

public void
setGridLocation(int
the row >= 0
row
,
int
the column >= 0
col
)

Sets the grid location.

Method Detail

getColumnCountback to summary
public int getColumnCount()

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

Returns:int

the number of columns

getGridColumnback to summary
public int getGridColumn()

Gets the column of the grid location

getGridRowback to summary
public int getGridRow()

Gets the row of the grid location

getRowCountback to summary
public int getRowCount()

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

Returns:int

the number of rows

setGridLocationback to summary
public void setGridLocation(int row, int col)

Sets the grid location.

Parameters
row:int

the row >= 0

col:int

the column >= 0

javax.swing.text back to summary

public Class TableView.TableCell

extends BoxView
implements GridCell
Class Inheritance
All Implemented Interfaces
javax.swing.text.TableView.GridCell
Annotations
@Deprecated

Deprecated

A table cell can now be any View implementation.

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int
Inherited from javax.swing.text.BoxView:
majorAllocValidmajorAxismajorOffsetsmajorRequestmajorReqValidmajorSpanmajorSpansminorAllocValidminorOffsetsminorRequestminorReqValidminorSpanminorSpanstempRect

Constructor Summary

AccessConstructor and Description
public
TableCell(Element
the element that this view is responsible for
elem
)

Constructs a TableCell for the given element.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the number of columns
getColumnCount
()

Implements javax.swing.text.TableView.GridCell.getColumnCount.

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

public int
getGridColumn()

Implements javax.swing.text.TableView.GridCell.getGridColumn.

Gets the column of the grid location

public int
getGridRow()

Implements javax.swing.text.TableView.GridCell.getGridRow.

Gets the row of the grid location

public int

Returns:

the number of rows
getRowCount
()

Implements javax.swing.text.TableView.GridCell.getRowCount.

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

public void
setGridLocation(int
the row >= 0
row
,
int
the column >= 0
col
)

Implements javax.swing.text.TableView.GridCell.setGridLocation.

Sets the grid location.

Inherited from javax.swing.text.BoxView:
baselineLayoutbaselineRequirementscalculateMajorAxisRequirementscalculateMinorAxisRequirementscheckRequestschildAllocationflipEastAndWestAtEndsforwardUpdategetAlignmentgetAxisgetChildAllocationgetHeightgetMaximumSpangetMinimumSpangetOffsetgetPreferredSpangetResizeWeightgetSpangetSpanOnAxisgetViewAtPointgetWidthisAfterisAllocationValidisBeforeisLayoutValidlayoutlayoutChangedlayoutMajorAxislayoutMinorAxismodelToViewpaintpaintChildpreferenceChangedreplacesetAxissetSizesetSpanOnAxisupdateChildSizesupdateLayoutArrayviewToModel

Field Detail

colback to summary
pack-priv int col
rowback to summary
pack-priv int row

Constructor Detail

TableCellback to summary
public TableCell(Element elem)

Constructs a TableCell for the given element.

Parameters
elem:Element

the element that this view is responsible for

Since
1.4

Method Detail

getColumnCountback to summary
public int getColumnCount()

Implements javax.swing.text.TableView.GridCell.getColumnCount.

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

Returns:int

the number of columns

getGridColumnback to summary
public int getGridColumn()

Implements javax.swing.text.TableView.GridCell.getGridColumn.

Gets the column of the grid location

getGridRowback to summary
public int getGridRow()

Implements javax.swing.text.TableView.GridCell.getGridRow.

Gets the row of the grid location

getRowCountback to summary
public int getRowCount()

Implements javax.swing.text.TableView.GridCell.getRowCount.

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

Returns:int

the number of rows

setGridLocationback to summary
public void setGridLocation(int row, int col)

Implements javax.swing.text.TableView.GridCell.setGridLocation.

Sets the grid location.

Parameters
row:int

the row >= 0

col:int

the column >= 0

javax.swing.text back to summary

public Class TableView.TableRow

extends BoxView
Class Inheritance

View of a row in a row-centric table.

Field Summary

Modifier and TypeField and Description
pack-priv BitSet
fillColumns

columns filled by multi-column or multi-row cells

pack-priv int
row

the row within the overall grid

Inherited from javax.swing.text.BoxView:
majorAllocValidmajorAxismajorOffsetsmajorRequestmajorReqValidmajorSpanmajorSpansminorAllocValidminorOffsetsminorRequestminorReqValidminorSpanminorSpanstempRect

Constructor Summary

AccessConstructor and Description
public
TableRow(Element
the element that this view is responsible for
elem
)

Constructs a TableView for the given element.

Method Summary

Modifier and TypeMethod and Description
protected SizeRequirements
calculateMajorAxisRequirements(int axis, SizeRequirements r)

Overrides javax.swing.text.BoxView.calculateMajorAxisRequirements.

Calculates the size requirements for the major axis axis.

pack-priv void
pack-priv void
fillColumn(int col)

pack-priv int
getColumnCount()

The number of columns present in this row.

public float
getMaximumSpan(int axis)

Overrides javax.swing.text.BoxView.getMaximumSpan.

Determines the maximum span for this view along an axis.

public float
getMinimumSpan(int axis)

Overrides javax.swing.text.BoxView.getMinimumSpan.

Determines the minimum span for this view along an axis.

public float
getPreferredSpan(int axis)

Overrides javax.swing.text.BoxView.getPreferredSpan.

Determines the preferred span for this view along an axis.

public int

Returns:

the resize weight
getResizeWeight
(int
may be either View.X_AXIS or View.Y_AXIS
axis
)

Overrides javax.swing.text.BoxView.getResizeWeight.

Determines the resizability of the view along the given axis.

pack-priv int
getRow()

get location in the overall set of rows

protected View

Returns:

the view representing the given position, or null if there isn't one
getViewAtPosition
(int
the search position >= 0
pos
,
Rectangle
the allocation to the table on entry, and the allocation of the view containing the position on exit
a
)

Overrides javax.swing.text.CompositeView.getViewAtPosition.

Fetches the child view that represents the given position in the model.

pack-priv boolean
isFilled(int col)

protected void
layoutMajorAxis(int
the total span given to the view, which would be used to layout the children.
targetSpan
,
int
the axis being laid out.
axis
,
int[]
the offsets from the origin of the view for each of the child views. This is a return value and is filled in by the implementation of this method.
offsets
,
int[]
the span of each child view. This is a return value and is filled in by the implementation of this method.
spans
)

Overrides javax.swing.text.BoxView.layoutMajorAxis.

Perform layout for the major axis of the box (i.e. the axis that it represents).

protected void
layoutMinorAxis(int
the total span given to the view, which would be used to layout the children.
targetSpan
,
int
the axis being laid out.
axis
,
int[]
the offsets from the origin of the view for each of the child views. This is a return value and is filled in by the implementation of this method.
offsets
,
int[]
the span of each child view. This is a return value and is filled in by the implementation of this method.
spans
)

Overrides javax.swing.text.BoxView.layoutMinorAxis.

Perform layout for the minor axis of the box (i.e. the axis orthogonal to the axis that it represents).

public void
replace(int offset, int length, View[] views)

Overrides javax.swing.text.BoxView.replace.

Change the child views.

pack-priv void
setRow(int row)

set location in the overall set of rows, this is set by the TableView.updateGrid() method.

Inherited from javax.swing.text.BoxView:
baselineLayoutbaselineRequirementscalculateMinorAxisRequirementscheckRequestschildAllocationflipEastAndWestAtEndsforwardUpdategetAlignmentgetAxisgetChildAllocationgetHeightgetOffsetgetSpangetSpanOnAxisgetViewAtPointgetWidthisAfterisAllocationValidisBeforeisLayoutValidlayoutlayoutChangedmodelToViewpaintpaintChildpreferenceChangedsetAxissetSizesetSpanOnAxisupdateChildSizesupdateLayoutArrayviewToModel

Field Detail

fillColumnsback to summary
pack-priv BitSet fillColumns

columns filled by multi-column or multi-row cells

rowback to summary
pack-priv int row

the row within the overall grid

Constructor Detail

TableRowback to summary
public TableRow(Element elem)

Constructs a TableView for the given element.

Parameters
elem:Element

the element that this view is responsible for

Since
1.4

Method Detail

calculateMajorAxisRequirementsback to summary
protected SizeRequirements calculateMajorAxisRequirements(int axis, SizeRequirements r)

Overrides javax.swing.text.BoxView.calculateMajorAxisRequirements.

Doc from javax.swing.text.BoxView.calculateMajorAxisRequirements.

Calculates the size requirements for the major axis axis.

Annotations
@Override
clearFilledColumnsback to summary
pack-priv void clearFilledColumns()
fillColumnback to summary
pack-priv void fillColumn(int col)
getColumnCountback to summary
pack-priv int getColumnCount()

The number of columns present in this row.

getMaximumSpanback to summary
public float getMaximumSpan(int axis)

Overrides javax.swing.text.BoxView.getMaximumSpan.

Doc from javax.swing.text.BoxView.getMaximumSpan.

Determines the maximum span for this view along an axis.

Annotations
@Override
getMinimumSpanback to summary
public float getMinimumSpan(int axis)

Overrides javax.swing.text.BoxView.getMinimumSpan.

Doc from javax.swing.text.BoxView.getMinimumSpan.

Determines the minimum span for this view along an axis.

Annotations
@Override
getPreferredSpanback to summary
public float getPreferredSpan(int axis)

Overrides javax.swing.text.BoxView.getPreferredSpan.

Doc from javax.swing.text.BoxView.getPreferredSpan.

Determines the preferred span for this view along an axis.

Annotations
@Override
getResizeWeightback to summary
public int getResizeWeight(int axis)

Overrides javax.swing.text.BoxView.getResizeWeight.

Determines the resizability of the view along the given axis. A value of 0 or less is not resizable.

Parameters
axis:int

may be either View.X_AXIS or View.Y_AXIS

Returns:int

the resize weight

Exceptions
IllegalArgumentException:
for an invalid axis
getRowback to summary
pack-priv int getRow()

get location in the overall set of rows

getViewAtPositionback to summary
protected View getViewAtPosition(int pos, Rectangle a)

Overrides javax.swing.text.CompositeView.getViewAtPosition.

Fetches the child view that represents the given position in the model. This is implemented to walk through the children looking for a range that contains the given position. In this view the children do not necessarily have a one to one mapping with the child elements.

Parameters
pos:int

the search position >= 0

a:Rectangle

the allocation to the table on entry, and the allocation of the view containing the position on exit

Returns:View

the view representing the given position, or null if there isn't one

isFilledback to summary
pack-priv boolean isFilled(int col)
layoutMajorAxisback to summary
protected void layoutMajorAxis(int targetSpan, int axis, int[] offsets, int[] spans)

Overrides javax.swing.text.BoxView.layoutMajorAxis.

Perform layout for the major axis of the box (i.e. the axis that it represents). The results of the layout should be placed in the given arrays which represent the allocations to the children along the major axis.

This is re-implemented to give each child the span of the column width for the table, and to give cells that span multiple columns the multi-column span.

Parameters
targetSpan:int

the total span given to the view, which would be used to layout the children.

axis:int

the axis being laid out.

offsets:int[]

the offsets from the origin of the view for each of the child views. This is a return value and is filled in by the implementation of this method.

spans:int[]

the span of each child view. This is a return value and is filled in by the implementation of this method.

layoutMinorAxisback to summary
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans)

Overrides javax.swing.text.BoxView.layoutMinorAxis.

Perform layout for the minor axis of the box (i.e. the axis orthogonal to the axis that it represents). The results of the layout should be placed in the given arrays which represent the allocations to the children along the minor axis. This is called by the superclass whenever the layout needs to be updated along the minor axis.

This is implemented to delegate to the superclass, then adjust the span for any cell that spans multiple rows.

Parameters
targetSpan:int

the total span given to the view, which would be used to layout the children.

axis:int

the axis being laid out.

offsets:int[]

the offsets from the origin of the view for each of the child views. This is a return value and is filled in by the implementation of this method.

spans:int[]

the span of each child view. This is a return value and is filled in by the implementation of this method.

replaceback to summary
public void replace(int offset, int length, View[] views)

Overrides javax.swing.text.BoxView.replace.

Change the child views. This is implemented to provide the superclass behavior and invalidate the grid so that rows and columns will be recalculated.

setRowback to summary
pack-priv void setRow(int row)

set location in the overall set of rows, this is set by the TableView.updateGrid() method.