Difference between revisions of "EditorPanePlain"

From Protege Wiki
Jump to: navigation, search
(New page: {{Plugin |PluginType=Slot Widget |ForApplication1=Protege-Frames |ForApplication2=Protege-OWL |ForApplication3=Protege Client-Server |HomepageURL=http://protegewiki.stanford.edu/index.php/...)
 
Line 13: Line 13:
 
|Affiliation1=BMIR - Biomedical Informatics Research
 
|Affiliation1=BMIR - Biomedical Informatics Research
 
|Affiliation2=Stanford University
 
|Affiliation2=Stanford University
|Description=The Slot widget EditorPanePlainWidget supports html text and also has a dynamic hyperlink detector. Unlike EditorPaneWidget, EditorPanePlainWidget does not always write html text to the knowledgebase. It can be used when you want knowledgebase to contain plain text and at the same time want to enable hyperlinks while displaying them.  
+
|Description=The Slot widget EditorPanePlainWidget supports html text and also has a dynamic hyperlink detector. Unlike [http://protegewiki.stanford.edu/index.php/EditorPane EditorPaneWidget], EditorPanePlainWidget does not always write html text to the knowledgebase. It can be used when you want knowledgebase to contain plain text and at the same time want to enable hyperlinks while displaying them.  
 
}}
 
}}
 +
 +
<div style="float:left;">
 +
==Description==
 +
The Slot widget EditorPanePlainWidget supports html text and also has a dynamic hyperlink detector. Unlike EditorPaneWidget, EditorPanePlainWidget does not always write html text to the knowledgebase. It can be used when you want knowledgebase to contain plain text and at the same time want to enable hyperlinks while displaying them. The functionality of this widget becomes clear from the example.
 +
 +
==Example==
 +
Example: Consider the newspaper example which is included with Protégé. Suppose for Class ‘Article’ we want to enable detection of hyperlinks for the slot ‘Text’.
 +
 +
1. Click on ‘Forms’ tab at the top and select the class ‘Article’ in the ‘Form Browser’ on the left. Select EditorPanePlainWidget as the WidgetType for the slot in which you want to enable html and hyperlinks.
 +
 +
[[Image:EditorPanePlainWidget1.jpg]]
 +
 +
2. Switch to the ‘Instances’ tab with class ‘Article’ selected. Select any instance of class ‘Article’ and type the text in the ‘Text’ slot.
 +
 +
[[Image:EditorPaneWidget2.jpg]]
 +
 +
3. You would observe that as you go on typing, the slot automatically detects any hyperlinks that you enter and enables them. When you move the mouse over the links, there is a message which prompts you to follow the link by clicking it. Clicking the link opens it in a separate browser.
 +
 +
==NOTE==
 +
EditorPanePlainWidget by default write plain text to the knowledgebase (like TextAreaWidget) but if it detects that knowledgebase already contains html text for a particular slot, then it leaves the knowledgebase in consistent state by writing html text to the knowledgebase.
 +
 +
 +
==Installation==
 +
 +
EditorPanePlainWidget is bundled with the "full" installation of Protege (versions 3.4 beta 110 and higher).
 +
The source code for EditorPaneWidget is available from the Protege Subversion repository.
 +
 +
 +
</div>

Revision as of 16:04, November 14, 2007

EditorPanePlain

by Tania Tudorache, Vivek Tripathi

The Slot widget EditorPanePlainWidget supports html text and also has a dynamic hyperlink detector. Unlike EditorPaneWidget, EditorPanePlainWidget does not always write html text to the knowledgebase. It can be used when you want knowledgebase to contain plain text and at the same time want to enable hyperlinks while displaying them.

Versions & Compatibility

This section lists available versions of EditorPanePlain.

No version information available.

If you click on the button below to add a new version of EditorPanePlain, you will be asked to define a page title for the new version. Please adhere to the naming convention of EditorPanePlain X.X.X when you define the new page!

Changelog

No version information available.


Description

The Slot widget EditorPanePlainWidget supports html text and also has a dynamic hyperlink detector. Unlike EditorPaneWidget, EditorPanePlainWidget does not always write html text to the knowledgebase. It can be used when you want knowledgebase to contain plain text and at the same time want to enable hyperlinks while displaying them. The functionality of this widget becomes clear from the example.

Example

Example: Consider the newspaper example which is included with Protégé. Suppose for Class ‘Article’ we want to enable detection of hyperlinks for the slot ‘Text’.

1. Click on ‘Forms’ tab at the top and select the class ‘Article’ in the ‘Form Browser’ on the left. Select EditorPanePlainWidget as the WidgetType for the slot in which you want to enable html and hyperlinks.

EditorPanePlainWidget1.jpg

2. Switch to the ‘Instances’ tab with class ‘Article’ selected. Select any instance of class ‘Article’ and type the text in the ‘Text’ slot.

EditorPaneWidget2.jpg

3. You would observe that as you go on typing, the slot automatically detects any hyperlinks that you enter and enables them. When you move the mouse over the links, there is a message which prompts you to follow the link by clicking it. Clicking the link opens it in a separate browser.

NOTE

EditorPanePlainWidget by default write plain text to the knowledgebase (like TextAreaWidget) but if it detects that knowledgebase already contains html text for a particular slot, then it leaves the knowledgebase in consistent state by writing html text to the knowledgebase.


Installation

EditorPanePlainWidget is bundled with the "full" installation of Protege (versions 3.4 beta 110 and higher). The source code for EditorPaneWidget is available from the Protege Subversion repository.