javax.swing.text
public class TableView.TableRow extends BoxView
TableView
.
This is implemented as a horizontal box that contains the actual cells
of the table.
Constructor Summary | |
---|---|
TableRow(Element el)
Creates a new instance of TableRow .
|
Method Summary | |
---|---|
int | getResizeWeight(int axis)
Determines the resizeability of this view along the specified axis.
|
protected View | getViewAtPosition(int pos, Rectangle a)
Returns the child view that represents the specified position in the
model. |
protected void | layoutMajorAxis(int targetSpan, int axis, int[] offsets, int[] spans)
Lays out the box's child views along the major axis. |
protected void | layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans)
Lays out the box's child views along the minor axis (the orthogonal axis
to the major axis). |
void | replace(int offset, int length, View[] views)
Replaces some child views with a new set of child views. |
TableRow
.
Parameters: el the element for which to create a row view
Parameters: axis the axis of which to fetch the resizability
Returns: the resize weight or <= 0 if this view is not resizable
Throws: IllegalArgumentException when an illegal axis is specified
Parameters: pos the model position for which to query the view a the allocation of this view
Returns: the view that corresponds to the specified model position or
null
if there is none
Parameters: targetSpan the total span of the view axis the axis that is laid out offsets an array that holds the offsets of the child views after this method returned spans an array that holds the spans of the child views after this method returned
Parameters: targetSpan the total span of the view axis the axis that is laid out offsets an array that holds the offsets of the child views after this method returned spans an array that holds the spans of the child views after this method returned
Parameters: offset the start offset at which to replace views length the number of views to remove views the new set of views