Interface ElementSelectionManager
- 
- All Superinterfaces:
 GenericObservableManager<ElementSelectionManagerListener>
- All Known Implementing Classes:
 ElementSelectionManagerImpl
public interface ElementSelectionManager extends GenericObservableManager<ElementSelectionManagerListener>
Keeps track of all actually selected elements of a model. Each gui element which wants to change the selected elements can do this with the provide methods. Elements which want to get notified on changes can add a listener to this class. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description cern.accsoft.steering.jmad.domain.elem.ElementgetSelectedElement()Returns the element which was last selected.java.util.List<cern.accsoft.steering.jmad.domain.elem.Element>getSelectedElements()returns all the selected elements in the order as they appear in the sequence.voidsetSelectedElements(java.util.List<cern.accsoft.steering.jmad.domain.elem.Element> selectedElements, cern.accsoft.steering.jmad.domain.elem.Element mostRecentlySelectedElement)Sets the given elements as the actually selected ones- 
Methods inherited from interface cern.accsoft.steering.jmad.gui.manage.GenericObservableManager
addListener, removeListener 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getSelectedElements
java.util.List<cern.accsoft.steering.jmad.domain.elem.Element> getSelectedElements()
returns all the selected elements in the order as they appear in the sequence. The order is independent of the time when selecting the individual elements.- Returns:
 - all the actually selected elements
 
 
- 
getSelectedElement
cern.accsoft.steering.jmad.domain.elem.Element getSelectedElement()
Returns the element which was last selected.- Returns:
 - the most recently selected element
 
 
- 
setSelectedElements
void setSelectedElements(java.util.List<cern.accsoft.steering.jmad.domain.elem.Element> selectedElements, cern.accsoft.steering.jmad.domain.elem.Element mostRecentlySelectedElement)Sets the given elements as the actually selected ones- Parameters:
 selectedElements- all the selected elements (migth be an empty list)mostRecentlySelectedElement- the element which was most recently selected. might benull
 
 - 
 
 -