==== Controller for ExtraText ====
The ExtraController is build around a specific control created for Adichatz.
This is a FieldController that means that it can be linked to the databinding service.
==== Control ====
The control org.adichatz.engine.widgets.extratext.ExtraText was developped by Adichatz based on [[http://www.javacodegeeks.com/2012/07/richtext-editor-component-for-swt-based.html|Alonso Dominguez's work]].\\
A ExtraText widget is a small editor widget managing bold, underline, hyperlink around a [[http://www.eclipse.org/articles/StyledText%201/article1.html|StyledText]] widget.
* Add Bold, Italic, underline, strikethrough feature to character.
* Cut, Copy, Paste.
* Add Hyperlink (browser or mail access).
* Buttons can be added after ExtraText is instantiated.
* Creation of a ExtraText controller composition of the ExtraText widget.
{{:controllers:extratext-hyperlink.jpg?350 |ExtraText control}}
==== Usage: ====
== Code ==
getComposite().setEnabled(null != getEntity());
getComposite().setEnabled(null != getEntity());
getControl().setData("ONE_TO_ONE", #ENTITY_MM(adi://myproject/model.film/FilmMM).getLazyFieldMap().get("filmText"));
== Overview ==
{{:controllers:extratext.png |ExtraText - Store description field as String}}
\\
== Explanations ==
^ ** addRefreshItem="true"**:|Add a refresh button to retrieve previous value when changes had occured.|
^ ** layoutData="sg bottom"**:|description ExtraText control and image imageViewer control have same size.|
^ ** noLabel**:|No label are affected to control description. By default, when a field control is linked to a model field (here property="description"), a label control is automatically created.|