ch.elexis.text
Class TextRangeHandlerImpl
java.lang.Object
ch.elexis.text.TextRangeHandlerImpl
- All Implemented Interfaces:
- IRangeHandler
public class TextRangeHandlerImpl
- extends java.lang.Object
- implements IRangeHandler
Field Summary |
static java.lang.String |
TYPE_ID
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_ID
public static final java.lang.String TYPE_ID
- See Also:
- Constant Field Values
TextRangeHandlerImpl
public TextRangeHandlerImpl()
attached
public java.lang.String attached(IRichTextDisplay ird)
- Specified by:
attached
in interface IRangeHandler
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 renderoutputType
- 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 renderoutputType
- the desired type of output
- Returns:
- an output specific result.
- Throws:
ElexisException
onSelection
public boolean onSelection(Composite target,
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 insertioncontext
- 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 removedcontext
- the context it was removed from
Copyright 2005-2011 by Gerry Weirich, Elexis