Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.actions
Interface ICodeSelectorTarget

All Known Implementing Classes:
PersistentObjectDropTarget

public interface ICodeSelectorTarget

An ICodeSelectorTarget can receive objects from CodeSelector lists when they are selected. GlobalEvents allows to register exactly one ICodeSelectorTarget at a time. This one receives the selected target. A ICodeSelectorTarget should register itself to GlobalEvents and then activate the appropriate view for code selection. It should unregister itself as soon as possible. Since the code selection itself is an asynchronous process, it's difficult to say which is the right place for this. A good idea would be when the view is hidden and when the view gets the focus.

Author:
Daniel Lutz

Method Summary
 void codeSelected(IPersistentObject obj)
          Callback to send the selected object to the ICodeSelectorTarget.
 java.lang.String getName()
          Return a human readable name of the target, e. g. the name of a View.
 void registered(boolean registered)
          Callback to tell the ICodeSelectorTarget that it has been registered or unregistered.
 

Method Detail

getName

java.lang.String getName()
Return a human readable name of the target, e. g. the name of a View. This name is presented to the user.

Returns:
the name of the target

codeSelected

void codeSelected(IPersistentObject obj)
Callback to send the selected object to the ICodeSelectorTarget.

Parameters:
obj - the selected object

registered

void registered(boolean registered)
Callback to tell the ICodeSelectorTarget that it has been registered or unregistered. The receiver should highlight the corresponding area accordingly.


Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis