@@ -4,7 +4,7 @@ This page gives an introduction into the core functionality of the text widget w
...
@@ -4,7 +4,7 @@ This page gives an introduction into the core functionality of the text widget w
## The Concept
## The Concept
Starting at a blank page, the goal is to create a text editor, that is able to display text, wrap it into new lines if wanted and display annotations using different stylings. This all should be based around the UIMA **CAS** (Common Analysis Subject). The final product should be capable of displaying the text and all sorts of different stylings:
Starting at a blank page, the goal is to create a text editor, that is able to display text, wrap it into new lines if wanted and display annotations using different stylings. This all should be based around the UIMA ```CAS``` (Common Analysis Subject). The final product should be capable of displaying the text and all sorts of different stylings:
...
@@ -19,7 +19,7 @@ and into the package
...
@@ -19,7 +19,7 @@ and into the package
```
```
de.uniwue.mk.athen.textwidget.widget
de.uniwue.mk.athen.textwidget.widget
```
```
In there you can find the main class which displays the text widget, it is called *ATHENEditorWidget*
In there you can find the main class which displays the text widget, it is called ```ATHENEditorWidget```
<hr><hr>
<hr><hr>
...
@@ -28,8 +28,9 @@ After opening this class you can immediately study its signature
...
@@ -28,8 +28,9 @@ After opening this class you can immediately study its signature
```java
```java
publicclassATHENEditorWidgetextendsCanvas{
publicclassATHENEditorWidgetextendsCanvas{
```
```
The class extends the SWT Canvas Class. A Canvas represents a primitive widget, as opposed to a composite which is also a widget, but created of more than a single widget internally (so a completely new widget extends Canvas while a collection of Buttons extends Composite!)
The class extends the SWT ```Canvas``` Class. A ```Canvas``` represents a primitive widget, as opposed to a ```Composite``` which is also a widget, but created of more than a single widget internally (so a completely new widget extends ```Canvas``` while a collection of Buttons extends ```Composite```!)
There is no real difference in the usage of the class whether its extends Composite or Canvas.
There is no real difference in the usage of the class whether its extends ```Composite``` or ```Canvas```.