Menu Content/Inhalt
Startseite arrow Architecture arrow CodeSelectorTarget
CodeSelectorTarget Drucken
The CodeSelectorTarget system allows to do selectios from selector views using the keyboard as an alternative to Drag'n'Drop.
The usual way to add objects to lists in Elexis is Drag'n'Drop. This requires the usage of the mouse. Some users might prefer the keyboard for selecting objects.
 
When a selection view is openend (e. g. Leistungen or Diagnosis), the view doesn't know about its caller. Actually, it's not really opened, but just brought to the foreground and focused (maybe it's first loaded if it hasn't yet been used so far). The CodeSelectorTarget system allows a caller to announce that he wants to receive an object. When the caller has registered itself at GlobalEvents (using the method setCodeSelectorTarget()), and the user selects an object in the selection view,  the caller is informed about the selection and can handle it as if it would have been dropped
 
After registration as a CodeSelectorTarget, the caller should visually mark himself so that the user knows where selected objects will end up. If the selection operation has finished, the caller will be informed and can remove the visual mark.
 
To avoid confusion, the selection operation is finished as soon as the selection view looses the focus.
 
The caller can decide if the selection operation should should finish after one object has been selected, or if it should be possible to select multiple objects in one operation.
 
See the interface ICodeSelectionTarget for more information.
 
 
< zurück