org.knime.core.util
Class NoSelectionListSelectionModel

java.lang.Object
  extended by javax.swing.DefaultListSelectionModel
      extended by org.knime.core.util.NoSelectionListSelectionModel
All Implemented Interfaces:
Serializable, Cloneable, ListSelectionModel

public class NoSelectionListSelectionModel
extends DefaultListSelectionModel

A ListSelectionModel not allowing any selection. As the default model supports only single or multiple selections, we override a couple of methods and provide this wrapper class.

Author:
ohl, University of Konstanz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.DefaultListSelectionModel
leadAnchorNotificationEnabled, listenerList
 
Fields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
 
Constructor Summary
NoSelectionListSelectionModel()
           
 
Method Summary
 void addSelectionInterval(int index0, int index1)
          
 void insertIndexInterval(int index, int length, boolean before)
          
 void moveLeadSelectionIndex(int leadIndex)
          
 void removeIndexInterval(int index0, int index1)
          
 void removeSelectionInterval(int index0, int index1)
          
 void setAnchorSelectionIndex(int anchorIndex)
          
 void setLeadSelectionIndex(int leadIndex)
          
 void setSelectionInterval(int index0, int index1)
          
 void setSelectionMode(int selectionMode)
          
 
Methods inherited from class javax.swing.DefaultListSelectionModel
addListSelectionListener, clearSelection, clone, fireValueChanged, fireValueChanged, fireValueChanged, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getSelectionMode, getValueIsAdjusting, isLeadAnchorNotificationEnabled, isSelectedIndex, isSelectionEmpty, removeListSelectionListener, setLeadAnchorNotificationEnabled, setValueIsAdjusting, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoSelectionListSelectionModel

public NoSelectionListSelectionModel()
Method Detail

insertIndexInterval

public void insertIndexInterval(int index,
                                int length,
                                boolean before)

Specified by:
insertIndexInterval in interface ListSelectionModel
Overrides:
insertIndexInterval in class DefaultListSelectionModel

moveLeadSelectionIndex

public void moveLeadSelectionIndex(int leadIndex)

Overrides:
moveLeadSelectionIndex in class DefaultListSelectionModel

removeIndexInterval

public void removeIndexInterval(int index0,
                                int index1)

Specified by:
removeIndexInterval in interface ListSelectionModel
Overrides:
removeIndexInterval in class DefaultListSelectionModel

setAnchorSelectionIndex

public void setAnchorSelectionIndex(int anchorIndex)

Specified by:
setAnchorSelectionIndex in interface ListSelectionModel
Overrides:
setAnchorSelectionIndex in class DefaultListSelectionModel

setLeadSelectionIndex

public void setLeadSelectionIndex(int leadIndex)

Specified by:
setLeadSelectionIndex in interface ListSelectionModel
Overrides:
setLeadSelectionIndex in class DefaultListSelectionModel

setSelectionInterval

public void setSelectionInterval(int index0,
                                 int index1)

Specified by:
setSelectionInterval in interface ListSelectionModel
Overrides:
setSelectionInterval in class DefaultListSelectionModel

addSelectionInterval

public void addSelectionInterval(int index0,
                                 int index1)

Specified by:
addSelectionInterval in interface ListSelectionModel
Overrides:
addSelectionInterval in class DefaultListSelectionModel

removeSelectionInterval

public void removeSelectionInterval(int index0,
                                    int index1)

Specified by:
removeSelectionInterval in interface ListSelectionModel
Overrides:
removeSelectionInterval in class DefaultListSelectionModel

setSelectionMode

public void setSelectionMode(int selectionMode)

Specified by:
setSelectionMode in interface ListSelectionModel
Overrides:
setSelectionMode in class DefaultListSelectionModel


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.