|
From: Wolfgang L. <w_l...@us...> - 2004-12-17 08:18:27
|
Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/portal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7337/src/org/cobricks/portal Modified Files: PortalManagerImpl.java Log Message: Added some more functional documentation Index: PortalManagerImpl.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/portal/PortalManagerImpl.java,v retrieving revision 1.56 retrieving revision 1.57 diff -u -d -r1.56 -r1.57 --- PortalManagerImpl.java 15 Dec 2004 17:26:52 -0000 1.56 +++ PortalManagerImpl.java 17 Dec 2004 08:18:06 -0000 1.57 @@ -356,13 +356,15 @@ } /** - * This method adds glossary information to the HTML content. + * Add glossary information to the HTML content + * This method adds descriptive HTML span tags for predefined terms which are + * displayed when the user drags the mouse over the terms. * Therefore, the item class "glossaryitem" has to exist and be filled - * with items where the title is the term and the description the - * explanation of a term. Furthermore, the state has to be set to "1". + * with items where the title is the term and the description is the + * explanation of a term. Furthermore, the state has to be set to "1" (= published). * @param htmlText The HTML text to which glossary information should be added - * @return The htmlText enriched by glossary (the terms are underlined and - * marked by an information sign. + * @return The htmlText enriched by glossary (the terms are underlined and + * display information when the mouse is dragged over them. */ private String addGlossaryInfo(String htmlText){ // get all published (state=1) glossary items @@ -380,7 +382,7 @@ { Pattern pattern = Pattern.compile(nextTerm); Matcher matcher = pattern.matcher(htmlText); - htmlText = matcher.replaceAll("<u class=\"dottedline\">"+nextTerm+"</u> <img width=12 height=12 src=\"/images/info.gif\" border=\"0\" alt=\""+nextDesc+"\" />"); + htmlText = matcher.replaceAll("<span title=\""+nextDesc+"\"><u class=\"dottedline\">"+nextTerm+"</u></span>"); } } return htmlText; |