|
Re: styledText and other [message #105231 is a reply to message #105113] |
Tue, 16 September 2008 18:35 |
Eclipse User |
|
|
|
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.
>
|
|
|
Powered by
FUDForum. Page generated in 0.03247 seconds