Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » styledText and other
styledText and other [message #105113] Tue, 16 September 2008 14:15 Go to next message
Sergey N. Yashin is currently offline Sergey N. YashinFriend
Messages: 44
Registered: July 2009
Member
Hello!

I do understand that SWT class StyledText will not be ported in RAP?

1. In this regard, I have a question - what can I use to replace
StyledText?
2. Is it possible to insert in controls my html tags? i.e. for example:
new SomeControl(...).setInnerHTML("<b>My html</b>");

Thank you very much.
Re: styledText and other [message #105231 is a reply to message #105113] Tue, 16 September 2008 18:35 Go to previous message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi Sergei,

please see my comments below.

HTH
Rüdiger

Sergei wrote:
> Hello!
>
> I do understand that SWT class StyledText will not be ported in RAP?
>
> 1. In this regard, I have a question - what can I use to replace
> StyledText?
Please see this post:
http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg01930.html

> 2. Is it possible to insert in controls my html tags? i.e. for example:
> new SomeControl(...).setInnerHTML("<b>My html</b>");
RAP aims to shield developers from web-specific details. Therefore
there is no setInnerHTML() or the like.
Depending on what you actually want to achieve here are some pointers:
* the Link widget, that allows you to display text with links much
the same as hyper-links.
* the Browser widget, that displays arbitrary HTML in an IFRAME
* a custom widget could provide setInnerHTML() that just passes the
code as-is to the client. (see here for a tutorial on custom widgets
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.rap.help/help/html/advanced/custom-widget.html)

>
> Thank you very much.
>
Previous Topic:Rich text editor
Next Topic:Binary Compatibility of org.eclipse.swt.events.SelectionEvent
Goto Forum:
  


Current Time: Fri Apr 26 16:08:34 GMT 2024

Powered by FUDForum. Page generated in 0.03247 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top