201 packageLabel = getResource("doclet.Package"); |
201 packageLabel = getResource("doclet.Package"); |
202 profileLabel = getResource("doclet.Profile"); |
202 profileLabel = getResource("doclet.Profile"); |
203 useLabel = getResource("doclet.navClassUse"); |
203 useLabel = getResource("doclet.navClassUse"); |
204 prevLabel = getResource("doclet.Prev"); |
204 prevLabel = getResource("doclet.Prev"); |
205 nextLabel = getResource("doclet.Next"); |
205 nextLabel = getResource("doclet.Next"); |
206 prevclassLabel = getResource("doclet.Prev_Class"); |
206 prevclassLabel = getNonBreakResource("doclet.Prev_Class"); |
207 nextclassLabel = getResource("doclet.Next_Class"); |
207 nextclassLabel = getNonBreakResource("doclet.Next_Class"); |
208 summaryLabel = getResource("doclet.Summary"); |
208 summaryLabel = getResource("doclet.Summary"); |
209 detailLabel = getResource("doclet.Detail"); |
209 detailLabel = getResource("doclet.Detail"); |
210 framesLabel = getResource("doclet.Frames"); |
210 framesLabel = getResource("doclet.Frames"); |
211 noframesLabel = getResource("doclet.No_Frames"); |
211 noframesLabel = getNonBreakResource("doclet.No_Frames"); |
212 treeLabel = getResource("doclet.Tree"); |
212 treeLabel = getResource("doclet.Tree"); |
213 classLabel = getResource("doclet.Class"); |
213 classLabel = getResource("doclet.Class"); |
214 deprecatedLabel = getResource("doclet.navDeprecated"); |
214 deprecatedLabel = getResource("doclet.navDeprecated"); |
215 deprecatedPhrase = getResource("doclet.Deprecated"); |
215 deprecatedPhrase = getResource("doclet.Deprecated"); |
216 allclassesLabel = getResource("doclet.All_Classes"); |
216 allclassesLabel = getNonBreakResource("doclet.All_Classes"); |
217 allpackagesLabel = getResource("doclet.All_Packages"); |
217 allpackagesLabel = getNonBreakResource("doclet.All_Packages"); |
218 allprofilesLabel = getResource("doclet.All_Profiles"); |
218 allprofilesLabel = getNonBreakResource("doclet.All_Profiles"); |
219 indexLabel = getResource("doclet.Index"); |
219 indexLabel = getResource("doclet.Index"); |
220 helpLabel = getResource("doclet.Help"); |
220 helpLabel = getResource("doclet.Help"); |
221 seeLabel = getResource("doclet.See"); |
221 seeLabel = getResource("doclet.See"); |
222 descriptionLabel = getResource("doclet.Description"); |
222 descriptionLabel = getResource("doclet.Description"); |
223 prevpackageLabel = getResource("doclet.Prev_Package"); |
223 prevpackageLabel = getNonBreakResource("doclet.Prev_Package"); |
224 nextpackageLabel = getResource("doclet.Next_Package"); |
224 nextpackageLabel = getNonBreakResource("doclet.Next_Package"); |
225 prevprofileLabel = getResource("doclet.Prev_Profile"); |
225 prevprofileLabel = getNonBreakResource("doclet.Prev_Profile"); |
226 nextprofileLabel = getResource("doclet.Next_Profile"); |
226 nextprofileLabel = getNonBreakResource("doclet.Next_Profile"); |
227 packagesLabel = getResource("doclet.Packages"); |
227 packagesLabel = getResource("doclet.Packages"); |
228 profilesLabel = getResource("doclet.Profiles"); |
228 profilesLabel = getResource("doclet.Profiles"); |
229 methodDetailsLabel = getResource("doclet.Method_Detail"); |
229 methodDetailsLabel = getResource("doclet.Method_Detail"); |
230 annotationTypeDetailsLabel = getResource("doclet.Annotation_Type_Member_Detail"); |
230 annotationTypeDetailsLabel = getResource("doclet.Annotation_Type_Member_Detail"); |
231 fieldDetailsLabel = getResource("doclet.Field_Detail"); |
231 fieldDetailsLabel = getResource("doclet.Field_Detail"); |
252 * @param key the key to look for in the configuration file |
252 * @param key the key to look for in the configuration file |
253 * @return a content tree for the text |
253 * @return a content tree for the text |
254 */ |
254 */ |
255 public Content getResource(String key) { |
255 public Content getResource(String key) { |
256 return configuration.getResource(key); |
256 return configuration.getResource(key); |
|
257 } |
|
258 |
|
259 /** |
|
260 * Get the configuration string as a content, replacing spaces |
|
261 * with non-breaking spaces. |
|
262 * |
|
263 * @param key the key to look for in the configuration file |
|
264 * @return a content tree for the text |
|
265 */ |
|
266 public Content getNonBreakResource(String key) { |
|
267 String text = configuration.getText(key); |
|
268 Content c = configuration.newContent(); |
|
269 int start = 0; |
|
270 int p; |
|
271 while ((p = text.indexOf(" ", start)) != -1) { |
|
272 c.addContent(text.substring(start, p)); |
|
273 c.addContent(RawHtml.nbsp); |
|
274 start = p + 1; |
|
275 } |
|
276 c.addContent(text.substring(start)); |
|
277 return c; |
257 } |
278 } |
258 |
279 |
259 /** |
280 /** |
260 * Get the configuration string as a content. |
281 * Get the configuration string as a content. |
261 * |
282 * |