Changes between Version 6 and Version 7 of TEXT_RESOURCE_HTML_R0


Ignore:
Timestamp:
06/23/09 20:28:27 (16 years ago)
Author:
diana
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TEXT_RESOURCE_HTML_R0

    v6 v7  
    2424 
    2525== Implementation idea == 
    26 Use HTMLEditorKit.ParserCallback from the javax.swing.text.html package to create a Parser for the html text. 
     26Use HTMLEditorKitfrom the javax.swing.text.html package to create HTMLDocument. 
    2727 
    2828== Related == 
     
    3636 
    3737= Design = 
    38 ^(Describe your design here.)^ 
     38Create a new class InsertHtmlItem that extends AppMenuItem class to provide the html item in the insert menu. 
     39Create a new class HtmlUtility that helps applying the styles from the html document to the resulting HotText.The following methods helps acheiving this: 
     40 * applyStyles - applies the styles from a given view to the HotText attribute (recursively). 
     41 * getCorrespondingVal - gets the corresponding CommonAttr for a  given html attribute and value. 
     42Create HtmlLogic.USER_ADD_HTML_FRAME - the logic for the adding of the html document. It uses the  HTMLEditorKit to create a HTMLDocument.  
     43The result is a HotTextBookResource.  
    3944 
    4045= Implementation =