1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 | package Torello.JavaDoc; /** * A class for encapsulating all four JavaDoc Upgrader {@code '.css'} Files, each of which has been * saved, in entirety, as a simple Java {@code String}. * * <EMBED CLASS='external-html' DATA-FILE-ID=CSS_FILES> */ public class CSSFiles implements java.io.Serializable { /* <EMBED CLASS='external-html' DATA-FILE-ID=SVUID> */ protected static final long serialVersionUID = 1; // ******************************************************************************************** // ******************************************************************************************** // Just the File-Name's of the CSS-Files // ******************************************************************************************** // ******************************************************************************************** /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_COLORS_F> * @see #colorsCSS */ public static final String COLORS_CSS_FILENAME = "Colors.css"; /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_BASE64_ENCODED_F> * @see #colorsCSS */ public static final String BASE64_ENCODED_CSS_FILENAME = "Base64-Encoded.css"; /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_ORIGINAL_WIDGETS_F> * @see #originalWidgetsCSS */ public static final String JAVADOC_WIDGETS_CSS_FILENAME = "Original-Widgets.css"; /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_UPGRADER_WIDGETS_F> * @see #upgraderWidgetsCSS */ public static final String UPGRADER_WIDGETS_CSS_FILENAME = "Upgrader-Widgets.css"; /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_USER_ACCESSORIES_F> * @see #userAccessoriesCSS */ public static final String USER_WIDGETS_CSS_FILENAME = "User-Accessories.css"; /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_PYGMENTS_ORG_F> * @see #pygmentsOrgCSS */ public static final String PYGMENTS_ORG_CSS_FILENAME = "Pygments.org.css"; /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_LIST_FRAMES_F> * @see #listFramesCSS */ public static final String LIST_FRAMES_CSS_FILENAME = "List-Frames.css"; /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_CUSTOMIZED_F> * @see #customizedCSS */ public static final String CUSTOMIZED_CSS_FILENAME = "Customized.css"; // ******************************************************************************************** // ******************************************************************************************** // The Actual CSS-Contents of the Files (as a String) // ******************************************************************************************** // ******************************************************************************************** /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_COLORS> * @see #COLORS_CSS_FILENAME */ public final String colorsCSS; /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_BASE64_ENCODED> * @see #COLORS_CSS_FILENAME */ public final String base64EncodedCSS; /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_ORIGINAL_WIDGETS> * @see #JAVADOC_WIDGETS_CSS_FILENAME */ public final String originalWidgetsCSS; /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_UPGRADER_WIDGETS> * @see #UPGRADER_WIDGETS_CSS_FILENAME */ public final String upgraderWidgetsCSS; /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_USER_ACCESSORIES> * @see #USER_WIDGETS_CSS_FILENAME */ public final String userAccessoriesCSS; /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_PYGMENTS_ORG> * @see #PYGMENTS_ORG_CSS_FILENAME */ public final String pygmentsOrgCSS; /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_LIST_FRAMES> * @see #LIST_FRAMES_CSS_FILENAME */ public final String listFramesCSS; /** * <EMBED CLASS='external-html' DATA-FILE-ID=CSSF_CUSTOMIZED> * @see #CUSTOMIZED_CSS_FILENAME */ public final String customizedCSS; // ******************************************************************************************** // ******************************************************************************************** // Constructor // ******************************************************************************************** // ******************************************************************************************** /** * Constructs an instance of this class by assigning the input parameters to the fields of the * exact same name. * * @param colorsCSS {@code '.css'} File-Contents for the CSS-File that defines the color-scheme * for any / all explicity named colors on this page hierarchy. * * <BR /><TABLE CLASS=JDBriefTable> * <TR><TH>Link</TH><TH>Link-Contents</TH></TR> * <TR> <TD>{@link #colorsCSS}</TD> * <TD>CSS File-as-a-{@code String} Field</TD> * </TR> * <TR> <TD>{@link #COLORS_CSS_FILENAME}</TD> * <TD>CSS File-Name</TD> * </TR> * <TR> <TD><CODE><A HREF='hilite-files/Colors.css.html'>Colors.css</A></CODE></TD> * <TD>Upgrader Default-File Contents</TD> * </TR> * </TABLE> * * @param base64EncodedCSS {@code '.css'} File-Contents for the CSS-File that defines the color-scheme * for any / all explicity named colors on this page hierarchy. * * <BR /><TABLE CLASS=JDBriefTable> * <TR><TH>Link</TH><TH>Link-Contents</TH></TR> * <TR> <TD>{@link #base64EncodedCSS}</TD> * <TD>CSS File-as-a-{@code String} Field</TD> * </TR> * <TR> <TD>{@link #BASE64_ENCODED_CSS_FILENAME}</TD> * <TD>CSS File-Name</TD> * </TR> * <TR> <TD><CODE><A HREF='hilite-files/Base64-Encoded.css.html'>Base64-Encoded.css</A></CODE></TD> * <TD>Upgrader Default-File Contents</TD> * </TR> * </TABLE> * * @param originalWidgetsCSS {@code '.css'} File-Contents for CSS that's used on Original * JavaDoc Components. * * <BR /><TABLE CLASS=JDBriefTable> * <TR><TH>Link</TH><TH>Link-Contents</TH></TR> * <TR> <TD>{@link #originalWidgetsCSS}</TD> * <TD>CSS File-as-a-{@code String} Field</TD> * </TR> * <TR> <TD>{@link #JAVADOC_WIDGETS_CSS_FILENAME}</TD> * <TD>CSS File-Name</TD> * </TR> * <TR> <TD><CODE><A HREF='hilite-files/Original-Widgets.css.html'>Original-Widgets.css * </A></CODE></TD> * <TD>Upgrader Default-File Contents</TD> * </TR> * </TABLE> * * @param upgraderWidgetsCSS {@code '.css'} File-Contents for CSS that's used on Upgrader-Added * Components. * * <BR /><TABLE CLASS=JDBriefTable> * * <TR><TH>Link</TH><TH>Link-Contents</TH></TR> * * <TR> <TD>{@link #upgraderWidgetsCSS}</TD> * <TD>CSS File-as-a-{@code String} Field</TD> * </TR> * <TR> <TD>{@link #UPGRADER_WIDGETS_CSS_FILENAME}</TD> * <TD>CSS File-Name</TD> * </TR> * <TR> <TD><CODE><A HREF='hilite-files/Upgrader-Widgets.css.html'>Upgrader-Widgets.css * </A></CODE></TD> * <TD>Upgrader Default-File Contents</TD> * </TR> * * </TABLE> * * @param userAccessoriesCSS {@code '.css'} File-Contents for CSS that's used on Components which * are only present on a Web-Page if those components were addded / inserted by the programmer. * * <BR /><TABLE CLASS=JDBriefTable> * <TR><TH>Link</TH><TH>Link-Contents</TH></TR> * <TR> <TD>{@link #userAccessoriesCSS}</TD> * <TD>CSS File-as-a-{@code String} Field</TD> * </TR> * <TR> <TD>{@link #USER_WIDGETS_CSS_FILENAME}</TD> * <TD>CSS File-Name</TD> * </TR> * <TR> <TD><CODE><A HREF='hilite-files/User-Accessories.css.html'>User-Accessories.css * </A></CODE></TD> * <TD>Upgrader Default-File Contents</TD> * </TR> * </TABLE> * * @param pygmentsOrgCSS {@code '.css'} File-Contents for CSS that mimics the * {@code 'pygments.org'} Syntax HiLiter. * * <BR /><TABLE CLASS=JDBriefTable> * <TR><TH>Link</TH><TH>Link-Contents</TH></TR> * <TR> <TD>{@link #pygmentsOrgCSS}</TD> * <TD>CSS File-as-a-{@code String} Field</TD> * </TR> * <TR> <TD>{@link #PYGMENTS_ORG_CSS_FILENAME}</TD> * <TD>CSS File-Name</TD> * </TR> * <TR> <TD><CODE><A HREF='hilite-files/Pygments.org.css.html'>Pygments.org.css * </A></CODE></TD> * <TD>Upgrader Default-File Contents</TD> * </TR> * </TABLE> * * @param listFramesCSS {@code '.css'} File-Contents for the CSS that is used to format the * the {@code 'overview-frame.html'} and {@code 'package-frame.html'} Files. * * <BR /><TABLE CLASS=JDBriefTable> * <TR><TH>Link</TH><TH>Link-Contents</TH></TR> * <TR> <TD>{@link #listFramesCSS}</TD> * <TD>CSS File-as-a-{@code String} Field</TD> * </TR> * <TR> <TD>{@link #LIST_FRAMES_CSS_FILENAME}</TD> * <TD>CSS File-Name</TD> * </TR> * <TR> <TD><CODE><A HREF='hilite-files/List-Frames.css.html'>List-Frames.css * </A></CODE></TD> * <TD>Upgrader Default-File Contents</TD> * </TR> * </TABLE> * * @param customizedCSS Potential {@code '.css'} File-Contents provided by the user for HTML * Elements that have been created and included by the programmer, not by the upgrader or by * javadoc. * * <BR /><BR />This parameter may be either null, or a zero-length {@code String}. If this * parameter does not contain any CSS-Rules, then no such {@code '.css'} File will be placed in * the root Java-Doc {@code 'stylesheets/'}, nor will links to this file be inserted into any * of the Java-Doc Web-Pages. * * <BR /><BR /><B STYLE='color: red;'>See Field Definitions for:</B> * * {@link #customizedCSS} and {@link #CUSTOMIZED_CSS_FILENAME} */ public CSSFiles( final String colorsCSS, final String base64EncodedCSS, final String originalWidgetsCSS, final String upgraderWidgetsCSS, final String userAccessoriesCSS, final String pygmentsOrgCSS, final String listFramesCSS, final String customizedCSS ) { this.colorsCSS = colorsCSS; this.base64EncodedCSS = base64EncodedCSS; this.originalWidgetsCSS = originalWidgetsCSS; this.upgraderWidgetsCSS = upgraderWidgetsCSS; this.userAccessoriesCSS = userAccessoriesCSS; this.pygmentsOrgCSS = pygmentsOrgCSS; this.listFramesCSS = listFramesCSS; this.customizedCSS = customizedCSS; } } |