|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jaret.util.ui.table.model.JaretTableSelectionImpl
public class JaretTableSelectionImpl
Implementation of the JaretTableSelection.
| Field Summary | |
|---|---|
protected java.util.List<IJaretTableCell> |
_cells
selected cells. |
protected java.util.List<IColumn> |
_columns
selected columns. |
protected java.util.List<IRow> |
_rows
selected rows. |
| Constructor Summary | |
|---|---|
JaretTableSelectionImpl()
|
|
| Method Summary | |
|---|---|
void |
addCell(IJaretTableCell cell)
Add a cell to the selection. |
void |
addColumn(IColumn column)
Add a acolumn to the selection. |
void |
addRow(IRow row)
Add a row to the selection. |
void |
clear()
Clear the selection. |
java.util.Set<IJaretTableCell> |
getAllSelectedCells(IJaretTableModel model)
Retrieve a set of all selected cells (union of all cells in selected rows and columns plus. the cells selected seperately) |
java.util.List<IJaretTableCell> |
getSelectedCells()
Retrieve cells that have been selected seperately. |
java.util.List<IColumn> |
getSelectedColumns()
Retrieve selected Columns. |
java.util.List<IRow> |
getSelectedRows()
Retrieve selected rows. |
boolean |
isEmpty()
Check if something is selected. |
void |
remCell(IJaretTableCell cell)
Remove a cell from the selection. |
void |
remColumn(IColumn column)
Remove column from the selection. |
void |
remRow(IRow row)
Remove row from selection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<IRow> _rows
protected java.util.List<IColumn> _columns
protected java.util.List<IJaretTableCell> _cells
| Constructor Detail |
|---|
public JaretTableSelectionImpl()
| Method Detail |
|---|
public void clear()
clear in interface IJaretTableSelectionpublic java.util.List<IRow> getSelectedRows()
getSelectedRows in interface IJaretTableSelectionpublic java.util.List<IColumn> getSelectedColumns()
getSelectedColumns in interface IJaretTableSelectionpublic java.util.List<IJaretTableCell> getSelectedCells()
getSelectedCells in interface IJaretTableSelectionpublic void addRow(IRow row)
addRow in interface IJaretTableSelectionrow - the row to addpublic void remRow(IRow row)
remRow in interface IJaretTableSelectionrow - row to removepublic void addColumn(IColumn column)
addColumn in interface IJaretTableSelectioncolumn - column to addpublic void remColumn(IColumn column)
remColumn in interface IJaretTableSelectioncolumn - col to removepublic void addCell(IJaretTableCell cell)
addCell in interface IJaretTableSelectioncell - cell to addpublic void remCell(IJaretTableCell cell)
remCell in interface IJaretTableSelectioncell - cell to removepublic boolean isEmpty()
isEmpty in interface IJaretTableSelectionpublic java.util.Set<IJaretTableCell> getAllSelectedCells(IJaretTableModel model)
getAllSelectedCells in interface IJaretTableSelectionmodel - is needed to determine all cells.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||