|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.View
javax.swing.text.CompositeView
javax.swing.text.BoxView
javax.swing.text.TableView.TableRow
public class TableView.TableRow
A view implementation that renders a row of a TableView
.
This is implemented as a horizontal box that contains the actual cells
of the table.
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 | |
---|---|
TableView.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. |
Methods inherited from class javax.swing.text.BoxView |
---|
baselineLayout, baselineRequirements, calculateMajorAxisRequirements, calculateMinorAxisRequirements, childAllocation, flipEastAndWestAtEnds, forwardUpdate, getAlignment, getAxis, getChildAllocation, getHeight, getMaximumSpan, getMinimumSpan, getOffset, getPreferredSpan, getSpan, getViewAtPoint, getWidth, isAfter, isAllocationValid, isBefore, isLayoutValid, layout, layoutChanged, modelToView, paint, paintChild, preferenceChanged, setAxis, setSize, viewToModel |
Methods inherited from class javax.swing.text.CompositeView |
---|
getBottomInset, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewCount, getViewIndex, getViewIndexAtPosition, loadChildren, modelToView, setInsets, setParagraphInsets, setParent |
Methods inherited from class javax.swing.text.View |
---|
append, breakView, changedUpdate, createFragment, dump, forwardUpdateToView, getAttributes, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, insertUpdate, isVisible, modelToView, remove, removeAll, removeUpdate, updateChildren, updateLayout, viewToModel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableView.TableRow(Element el)
TableRow
.
el
- the element for which to create a row viewMethod Detail |
---|
public void replace(int offset, int length, View[] views)
replace
in class BoxView
offset
- the start offset at which to replace viewslength
- the number of views to removeviews
- the new set of viewsprotected void layoutMajorAxis(int targetSpan, int axis, int[] offsets, int[] spans)
layoutMajorAxis
in class BoxView
targetSpan
- the total span of the viewaxis
- the axis that is laid outoffsets
- an array that holds the offsets of the child views after
this method returnedspans
- an array that holds the spans of the child views after this
method returnedprotected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans)
layoutMinorAxis
in class BoxView
targetSpan
- the total span of the viewaxis
- the axis that is laid outoffsets
- an array that holds the offsets of the child views after
this method returnedspans
- an array that holds the spans of the child views after this
method returnedpublic int getResizeWeight(int axis)
getResizeWeight
in class BoxView
axis
- the axis of which to fetch the resizability
IllegalArgumentException
- when an illegal axis is specifiedprotected View getViewAtPosition(int pos, Rectangle a)
getViewAtPosition
in class CompositeView
pos
- the model position for which to query the viewa
- the allocation of this view
null
if there is none
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |