org.gvsig.fmap.mapcontrol.dal.feature.swing
Class FeatureSelectionModel
java.lang.Object
org.gvsig.fmap.mapcontrol.dal.feature.swing.FeatureSelectionModel
- All Implemented Interfaces:
- ListSelectionModel, Observer
public class FeatureSelectionModel
- extends Object
- implements ListSelectionModel, Observer
- Author:
- 2010- César Ordiñana - gvSIG team
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listenerList
protected EventListenerList listenerList
FeatureSelectionModel
public FeatureSelectionModel(FeatureTableModel featureTableModel)
throws org.gvsig.fmap.dal.exception.DataException
- Creates a new
FeatureSelectionModel with a
FeatureTableModel used to get the Features by position in
the table.
- Parameters:
featureTableModel - to get Features from
- Throws:
org.gvsig.fmap.dal.exception.DataException - if there is an error getting the store selection
getAnchorSelectionIndex
public int getAnchorSelectionIndex()
- Specified by:
getAnchorSelectionIndex in interface ListSelectionModel
getLeadSelectionIndex
public int getLeadSelectionIndex()
- Specified by:
getLeadSelectionIndex in interface ListSelectionModel
getMaxSelectionIndex
public int getMaxSelectionIndex()
- Specified by:
getMaxSelectionIndex in interface ListSelectionModel
getMinSelectionIndex
public int getMinSelectionIndex()
- Specified by:
getMinSelectionIndex in interface ListSelectionModel
insertIndexInterval
public void insertIndexInterval(int index,
int length,
boolean before)
- Specified by:
insertIndexInterval in interface ListSelectionModel
removeIndexInterval
public void removeIndexInterval(int index0,
int index1)
- Specified by:
removeIndexInterval in interface ListSelectionModel
setAnchorSelectionIndex
public void setAnchorSelectionIndex(int index)
- Specified by:
setAnchorSelectionIndex in interface ListSelectionModel
setLeadSelectionIndex
public void setLeadSelectionIndex(int index)
- Specified by:
setLeadSelectionIndex in interface ListSelectionModel
addSelectionInterval
public void addSelectionInterval(int index0,
int index1)
- Specified by:
addSelectionInterval in interface ListSelectionModel
setSelectionInterval
public void setSelectionInterval(int index0,
int index1)
- Specified by:
setSelectionInterval in interface ListSelectionModel
removeSelectionInterval
public void removeSelectionInterval(int index0,
int index1)
- Specified by:
removeSelectionInterval in interface ListSelectionModel
clearSelection
public void clearSelection()
- Specified by:
clearSelection in interface ListSelectionModel
isSelectedIndex
public boolean isSelectedIndex(int index)
- Specified by:
isSelectedIndex in interface ListSelectionModel
isSelectionEmpty
public boolean isSelectionEmpty()
- Specified by:
isSelectionEmpty in interface ListSelectionModel
getValueIsAdjusting
public boolean getValueIsAdjusting()
- Specified by:
getValueIsAdjusting in interface ListSelectionModel
setValueIsAdjusting
public void setValueIsAdjusting(boolean valueIsAdjusting)
- Specified by:
setValueIsAdjusting in interface ListSelectionModel
getSelectionMode
public int getSelectionMode()
- Specified by:
getSelectionMode in interface ListSelectionModel
setSelectionMode
public void setSelectionMode(int selectionMode)
- Specified by:
setSelectionMode in interface ListSelectionModel
addListSelectionListener
public void addListSelectionListener(ListSelectionListener listener)
- Specified by:
addListSelectionListener in interface ListSelectionModel
removeListSelectionListener
public void removeListSelectionListener(ListSelectionListener listener)
- Specified by:
removeListSelectionListener in interface ListSelectionModel
update
public void update(Observable observable,
Object notification)
- Specified by:
update in interface Observer
fireValueChanged
protected void fireValueChanged(int firstIndex,
int lastIndex,
boolean isAdjusting)
- Parameters:
firstIndex - the first index in the intervallastIndex - the last index in the intervalisAdjusting - true if this is the final change in a series of adjustments- See Also:
EventListenerList
Copyright © 2004-2013 gvSIG. All Rights Reserved.