|
JComponentPack 1.3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zfqjava.swing.AbstractCellSpanModel
com.zfqjava.swing.DefaultCellSpanModel
public class DefaultCellSpanModel
| Field Summary |
|---|
| Fields inherited from class com.zfqjava.swing.AbstractCellSpanModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
DefaultCellSpanModel()
|
|
| Method Summary | |
|---|---|
Cell |
getCellSpans(int rowIndex,
int columnIndex)
Returns the cell that spans the specified cell at rowIndex and columnIndex. |
Cell[] |
getCellSpans(int firstRow,
int lastRow,
int firstColumn,
int lastColumn)
Returns the cells that spans the specified cell area. |
Cell[] |
getSpannedCells()
Returns all spanned cells. |
boolean |
hasCellSpans(int rowIndex,
int columnIndex)
Returns true if has cell spans the specified cell at rowIndex and columnIndex. |
boolean |
hasCellSpans(int firstRow,
int lastRow,
int firstColumn,
int lastColumn)
Returns true if has some cells spans the specified cell area. |
boolean |
isSpannedCell(Cell c)
Determines whether the cell is spanned cell. |
boolean |
merge(Cell c)
Merges the cell. |
boolean |
split(Cell c)
Splits the cell. |
| Methods inherited from class com.zfqjava.swing.AbstractCellSpanModel |
|---|
addCellSpanListener, fireCellMerged, fireCellSplitted, getCellSpanListeners, getListeners, removeCellSpanListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCellSpanModel()
| Method Detail |
|---|
public boolean hasCellSpans(int rowIndex,
int columnIndex)
CellSpanModelrowIndex and columnIndex.
rowIndex - the row index of the specified cellcolumnIndex - the column index of the specified cellCellSpanModel.getCellSpans(int,int)
public Cell getCellSpans(int rowIndex,
int columnIndex)
CellSpanModelrowIndex and columnIndex.
rowIndex - the row index of the specified cellcolumnIndex - the column index of the specified cell
CellSpanModel.hasCellSpans(int,int)
public boolean hasCellSpans(int firstRow,
int lastRow,
int firstColumn,
int lastColumn)
CellSpanModelNote:Some cell spans the area can have row and column index out of the area index.
firstRow - the first row index of the specified cell arealastRow - the last row index of the specified cell areafirstColumn - the first column index of the specified cell arealastColumn - the last column index of the specified cell area
CellSpanModel.getCellSpans(int,int,int,int)
public Cell[] getCellSpans(int firstRow,
int lastRow,
int firstColumn,
int lastColumn)
CellSpanModelNote:Some cell spans the area can have row and column index out of the area index.
firstRow - the first row index of the specified cell arealastRow - the last row index of the specified cell areafirstColumn - the first column index of the specified cell arealastColumn - the last column index of the specified cell area
CellSpanModel.hasCellSpans(int,int,int,int)public boolean isSpannedCell(Cell c)
CellSpanModel
c - the cell
CellSpanModel.merge(com.zfqjava.swing.cell.Cell).public Cell[] getSpannedCells()
CellSpanModel
CellSpanModel.merge(com.zfqjava.swing.cell.Cell).public boolean merge(Cell c)
CellSpanModeltrue if this model changes
as a result of the call. (Returns false if this model
already contains such spanned cell c or does not permit
such operation.)
c - the cell
CellSpanModel.split(com.zfqjava.swing.cell.Cell)public boolean split(Cell c)
CellSpanModeltrue if this model changes
as a result of the call. (Returns false if this model
have not such spanned cell or does not permit such operation.)
c - the cell
CellSpanModel.merge(com.zfqjava.swing.cell.Cell)
|
JComponentPack 1.3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||