Class MultiListSelectionAdapter
- java.lang.Object
-
- org.bidib.wizard.mvc.common.view.binding.MultiListSelectionAdapter
-
- All Implemented Interfaces:
ListSelectionModel
public class MultiListSelectionAdapter extends Object implements ListSelectionModel
User: Felix Leipold Date: 20.10.2005 Adapts a ListModel holding the and an ObservableList to Swings ListSelectionModel.
-
-
Field Summary
Fields Modifier and Type Field Description org.bidib.wizard.mvc.common.view.binding.MultiListSelectionAdapter.BindingListenerbindingListenerorg.bidib.wizard.mvc.common.view.binding.MultiListSelectionAdapter.SwingSelectionListenerswingSelectionListener-
Fields inherited from interface javax.swing.ListSelectionModel
MULTIPLE_INTERVAL_SELECTION, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
-
-
Constructor Summary
Constructors Constructor Description MultiListSelectionAdapter(ListModel list, com.jgoodies.common.collect.ObservableList selection)MultiListSelectionAdapter(MultiSelectionInList multiSelection)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.ListSelectionModel
getSelectedIndices, getSelectedItemsCount
-
-
-
-
Constructor Detail
-
MultiListSelectionAdapter
public MultiListSelectionAdapter(ListModel list, com.jgoodies.common.collect.ObservableList selection)
- Parameters:
list- from which the user may chooseselection- the model for the selection
-
MultiListSelectionAdapter
public MultiListSelectionAdapter(MultiSelectionInList multiSelection)
- Parameters:
multiSelection- the model for the selection
-
-
Method Detail
-
getAnchorSelectionIndex
public int getAnchorSelectionIndex()
- Specified by:
getAnchorSelectionIndexin interfaceListSelectionModel
-
getLeadSelectionIndex
public int getLeadSelectionIndex()
- Specified by:
getLeadSelectionIndexin interfaceListSelectionModel
-
getMaxSelectionIndex
public int getMaxSelectionIndex()
- Specified by:
getMaxSelectionIndexin interfaceListSelectionModel
-
getMinSelectionIndex
public int getMinSelectionIndex()
- Specified by:
getMinSelectionIndexin interfaceListSelectionModel
-
getSelectionMode
public int getSelectionMode()
- Specified by:
getSelectionModein interfaceListSelectionModel
-
clearSelection
public void clearSelection()
- Specified by:
clearSelectionin interfaceListSelectionModel
-
getValueIsAdjusting
public boolean getValueIsAdjusting()
- Specified by:
getValueIsAdjustingin interfaceListSelectionModel
-
isLeadAnchorNotificationEnabled
public boolean isLeadAnchorNotificationEnabled()
-
isSelectionEmpty
public boolean isSelectionEmpty()
- Specified by:
isSelectionEmptyin interfaceListSelectionModel
-
setAnchorSelectionIndex
public void setAnchorSelectionIndex(int anchorIndex)
- Specified by:
setAnchorSelectionIndexin interfaceListSelectionModel
-
setLeadSelectionIndex
public void setLeadSelectionIndex(int leadIndex)
- Specified by:
setLeadSelectionIndexin interfaceListSelectionModel
-
setSelectionMode
public void setSelectionMode(int selectionMode)
- Specified by:
setSelectionModein interfaceListSelectionModel
-
isSelectedIndex
public boolean isSelectedIndex(int index)
- Specified by:
isSelectedIndexin interfaceListSelectionModel
-
addSelectionInterval
public void addSelectionInterval(int index0, int index1)- Specified by:
addSelectionIntervalin interfaceListSelectionModel
-
removeIndexInterval
public void removeIndexInterval(int index0, int index1)- Specified by:
removeIndexIntervalin interfaceListSelectionModel
-
removeSelectionInterval
public void removeSelectionInterval(int index0, int index1)- Specified by:
removeSelectionIntervalin interfaceListSelectionModel
-
setSelectionInterval
public void setSelectionInterval(int index0, int index1)- Specified by:
setSelectionIntervalin interfaceListSelectionModel
-
insertIndexInterval
public void insertIndexInterval(int index, int length, boolean before)- Specified by:
insertIndexIntervalin interfaceListSelectionModel
-
setLeadAnchorNotificationEnabled
public void setLeadAnchorNotificationEnabled(boolean flag)
-
setValueIsAdjusting
public void setValueIsAdjusting(boolean isAdjusting)
- Specified by:
setValueIsAdjustingin interfaceListSelectionModel
-
getListSelectionListeners
public ListSelectionListener[] getListSelectionListeners()
-
addListSelectionListener
public void addListSelectionListener(ListSelectionListener l)
- Specified by:
addListSelectionListenerin interfaceListSelectionModel
-
removeListSelectionListener
public void removeListSelectionListener(ListSelectionListener l)
- Specified by:
removeListSelectionListenerin interfaceListSelectionModel
-
getListeners
public EventListener[] getListeners(Class<EventListener> listenerType)
-
-