de.cau.cs.kieler.kiml.grana.ui
Class AnalysisSelectionViewer

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by de.cau.cs.kieler.kiml.grana.ui.AnalysisSelectionViewer
All Implemented Interfaces:
ISelectionChangedListener, Drawable

public class AnalysisSelectionViewer
extends Composite
implements ISelectionChangedListener

A component which displays analysis categories in a given collection and lets the user select any number of analyses specifed in these categories.

Rating red

Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
view
 
Constructor Summary
AnalysisSelectionViewer(Composite parent, List<AnalysisCategory> theCategories, List<AbstractInfoAnalysis> selectedAnalyses)
          The constructor for an AnalysisSelectionViewer.
 
Method Summary
 void addSelectionListener(ISelectionListener listener)
          Adds a selection listener.
 List<AbstractInfoAnalysis> getSelectedAnalyses()
          Returns the selected analyses.
 void removeSelectionListener(ISelectionListener listener)
          Removes a selection listener.
 void selectionChanged(SelectionChangedEvent event)
          
 
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnalysisSelectionViewer

public AnalysisSelectionViewer(Composite parent,
                               List<AnalysisCategory> theCategories,
                               List<AbstractInfoAnalysis> selectedAnalyses)
The constructor for an AnalysisSelectionViewer.

Parameters:
parent - the parent composite
theCategories - the categories
selectedAnalyses - the pre-selected analyses
Method Detail

getSelectedAnalyses

public List<AbstractInfoAnalysis> getSelectedAnalyses()
Returns the selected analyses.

Returns:
the selected analyses

addSelectionListener

public void addSelectionListener(ISelectionListener listener)
Adds a selection listener.

Parameters:
listener - the selection listener

removeSelectionListener

public void removeSelectionListener(ISelectionListener listener)
Removes a selection listener.

Parameters:
listener - the selection listener

selectionChanged

public void selectionChanged(SelectionChangedEvent event)

Specified by:
selectionChanged in interface ISelectionChangedListener