|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.whattf.checker.table.ColumnRange
final class ColumnRange
Represents a contiguous range of columns that was established by a single element and that does not yet have cells in it.
| Field Summary | |
|---|---|
private String |
element
The local name of the element that established this column range. |
private int |
left
The leftmost column that is part of this range. |
private Locator |
locator
The locator associated with the element that established this column range. |
private ColumnRange |
next
The next range in the linked list of ranges. |
private int |
right
The first column to the right that is not part of this range. |
| Constructor Summary | |
|---|---|
ColumnRange(String element,
Locator locator,
int left,
int right)
Constructor |
|
| Method Summary | |
|---|---|
(package private) String |
getElement()
Returns the element. |
(package private) Locator |
getLocator()
Returns the locator. |
(package private) ColumnRange |
getNext()
Returns the next. |
(package private) int |
hits(int column)
Hit testing. |
(package private) boolean |
isSingleCol()
|
(package private) ColumnRange |
removeColumn(int column)
Removes a column from the range possibly asking it to be destroyed or splitting it. |
(package private) void |
setNext(ColumnRange next)
Sets the next. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final Locator locator
private final String element
private int left
private int right
private ColumnRange next
| Constructor Detail |
|---|
public ColumnRange(String element,
Locator locator,
int left,
int right)
element - the local name of the establishing elementlocator - a locator associated with the establishing element;
must be suitable for retaining out-of-SAX-event!left - the leftmost column that is part of this rangeright - the first column to the right that is not part of this range| Method Detail |
|---|
String getElement()
Locator getLocator()
int hits(int column)
column - column index
ColumnRange removeColumn(int column)
column - a column index
null if this range gets destroyed,
this if the range gets resized and
the new right half range if the range gets splitColumnRange getNext()
void setNext(ColumnRange next)
next - the next to setboolean isSingleCol()
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||