Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.medshare.ebm
Class SearchAction

java.lang.Object
  extended by Action
      extended by ch.medshare.ebm.SearchAction
All Implemented Interfaces:
IRangeHandler

public class SearchAction
extends Action
implements IRangeHandler


Nested Class Summary
 
Nested classes/interfaces inherited from interface ch.elexis.text.IRangeHandler
IRangeHandler.OUTPUT
 
Field Summary
static java.lang.String ID
           
 
Constructor Summary
SearchAction()
           
 
Method Summary
 void addHandlerListener(IHandlerListener handlerListener)
           
 java.lang.String attached(IRichTextDisplay tf)
           
 boolean canRender(java.lang.String rangeType, IRangeHandler.OUTPUT outputType)
          Ask whether this IRangeRenderer can create output of a specific type
 void dispose()
           
 java.lang.Object doRender(SSDRange range, IRangeHandler.OUTPUT outputType, IRichTextDisplay display)
          creaste a visual representation of a Range in a given type
 java.lang.Object execute(ExecutionEvent event)
           
 boolean inserted(SSDRange range, IPersistentObject object, java.lang.Object context)
          The user inserted an Object into a context (e.g. drag&drop)
 boolean onSelection(Composite comp, SSDRange range)
          The user double-clicked or selected the specified range
 void removed(SSDRange range, java.lang.Object context)
          The user removed a Range from a context
 void removeHandlerListener(IHandlerListener handlerListener)
           
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values
Constructor Detail

SearchAction

public SearchAction()
Method Detail

attached

public java.lang.String attached(IRichTextDisplay tf)
Specified by:
attached in interface IRangeHandler

run

public void run()

dispose

public void dispose()

execute

public java.lang.Object execute(ExecutionEvent event)
                         throws ExecutionException
Throws:
ExecutionException

removeHandlerListener

public void removeHandlerListener(IHandlerListener handlerListener)

addHandlerListener

public void addHandlerListener(IHandlerListener handlerListener)

canRender

public boolean canRender(java.lang.String rangeType,
                         IRangeHandler.OUTPUT outputType)
Description copied from interface: IRangeHandler
Ask whether this IRangeRenderer can create output of a specific type

Specified by:
canRender in interface IRangeHandler
Parameters:
rangeType - the type of the Range to render
outputType - teh type of desired output
Returns:

doRender

public java.lang.Object doRender(SSDRange range,
                                 IRangeHandler.OUTPUT outputType,
                                 IRichTextDisplay display)
                          throws ElexisException
Description copied from interface: IRangeHandler
creaste a visual representation of a Range in a given type

Specified by:
doRender in interface IRangeHandler
Parameters:
range - the Range to render
outputType - the desired type of output
Returns:
an output specific result.
Throws:
ElexisException

onSelection

public boolean onSelection(Composite comp,
                           SSDRange range)
Description copied from interface: IRangeHandler
The user double-clicked or selected the specified range

Specified by:
onSelection in interface IRangeHandler
range - the range that was selected by the user
Returns:

inserted

public boolean inserted(SSDRange range,
                        IPersistentObject object,
                        java.lang.Object context)
Description copied from interface: IRangeHandler
The user inserted an Object into a context (e.g. drag&drop)

Specified by:
inserted in interface IRangeHandler
Parameters:
range - the SSDRange describing the place of insertion
context - the context the range was inserted into
Returns:
if this handler consumed the object

removed

public void removed(SSDRange range,
                    java.lang.Object context)
Description copied from interface: IRangeHandler
The user removed a Range from a context

Specified by:
removed in interface IRangeHandler
Parameters:
range - the range that was removed
context - the context it was removed from

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis