javax.swing.text
public abstract class TableView extends BoxView
Nested Class Summary | |
---|---|
class | TableView.TableCell
This class is deprecated and not used anymore. |
class | TableView.TableRow
A view implementation that renders a row of a TableView .
|
Constructor Summary | |
---|---|
TableView(Element el)
Creates a new instance of TableView .
|
Method Summary | |
---|---|
protected SizeRequirements | calculateMinorAxisRequirements(int axis, SizeRequirements req)
Calculates the requirements of this view for the minor (== horizontal)
axis.
|
protected TableView.TableCell | createTableCell(Element el)
Creates a view for a table cell. |
protected TableView.TableRow | createTableRow(Element el)
Creates a view for a table row.
|
protected void | forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory vf) |
protected View | getViewAtPosition(int pos, Rectangle a)
Returns the child view that represents the specified position in the
model. |
protected void | layoutColumns(int targetSpan, int[] offsets, int[] spans, SizeRequirements[] reqs)
Lays out the columns to fit within the specified target span.
|
protected void | layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans)
Lays out the child views along the minor axis of the table (that is the
horizontal axis). |
void | replace(int offset, int length, View[] views)
Replaces a number of child views with a set of new child views. |
TableView
.
Parameters: el the element for which to create a table view
Parameters: axis the axis req the size requirements object to use, if null
a new
one will be created
Deprecated: Table cells are now rendered by an arbitrary
View
implementation.
Parameters: el the element that represents the table cell
Returns: a view for rendering the table cell
Parameters: el the element that represents the table row
Returns: a view for rendering the table row
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 for the columns offsets an array that holds the offsets of the columns when this method returns spans an array that holds the spans of the columns when this method returns reqs the size requirements for each column
Parameters: targetSpan the available span along the minor (horizontal) axis axis the axis offsets an array that holds the offsets of the columns when this method returns spans an array that holds the spans of the columns when this method returns
Parameters: offset the offset at which to replace child views length the number of child views to remove views the new set of views