Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.views.data.internal.filter
Class WindowSelectionSelector

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.views.data.internal.filter.WindowSelectionSelector
All Implemented Interfaces:
AdvancedInstanceSelector, InstanceSelector

public class WindowSelectionSelector
extends Object
implements AdvancedInstanceSelector

Instance selector retrieving values from the selection service.

Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Constructor Summary
WindowSelectionSelector(DataSet dataSet)
          Constructor
 
Method Summary
 void addSelectionListener(InstanceSelectionListener listener)
          Add a listener.
 org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)
          Create the selector control.
 void removeSelectionListener(InstanceSelectionListener listener)
          Remove a listener
 void setActivator(org.eclipse.swt.widgets.Button activator)
          Sets the button that activates the selector.
 void showSelection(InstanceSelection is, org.eclipse.swt.graphics.Image image)
          Show the given selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowSelectionSelector

public WindowSelectionSelector(DataSet dataSet)
Constructor

Parameters:
dataSet - the data set
Method Detail

addSelectionListener

public void addSelectionListener(InstanceSelectionListener listener)
Description copied from interface: InstanceSelector
Add a listener. A listener that was added should be informed of the currently selected features by calling InstanceSelectionListener.selectionChanged(TypeDefinition, Iterable)

Specified by:
addSelectionListener in interface InstanceSelector
Parameters:
listener - the listener to add
See Also:
InstanceSelector.addSelectionListener(InstanceSelectionListener)

createControl

public org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)
Description copied from interface: InstanceSelector
Create the selector control. The control must be disposed before creating another one. When the control is disposed, the listeners will be reset

Specified by:
createControl in interface InstanceSelector
Parameters:
parent - the parent composite
Returns:
the feature selector control
See Also:
InstanceSelector.createControl(Composite)

removeSelectionListener

public void removeSelectionListener(InstanceSelectionListener listener)
Description copied from interface: InstanceSelector
Remove a listener

Specified by:
removeSelectionListener in interface InstanceSelector
Parameters:
listener - the listener to remove
See Also:
InstanceSelector.removeSelectionListener(InstanceSelectionListener)

showSelection

public void showSelection(InstanceSelection is,
                          org.eclipse.swt.graphics.Image image)
Show the given selection.

Parameters:
is - the selection to show
image - an image to show for the selection, may be null

setActivator

public void setActivator(org.eclipse.swt.widgets.Button activator)
Description copied from interface: AdvancedInstanceSelector
Sets the button that activates the selector.

Specified by:
setActivator in interface AdvancedInstanceSelector
Parameters:
activator - the activator button
See Also:
AdvancedInstanceSelector.setActivator(Button)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d