Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.table.span
Interface SpanModel

All Known Implementing Classes:
AbstractSpanModel, DefaultSpanModel, TreeTable.DefaultTreeSpanModel, TreeTable.DefaultTreeSpanModel

public interface SpanModel

The SpanModel interface specifies the methods the SpanDrawer will use to discover which cells of the table are spanned.


Method Summary
 void addSpanModelListener(SpanModelListener l)
          Adds a SpanModelListener that is notified each time a cell merge or split occurs.
 CellSpan getCellSpanAt(int row, int column)
          Returns the cell span for the cell at row and column.
 void removeSpanModelListener(SpanModelListener l)
          Removes a SpanModelListener that is notified each time a cell merge or split occurs.
 

Method Detail

addSpanModelListener

void addSpanModelListener(SpanModelListener l)
Adds a SpanModelListener that is notified each time a cell merge or split occurs.

Parameters:
l - the SpanModelListener to add

getCellSpanAt

CellSpan getCellSpanAt(int row,
                       int column)
Returns the cell span for the cell at row and column.

Parameters:
row - the row whose value is to be looked up
column - the column whose value is to be looked up
Returns:
the cell's span

removeSpanModelListener

void removeSpanModelListener(SpanModelListener l)
Removes a SpanModelListener that is notified each time a cell merge or split occurs.

Parameters:
l - the SpanModelListener to remove

Copyright © 2005 Scientific Applications. All Rights Reserved.