|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.klg.jclass.table.SpanHandler
SpanHandler controls the creation, validation, removal and
repaint of spanned cell ranges.
| Field Summary | |
protected Vector |
spans
|
protected com.klg.jclass.table.JCTable |
table
|
| Constructor Summary | |
SpanHandler()
Creates a new SpanHandler |
|
| Method Summary | |
void |
addSpannedRange(com.klg.jclass.table.JCCellRange cr)
Adds a new JCCellRange to the spanned list. |
void |
clearSpannedRanges()
Removes all spanned cell ranges. |
com.klg.jclass.table.JCCellRange |
getCompleteRange(int start_row,
int start_column,
int end_row,
int end_column)
Ensures that the given cell range includes all cells that are part of spans. |
com.klg.jclass.table.JCCellRange |
getSpannedRange(int row,
int column)
Returns a JCCellRange containing the given row and column. |
Collection |
getSpannedRanges()
Returns a Vector containing all of the spanned cell ranges. |
boolean |
isControllingCell(com.klg.jclass.table.JCCellRange cr,
int row,
int column)
Returns true if the given cell is the upper-left-most non-hidden cell in a span. |
void |
removeSpannedRange(com.klg.jclass.table.JCCellRange cr)
Removes a cell range from the list of spanned cell ranges. |
void |
setSpannedRanges(Collection ranges)
Sets the spanned cell ranges to a Collection of JCCellRanges. |
void |
setTable(com.klg.jclass.table.JCTable table)
|
void |
validateAllRanges()
Reprocesses all cell ranges to ensure that none overlap or cross scrollable/non-scrollable regions. |
protected void |
validateRange(Vector spans,
com.klg.jclass.table.JCCellRange cr)
Validates a cell ranges against the current list of spanned cell ranges. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected com.klg.jclass.table.JCTable table
protected Vector spans
| Constructor Detail |
public SpanHandler()
| Method Detail |
public void setTable(com.klg.jclass.table.JCTable table)
public void addSpannedRange(com.klg.jclass.table.JCCellRange cr)
throws IllegalArgumentException
IllegalArgumentException - thrown if a cell range overlaps
and existing cell range or crosses over scrollable/non-scrollable regions.
protected void validateRange(Vector spans,
com.klg.jclass.table.JCCellRange cr)
throws IllegalArgumentException
IllegalArgumentException - thrown if a cell range overlaps
and existing cell range or crosses over scrollable/non-scrollable regions.
public com.klg.jclass.table.JCCellRange getCompleteRange(int start_row,
int start_column,
int end_row,
int end_column)
public void validateAllRanges()
throws IllegalArgumentException
IllegalArgumentException - thrown if a cell range overlaps
and existing cell range or crosses over scrollable/non-scrollable regions.public void clearSpannedRanges()
public Collection getSpannedRanges()
public void removeSpannedRange(com.klg.jclass.table.JCCellRange cr)
public void setSpannedRanges(Collection ranges)
throws IllegalArgumentException
IllegalArgumentException - thrown if a cell range overlaps
and existing cell range or crosses over scrollable/non-scrollable regions.
public com.klg.jclass.table.JCCellRange getSpannedRange(int row,
int column)
public boolean isControllingCell(com.klg.jclass.table.JCCellRange cr,
int row,
int column)
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||