public class TableView.TableRow extends BoxView
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
Modifier and Type | Method and Description |
---|---|
int |
getResizeWeight(int axis)
确定沿给定的轴视图的大小可调整。
|
protected View |
getViewAtPosition(int pos, Rectangle a)
把孩子的观点,代表模型中的位置。
|
protected void |
layoutMajorAxis(int targetSpan, int axis, int[] offsets, int[] spans)
执行框的主要轴的布局(即
|
protected void |
layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans)
执行框的小轴的布局(即
|
void |
replace(int offset, int length, View[] views)
改变孩子的看法。
|
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
getBottomInset, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewCount, getViewIndex, getViewIndexAtPosition, loadChildren, modelToView, setInsets, setParagraphInsets, setParent
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
public TableRow(Element elem)
elem
-这一观点负责元
public void replace(int offset, int length, View[] views)
protected void layoutMajorAxis(int targetSpan, int axis, int[] offsets, int[] spans)
这是重新实现,给每个孩子的表的列宽度的跨度,并给单元格跨越多个列的多列跨度。
layoutMajorAxis
方法重写,继承类
BoxView
targetSpan
-总跨度给视图,可用于布局的孩子。
axis
-轴布置。
offsets
为每个子视图的视图原点的偏移量。这是一个返回值,并由该方法的实现填充。
spans
-每个子视图的跨度。这是一个返回值,并由该方法的实现填充。
protected void layoutMinorAxis(int targetSpan, int axis, int[] offsets, int[] spans)
这是实施委托给父类,然后调整任何细胞跨多行的跨度。
layoutMinorAxis
方法重写,继承类
BoxView
targetSpan
-总跨度给视图,可用于布局的孩子。
axis
-轴布置。
offsets
为每个子视图的视图原点的偏移量。这是一个返回值,并由该方法的实现填充。
spans
-每个子视图的跨度。这是一个返回值,并由该方法的实现填充。
public int getResizeWeight(int axis)
getResizeWeight
方法重写,继承类
BoxView
axis
-可能是view.x_axis或view.y_axis
IllegalArgumentException
-无效的轴
protected View getViewAtPosition(int pos, Rectangle a)
getViewAtPosition
方法重写,继承类
CompositeView
pos
-搜索位置> = 0
a
-配置入境表,以及分配视图包含出口位置
null
如果没有
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.