de.jaret.util.ui.table.model
Interface IJaretTableSelection

All Known Implementing Classes:
JaretTableSelectionImpl

public interface IJaretTableSelection

Interface describing the selection in a jaret table. The selection is composed of full selected rows and columns and of a list of selected cells. If the selection contains full selected rows or columns, the cells of the rows/columns are not included in the list of single cells.

Version:
$Id: IJaretTableSelection.java 179 2007-01-07 17:37:50Z olk $
Author:
Peter Kliem

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.
 

Method Detail

getSelectedRows

java.util.List<IRow> getSelectedRows()
Retrieve selected rows.

Returns:
selected rows.

getSelectedColumns

java.util.List<IColumn> getSelectedColumns()
Retrieve selected Columns.

Returns:
selecetd columns

getSelectedCells

java.util.List<IJaretTableCell> getSelectedCells()
Retrieve cells that have been selected seperately.

Returns:
List of JaretTableCells selected seperately

getAllSelectedCells

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)

Parameters:
model - is needed to determine all cells.
Returns:
Set of all selected cells.

addRow

void addRow(IRow row)
Add a row to the selection.

Parameters:
row - the row to add

remRow

void remRow(IRow row)
Remove row from selection.

Parameters:
row - row to remove

addColumn

void addColumn(IColumn column)
Add a acolumn to the selection.

Parameters:
column - column to add

remColumn

void remColumn(IColumn column)
Remove column from the selection.

Parameters:
column - col to remove

addCell

void addCell(IJaretTableCell cell)
Add a cell to the selection.

Parameters:
cell - cell to add

remCell

void remCell(IJaretTableCell cell)
Remove a cell from the selection.

Parameters:
cell - cell to remove

isEmpty

boolean isEmpty()
Check if something is selected.

Returns:
true if the selection is empty

clear

void clear()
Clear the selection.



Copyright © 2012. All Rights Reserved.