public class ListView extends BlockView
<ul>
and
<ol>
tags.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
Constructor and Description |
---|
ListView(Element el)
Creates a new
ListView for the specified element. |
Modifier and Type | Method and Description |
---|---|
float |
getAlignment(int axis)
Returns the alignment of this view along the specified axis.
|
void |
paint(Graphics g,
Shape allocation)
Paints the
ListView . |
protected void |
paintChild(Graphics g,
Rectangle a,
int index)
Paints the child with the specified index into the specified allocation.
|
protected void |
setPropertiesFromAttributes()
Fetches this view's properties from the style attributes of this view's
element.
|
calculateMajorAxisRequirements, calculateMinorAxisRequirements, changedUpdate, getAttributes, getMaximumSpan, getMinimumSpan, getPreferredSpan, getResizeWeight, getStyleSheet, layoutMajorAxis, layoutMinorAxis, replace, setParent
baselineLayout, baselineRequirements, childAllocation, flipEastAndWestAtEnds, forwardUpdate, getAxis, getChildAllocation, getHeight, getOffset, getSpan, getViewAtPoint, getWidth, isAfter, isAllocationValid, isBefore, isLayoutValid, layout, layoutChanged, modelToView, preferenceChanged, setAxis, setSize, viewToModel
getBottomInset, getInsideAllocation, getLeftInset, getNextEastWestVisualPositionFrom, getNextNorthSouthVisualPositionFrom, getNextVisualPositionFrom, getRightInset, getTopInset, getView, getViewAtPosition, getViewCount, getViewIndex, getViewIndexAtPosition, loadChildren, modelToView, setInsets, setParagraphInsets
append, breakView, createFragment, dump, forwardUpdateToView, getBreakWeight, getContainer, getDocument, getElement, getEndOffset, getGraphics, getParent, getStartOffset, getToolTipText, getViewFactory, getViewIndex, insert, insertUpdate, isVisible, modelToView, remove, removeAll, removeUpdate, updateChildren, updateLayout, viewToModel
public float getAlignment(int axis)
0.5
unconditionally.getAlignment
in class BlockView
axis
- the axisprotected void paintChild(Graphics g, Rectangle a, int index)
StyleSheet
and then calls
super.paintChild(g, a, index)
.paintChild
in class BoxView
g
- the graphics context to usea
- the allocation for the childindex
- the child indexBoxView.childAllocation(int, Rectangle)
protected void setPropertiesFromAttributes()
StyleSheet.ListPainter
from the stylesheet suitable for painting the list.setPropertiesFromAttributes
in class BlockView