gate.gui
Class CorpusQualityAssurance.ToggleSelectionABModel

java.lang.Object
  extended by javax.swing.DefaultListSelectionModel
      extended by gate.gui.CorpusQualityAssurance.ToggleSelectionABModel
All Implemented Interfaces:
Serializable, Cloneable, ListSelectionModel
Enclosing class:
CorpusQualityAssurance

protected static class CorpusQualityAssurance.ToggleSelectionABModel
extends DefaultListSelectionModel

Add a suffix A and B for the first and second selected item. Allows only 2 items to be selected.

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
CorpusQualityAssurance.ToggleSelectionABModel(JList list)
           
 
Method Summary
 void clearSelection()
           
 String getSelectedValueA()
           
 String getSelectedValueB()
           
 void setSelectionInterval(int index0, int index1)
           
 
Methods inherited from class javax.swing.DefaultListSelectionModel
addListSelectionListener, addSelectionInterval, clone, fireValueChanged, fireValueChanged, fireValueChanged, getAnchorSelectionIndex, getLeadSelectionIndex, getListeners, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getSelectionMode, getValueIsAdjusting, insertIndexInterval, isLeadAnchorNotificationEnabled, isSelectedIndex, isSelectionEmpty, moveLeadSelectionIndex, removeIndexInterval, removeListSelectionListener, removeSelectionInterval, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionMode, setValueIsAdjusting, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CorpusQualityAssurance.ToggleSelectionABModel

public CorpusQualityAssurance.ToggleSelectionABModel(JList list)
Method Detail

setSelectionInterval

public void setSelectionInterval(int index0,
                                 int index1)
Specified by:
setSelectionInterval in interface ListSelectionModel
Overrides:
setSelectionInterval in class DefaultListSelectionModel

clearSelection

public void clearSelection()
Specified by:
clearSelection in interface ListSelectionModel
Overrides:
clearSelection in class DefaultListSelectionModel

getSelectedValueA

public String getSelectedValueA()

getSelectedValueB

public String getSelectedValueB()