View
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | TableView.
Default view of an html table cell. |
| pack-priv class | |
| pack-priv class | |
| public class | TableView.
View of a row in a row-centric table. |
| Modifier and Type | Field and Description |
|---|---|
| private AttributeSet | |
| private int | |
| private int | captionIndex
The index of the caption view if there is a caption. |
| private int | |
| pack-priv TableView. | |
| pack-priv int[] | |
| pack-priv SizeRequirements[] | |
| pack-priv int[] | |
| private static final BitSet | |
| pack-priv boolean | |
| private boolean | multiRowCells
Do any of the table cells span multiple rows? |
| private StyleSheet. | |
| private boolean | relativeCells
Do any of the table cells contain a relative size specification? |
| pack-priv TableView. | |
| pack-priv Vector | |
| pack-priv boolean | |
| pack-priv SizeRequirements | totalColumnRequirements
SizeRequirements for all the columns. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| protected SizeRequirements | calculateMajorAxisRequirements(int axis, SizeRequirements r)
Overrides javax. Calculate the requirements for the major axis. |
| protected SizeRequirements | calculateMinorAxisRequirements(int axis, SizeRequirements r)
Overrides javax. Calculate the requirements for the minor axis. |
| public void | changedUpdate(DocumentEvent
the change information from the associated document e, Shape the current allocation of the view a, ViewFactory the factory to use to rebuild if the view has children f)Overrides javax. Gives notification from the document that attributes were changed in a location that this view is responsible for. |
| pack-priv void | checkMultiColumnCell(int axis, int col, int ncols, View v)
check the requirements of a table cell that spans multiple columns. |
| pack-priv void | checkSingleColumnCell(int axis, int col, View v)
check the requirements of a table cell that spans a single column. |
| public View | create(Element elem)
Implements javax. The table itself acts as a factory for the various views that actually represent pieces of the table. |
| protected TableView. | |
| protected void | forwardUpdate(DocumentEvent.
Overrides javax. Forwards the given |
| public AttributeSet | getAttributes()
Overrides javax. Fetches the attributes to use when rendering. |
| public int | |
| protected int | getColumnsOccupied(View v)
Determines the number of columns occupied by the table cell represented by given element. |
| public int | |
| public int | |
| pack-priv TableView. | |
| public int | |
| protected int | getRowsOccupied(View v)
Determines the number of rows occupied by the table cell represented by given element. |
| public int | |
| protected StyleSheet | |
| protected View | getViewAtPoint(int x, int y, Rectangle alloc)
Overrides javax. Fetches the child view at the given coordinates. |
| protected View | Returns: the view representing the given position, or null if there isn't onethe search position >= 0 pos, Rectangle the allocation to the table on entry, and the
allocation of the view containing the position on exit a)Overrides javax. Fetches the child view that represents the given position in the model. |
| public ViewFactory | Returns: the factory, null if noneOverrides javax. Fetches the ViewFactory implementation that is feeding the view hierarchy. |
| public void | insertUpdate(DocumentEvent
the change information from the associated document e, Shape the current allocation of the view a, ViewFactory the factory to use to rebuild if the view has children f)Overrides javax. Gives notification that something was inserted into the document in a location that this view is responsible for. |
| protected void | |
| protected void | Returns: the offset from the origin and the span for each column in the offsets and spans parametersthe given span for total of all the table
columns targetSpan, int[] the return value of the offset from the
origin for each column offsets, int[] the return value of how much to allocated to
each column spans, SizeRequirements[] the requirements desired for each column. This
is the column maximum of the cells minimum, preferred, and
maximum requested span reqs)Layout the columns to fit within the given target span. |
| protected void | Returns: the offset and span for each child view in the offsets and spans parametersthe total span given to the view, which
would be used to layout the children targetSpan, int the axis being laid out axis, int[] the offsets from the origin of the view for
each of the child views; this is a return value and is
filled in by the implementation of this method offsets, int[] the span of each child view; this is a return
value and is filled in by the implementation of this method spans)Overrides javax. Perform layout for the major axis of the box (i.e. the axis that it represents). |
| protected void | Returns: the offset and span for each child view in the offsets and spans parametersthe total span given to the view, which
would be used to layout the children targetSpan, int the axis being laid out axis, int[] the offsets from the origin of the view for
each of the child views. This is a return value and is
filled in by the implementation of this method offsets, int[] the span of each child view; this is a return
value and is filled in by the implementation of this method spans)Overrides javax. Perform layout for the minor axis of the box (i.e. the axis orthogonal to the axis that it represents). |
| public void | paint(Graphics
the rendering surface to use g, Shape the allocated region to render into allocation)Overrides javax. Renders using the given rendering surface and area on that surface. |
| public void | removeUpdate(DocumentEvent
the change information from the associated document e, Shape the current allocation of the view a, ViewFactory the factory to use to rebuild if the view has children f)Overrides javax. Gives notification that something was removed from the document in a location that this view is responsible for. |
| public void | replace(int offset, int length, View[] views)
Overrides javax. Change the child views. |
| public void | setParent(View
the new parent, or null if the view is
being removed from a parent it was previously added
to parent)Overrides javax. Establishes the parent view for this view. |
| protected void | |
| pack-priv void | updateGrid()
Fill in the grid locations that are placeholders for multi-column, multi-row, and missing grid locations. |
| pack-priv void |