|
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 |
java.lang.ObjectComposite
ch.elexis.text.BaseRichTextDisplay
public class BaseRichTextDisplay
Base class for Views to display SimpleStructuredDocuments. The BaseRichTextDisplay does propagate user input into the underlying SimpleStructuredDocument and does reflect changes of the SSD to the UI.
Field Summary | |
---|---|
ElexisEventListenerImpl |
eeli_user
|
IMenuListener |
globalMenuListener
|
Constructor Summary | |
---|---|
BaseRichTextDisplay(Composite parent)
Instantiates a new base rich text display. |
Method Summary | |
---|---|
void |
addFocusListener(FocusListener fl)
|
void |
addKeyListener(KeyListener kl)
|
void |
addMenuListener(IMenuListener ml)
Add a listener to the context menu of the control. |
void |
connectGlobalActions(IViewSite site)
Connect global actions. |
void |
disconnectGlobalActions(IViewSite site)
Disconnect global actions. |
GenericRange |
getCaretRange()
find the position of the caret and the selected Range (if any) |
SimpleStructuredDocument |
getContents()
Gets the contents. |
int |
getTextLocationAt(int x,
int y)
Find the caret position matching a given coordinate in the control |
java.lang.String |
getWordUnderCursor()
Gibt das Wort des Inhalts zurück das durch den Cursor berührt wird. |
void |
makeActions()
Make actions. |
void |
putCaretToEnd()
|
void |
removeFocusListener(FocusListener fl)
|
void |
removeKeyListener(KeyListener kl)
|
void |
removeMenuListener(IMenuListener ml)
remove a Menu listener |
void |
setCaretRange(GenericRange gr)
|
void |
setColors(Color foreground,
Color background)
Sets the colors. |
boolean |
setFocus()
|
void |
setReadOnly(boolean bReadOnly)
Set read only state of the display |
void |
setSelectedRange(GenericRange gr)
Sets the selected range. |
void |
setText(java.lang.String text)
Shortcut fot getContents().loadText(text, false) |
void |
updateDisplay()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public IMenuListener globalMenuListener
public ElexisEventListenerImpl eeli_user
Constructor Detail |
---|
public BaseRichTextDisplay(Composite parent)
parent
- the parentMethod Detail |
---|
public void setReadOnly(boolean bReadOnly)
bReadOnly
- true will set read only and darken the background.public void setText(java.lang.String text)
text
- the new text (can be plaintext or XML compliant to the SSD Schema or the Samdas
Schemapublic void addFocusListener(FocusListener fl)
public void removeFocusListener(FocusListener fl)
public void addKeyListener(KeyListener kl)
public void removeKeyListener(KeyListener kl)
public SimpleStructuredDocument getContents()
getContents
in interface IRichTextDisplay
IRichTextDisplay.getContents()
public void addMenuListener(IMenuListener ml)
IRichTextDisplay
addMenuListener
in interface IRichTextDisplay
public void removeMenuListener(IMenuListener ml)
IRichTextDisplay
removeMenuListener
in interface IRichTextDisplay
public boolean setFocus()
public void setColors(Color foreground, Color background)
foreground
- the foregroundbackground
- the backgroundpublic void connectGlobalActions(IViewSite site)
site
- the sitepublic void disconnectGlobalActions(IViewSite site)
site
- the sitepublic java.lang.String getWordUnderCursor()
String.empty
falls kein
Wort berührt wirdpublic GenericRange getCaretRange()
IRichTextDisplay
getCaretRange
in interface IRichTextDisplay
public void setSelectedRange(GenericRange gr)
gr
- the new selected rangepublic int getTextLocationAt(int x, int y)
IRichTextDisplay
getTextLocationAt
in interface IRichTextDisplay
x
- number of pixels from the left upper corner to the righty
- number of pixels from the left upper corner down
public void setCaretRange(GenericRange gr)
setCaretRange
in interface IRichTextDisplay
public void makeActions()
public void updateDisplay() throws ElexisException
updateDisplay
in interface IRichTextDisplay
ElexisException
public void putCaretToEnd()
|
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 |