|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jaret.util.ui.table.model.JaretTableSelectionModelImpl
public class JaretTableSelectionModelImpl
Implementation of the JaretTableSelectionModel.
| Field Summary | |
|---|---|
protected boolean |
_cellSelectioAllowed
true for allowance of single cell selection. |
protected boolean |
_fullColumnSelectionAllowed
true for allowance of full column selection. |
protected boolean |
_fullRowSelectionAllowed
true for allowance of full row selection. |
protected java.util.List<IJaretTableSelectionModelListener> |
_listeners
listeners to inform. |
protected boolean |
_multipleSelectionAllowed
true if multiple selection of more than one elemnt is allowed. |
protected boolean |
_onlyRowSelectionAllowed
true if only row selections are allowed. |
protected IJaretTableSelection |
_selection
the selection data store. |
| Constructor Summary | |
|---|---|
JaretTableSelectionModelImpl()
|
|
| Method Summary | |
|---|---|
void |
addSelectedCell(IJaretTableCell cell)
Add a cell to the selection. |
void |
addSelectedColumn(IColumn column)
Add a column to the selection. |
void |
addSelectedRow(IRow row)
Add a row to the selection. |
void |
addTableSelectionModelListener(IJaretTableSelectionModelListener jtsm)
Add a listener to listen to changes of the selection. |
void |
clearSelection()
Clear the selection. |
IJaretTableSelection |
getSelection()
retrieve the selected elements in the tabel selection structure. |
boolean |
isCellSelectionAllowed()
|
boolean |
isFullColumnSelectionAllowed()
Check whether full column selection is allowed. |
boolean |
isFullRowSelectionAllowed()
Check whether full row selection is allowed. |
boolean |
isMultipleSelectionAllowed()
Retrieve allowance for multiple elements selectable. |
boolean |
isOnlyRowSelectionAllowed()
Check whether only row selection is allowed. |
void |
removeTableSelectionModelListener(IJaretTableSelectionModelListener jtsm)
Remove a listener. |
void |
remSelectedCell(IJaretTableCell cell)
Remove a cell from the selection. |
void |
remSelectedColumn(IColumn column)
Remove a column from the selection. |
void |
remSelectedRow(IRow row)
Remove a row from the selection. |
void |
setCellSelectionAllowed(boolean allowed)
Set allowance for single cell selections. |
void |
setFullColumnSelectionAllowed(boolean allowed)
Set the allowance for full column selection. |
void |
setFullRowSelectionAllowed(boolean allowed)
Set the allowance for full row selection. |
void |
setMultipleSelectionAllowed(boolean allowed)
Set the allowance for multiple selection. |
void |
setOnlyRowSelectionAllowed(boolean allowed)
If set to true only row selection is allowed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<IJaretTableSelectionModelListener> _listeners
protected boolean _fullRowSelectionAllowed
protected boolean _fullColumnSelectionAllowed
protected boolean _cellSelectioAllowed
protected boolean _multipleSelectionAllowed
protected boolean _onlyRowSelectionAllowed
protected IJaretTableSelection _selection
| Constructor Detail |
|---|
public JaretTableSelectionModelImpl()
| Method Detail |
|---|
public void clearSelection()
clearSelection in interface IJaretTableSelectionModelpublic boolean isFullRowSelectionAllowed()
isFullRowSelectionAllowed in interface IJaretTableSelectionModelpublic void setFullRowSelectionAllowed(boolean allowed)
setFullRowSelectionAllowed in interface IJaretTableSelectionModelallowed - true for allowedpublic boolean isFullColumnSelectionAllowed()
isFullColumnSelectionAllowed in interface IJaretTableSelectionModelpublic void setFullColumnSelectionAllowed(boolean allowed)
setFullColumnSelectionAllowed in interface IJaretTableSelectionModelallowed - true for allowedpublic boolean isCellSelectionAllowed()
isCellSelectionAllowed in interface IJaretTableSelectionModelpublic void setCellSelectionAllowed(boolean allowed)
setCellSelectionAllowed in interface IJaretTableSelectionModelallowed - true for allowedpublic boolean isMultipleSelectionAllowed()
isMultipleSelectionAllowed in interface IJaretTableSelectionModelpublic void setMultipleSelectionAllowed(boolean allowed)
setMultipleSelectionAllowed in interface IJaretTableSelectionModelallowed - true for allowedpublic void addSelectedRow(IRow row)
addSelectedRow in interface IJaretTableSelectionModelrow - element to be added to the selectionpublic void remSelectedRow(IRow row)
remSelectedRow in interface IJaretTableSelectionModelrow - element to be removed from the selectionpublic void addSelectedColumn(IColumn column)
addSelectedColumn in interface IJaretTableSelectionModelcolumn - element to be added to the selectionpublic void remSelectedColumn(IColumn column)
remSelectedColumn in interface IJaretTableSelectionModelcolumn - element to be removed from the selectionpublic void addSelectedCell(IJaretTableCell cell)
addSelectedCell in interface IJaretTableSelectionModelcell - element to be added to the selectionpublic void remSelectedCell(IJaretTableCell cell)
remSelectedCell in interface IJaretTableSelectionModelcell - element to be removed from the selectionpublic IJaretTableSelection getSelection()
getSelection in interface IJaretTableSelectionModelpublic void addTableSelectionModelListener(IJaretTableSelectionModelListener jtsm)
addTableSelectionModelListener in interface IJaretTableSelectionModeljtsm - listenerpublic void removeTableSelectionModelListener(IJaretTableSelectionModelListener jtsm)
removeTableSelectionModelListener in interface IJaretTableSelectionModeljtsm - listener to be removedpublic boolean isOnlyRowSelectionAllowed()
isOnlyRowSelectionAllowed in interface IJaretTableSelectionModelpublic void setOnlyRowSelectionAllowed(boolean allowed)
setOnlyRowSelectionAllowed in interface IJaretTableSelectionModelallowed - true for only row selection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||