de.jaret.util.ui.table.util
Class DefaultSelectionProvider

java.lang.Object
  extended by de.jaret.util.ui.table.util.AbstractSelectionProvider
      extended by de.jaret.util.ui.table.util.DefaultSelectionProvider
All Implemented Interfaces:
IJaretTableSelectionModelListener, org.eclipse.jface.viewers.ISelectionProvider

public class DefaultSelectionProvider
extends AbstractSelectionProvider

Default implementation of a SelectionProvider based on the jarettable. This will simply put rows, columns and cells in a structured selection.

Version:
$Id: DefaultSelectionProvider.java 183 2007-01-08 01:02:17Z olk $
Author:
Peter Kliem

Field Summary
 
Fields inherited from class de.jaret.util.ui.table.util.AbstractSelectionProvider
_selectionChangeListeners, _table
 
Constructor Summary
DefaultSelectionProvider(JaretTable table)
          Create a default selection provider.
 
Method Summary
protected  org.eclipse.jface.viewers.ISelection getISelection()
          Override this method to return an ISelectiobn appropriate for the intended use.
protected  void setISelection(org.eclipse.jface.viewers.ISelection selection)
          Override this method to set a selection on the table based on an ISelection.
 
Methods inherited from class de.jaret.util.ui.table.util.AbstractSelectionProvider
addSelectionChangedListener, cellSelectionAdded, cellSelectionRemoved, columnSelectionAdded, columnSelectionRemoved, getSelection, removeSelectionChangedListener, rowSelectionAdded, rowSelectionRemoved, setSelection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSelectionProvider

public DefaultSelectionProvider(JaretTable table)
Create a default selection provider.

Parameters:
table - JaretTable providing the selection
Method Detail

getISelection

protected org.eclipse.jface.viewers.ISelection getISelection()
Override this method to return an ISelectiobn appropriate for the intended use.. Returns a structured selection containig rows and columns and cells that have been selected.

Specified by:
getISelection in class AbstractSelectionProvider
Returns:
ISelection

setISelection

protected void setISelection(org.eclipse.jface.viewers.ISelection selection)
Override this method to set a selection on the table based on an ISelection.

Specified by:
setISelection in class AbstractSelectionProvider
Parameters:
selection - ISelection to be set.


Copyright © 2012. All Rights Reserved.