Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

inaccessible features (HTMLWriter)

Thread view: 
Andrey Kuznetsov - 10 Nov 2005 20:11 GMT
I wondered why getText() returns an old style HTML (3.2).
After some investigation I found that HTMLWriter has two convert methods.
One of them (convertToHTML40) makes use of modern CSS and another
(convertToHTML32) drops CSS and replaces it with old HTML.

Which method will be choosed depends on variable 'writeCSS' which is
initialiset to false,
has private access and has no getter/setter.

That makes impossible to save new style HTML and also to switch between
WISIWIG and source editing.

Is it a bug?
Or some one just forgot to add getter/setter methods?

Signature

Andrey Kuznetsov
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities

Roedy Green - 10 Nov 2005 22:04 GMT
On Thu, 10 Nov 2005 21:11:51 +0100, "Andrey Kuznetsov"
<spam0@imagero.com.invalid> wrote, quoted or indirectly quoted someone
who said :

>Is it a bug?
>Or some one just forgot to add getter/setter methods?

You can't roll your own convertToHTML like this because
convertToHTML40 is private.  Perhaps they are just getting prepared to
change the definition?

AttributeSet convertToHTML(AttributeSet from, MutableAttributeSet to)
{
       if (to == null) {
           to = convAttr;
       }
       to.removeAttributes(to);
        convertToHTML40(from, to);
       }
       return to;
   }

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.