org.jdesktop.dataset.adapter
Class SelectionModelAdapter

java.lang.Object
  extended by org.jdesktop.dataset.adapter.SelectionModelAdapter
All Implemented Interfaces:
SelectionModel

public class SelectionModelAdapter
extends java.lang.Object
implements SelectionModel

Author:
rbair

Constructor Summary
SelectionModelAdapter(DataSelector ds)
          Creates a new instance of SelectionModelAdapter
 
Method Summary
 void addSelectionModelListener(SelectionModelListener listener)
          Add a listener to the list that's notified each time a change to the selection occurs.
 int[] getSelectionIndices()
           
 void removeSelectionModelListener(SelectionModelListener listener)
          Remove the given listener from the list that's notified each time a change to the selection occurs
 void setSelectionIndices(int[] indices)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionModelAdapter

public SelectionModelAdapter(DataSelector ds)
Creates a new instance of SelectionModelAdapter

Method Detail

addSelectionModelListener

public void addSelectionModelListener(SelectionModelListener listener)
Description copied from interface: SelectionModel
Add a listener to the list that's notified each time a change to the selection occurs.

Specified by:
addSelectionModelListener in interface SelectionModel
Parameters:
listener - The listener to be notified

removeSelectionModelListener

public void removeSelectionModelListener(SelectionModelListener listener)
Description copied from interface: SelectionModel
Remove the given listener from the list that's notified each time a change to the selection occurs

Specified by:
removeSelectionModelListener in interface SelectionModel
Parameters:
listener - the listener to be removed

setSelectionIndices

public void setSelectionIndices(int[] indices)
Specified by:
setSelectionIndices in interface SelectionModel

getSelectionIndices

public int[] getSelectionIndices()
Specified by:
getSelectionIndices in interface SelectionModel
Returns:


Copyright © 2005 Sun Microsystems All Rights Reserved.