Difference between revisions of "EditorPane"

From Protege Wiki
Jump to: navigation, search
Line 1: Line 1:
{{VersionOfPlugin
 
|VersionOf=EditorPane
 
|Number=1
 
|LastUpdate=November 14, 2007
 
|CompatibleWith1=Protege 3.4 Beta 110
 
|Changelog=see page for more details
 
}}
 
 
 
{{Plugin
 
{{Plugin
 
|PluginType=Slot Widget
 
|PluginType=Slot Widget
Line 20: Line 12:
 
}}
 
}}
  
 +
{{VersionOfPlugin
 +
|VersionOf=EditorPane
 +
|Number=1
 +
|LastUpdate=November 14, 2007
 +
|CompatibleWith1=Protege 3.4 Beta 110
 +
|Changelog=see page for more details
 +
}}
  
 +
<div style="float:left;">
 +
==Description==
 +
The Slot widget EditorPaneWidget supports html text and also has a dynamic hyperlink detector. 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’.
 
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’.
  

Revision as of 16:32, November 14, 2007

EditorPane

by vivekyt@stanford.edu

Type Slot Widget
Author(s) vivekyt@stanford.edu
Last Update November 14, 2007
License Mozilla Public License (MPL)
Homepage EditorPane website
For Application
Topic(s)
Affiliation

The Slot widget EditorPaneWidget supports html text and also has a dynamic hyperlink detector. The functionality of this widget becomes clear from the example.

Versions & Compatibility

This section lists available versions of EditorPane.

No version information available.

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

Changelog

No version information available.


EditorPane 1

Version 1
Plugin EditorPane
Last update November 14, 2007
Download not available
Compatible Protege Version

Dependency

The following dependencies exist for EditorPane 1:

not available

Changelog

see page for more details


Description

The Slot widget EditorPaneWidget supports html text and also has a dynamic hyperlink detector. 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 EditorPaneWidget as the WidgetType for the slot in which you want to enable html and hyperlinks.

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

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: EditorPaneWidget writes HTML data to the knowledgebase.

For a particular slot, if you switch from TextAreaWidget (plain text) to EditorPaneWidget (html text) then this html text would be stored in the knowledgebase. If you don’t want html to be written to the knowledgebase, use EditorPanePlainWidget instead of EditorPaneWidget.