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 / First Aid / January 2006

Tip: Looking for answers? Try searching our database.

adding your own styles to Javadoc so that they work automatically?

Thread view: 
Kent Paul Dolan - 03 Jan 2006 21:36 GMT
I've managed to get my own styles into the Javadoc
"package.html" file; even though javadoc nukes the
"<head>...</head>" part of the file; this works when
inserted into the _body_ up toward the top, a bit of a
happy surprise to me, I expected it _had_ to go into
the <head>...</head> part:

<style>
 span.tbd { font-weight: 700; color: red }
 body { background-color: #FFFFFF ; background:
url("http://www.well.com/user/xanthian/images/webback.gif") }
</style>

Well, fine, that's because the original is a *.html
file, making things work fairly naturally.

Things aren't so nice for the *.java files, though.
This definitely does _not_ work at the top of a
*.java file to accomplish the same two style
declarations:

/**
* <style>
*   span.tbd { font-weight: 700; color: red }
*   body { background-color: #FFFFFF ; background:
url("http://www.well.com/user/xanthian/images/webback.gif") }
* </style>
*/

[Excuse if moronic Google Groups has probably
wrapped the "body" line, that's supposed to be all
one line in both cases.]

Is there some easy way to make this work, so that I
can have my Javadocs pages decorated with my
favorite spiderweb background design, without having
to edit by hand the stylesheet.css that javadoc() emits,
after running javadoc(), _every single time_ I run
javadoc() (which is many times an hour when I'm
working on cleaning up the javadoc output, and so is
an insufferable nuisance)?

IMWTK

xanthian.
Kent Paul Dolan - 03 Jan 2006 21:45 GMT
> Things aren't so nice for the *.java files, though.
> This definitely does _not_ work at the top of a
[quoted text clipped - 8 lines]
>  * </style>
>  */

And promptly found the answer to my own question.
The above doesn't work because I put the style
declarations into a Javadoc comment that wasn't
attached to anything documentable, just "floating
out in space" at the top of the file, and so
ignored, just as the Javadoc Reference Manual page
tells me javadoc() would do.

When I moved the style declaration into the Javadoc
comment for the class declaration, I got exactly the
spiderweb-on-the-web-pun background I craved.

Sorry for the too-soon query.

xanthian.


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.