|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRangeHandler
An IRangeHandler can add, display and act upon clicking on SSDRanges. It registers itself for one ore more types of SSDRanges It can display supported SSDRanges on zero or more output types An IRangeHandler is connected to the framework with the ExtensionPoint ch.elexis.ServiceRegistry as a Service with the name "TextContentsExtension".
Nested Class Summary | |
---|---|
static class |
IRangeHandler.OUTPUT
|
Method Summary | |
---|---|
java.lang.String |
attached(IRichTextDisplay ird)
|
boolean |
canRender(java.lang.String rangeType,
IRangeHandler.OUTPUT outputType)
Ask whether this IRangeRenderer can create output of a specific type |
java.lang.Object |
doRender(SSDRange range,
IRangeHandler.OUTPUT outputType,
IRichTextDisplay display)
creaste a visual representation of a Range in a given type |
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 target,
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 |
Method Detail |
---|
java.lang.String attached(IRichTextDisplay ird)
boolean canRender(java.lang.String rangeType, IRangeHandler.OUTPUT outputType)
rangeType
- the type of the Range to renderoutputType
- teh type of desired output
java.lang.Object doRender(SSDRange range, IRangeHandler.OUTPUT outputType, IRichTextDisplay display) throws ElexisException
range
- the Range to renderoutputType
- the desired type of output
ElexisException
boolean onSelection(Composite target, SSDRange range)
range
- the range that was selected by the user
boolean inserted(SSDRange range, IPersistentObject object, java.lang.Object context)
range
- the SSDRange describing the place of insertioncontext
- the context the range was inserted into
void removed(SSDRange range, java.lang.Object context)
range
- the range that was removedcontext
- the context it was removed from
|
Elexis API documentationVersion 2.1.6 as of December 11 2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |