< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/Contents.java

Print this page




  39 /**
  40  * Constants and factory methods for common fragments of content
  41  * used by HtmlDoclet. The string content of these fragments is
  42  * generally obtained from the {@link Resources resources} found
  43  * in the doclet's configuration.
  44  *
  45  * @implNote
  46  * Many constants are made available in this class, so that they are
  47  * only created once per doclet-instance, instead of once per generated page.
  48  */
  49 public class Contents {
  50     public static final Content SPACE = RawHtml.nbsp;
  51     public static final Content ZERO_WIDTH_SPACE = RawHtml.zws;
  52 
  53     public final Content allClassesLabel;
  54     public final Content allImplementedInterfacesLabel;
  55     public final Content allModulesLabel;
  56     public final Content allPackagesLabel;
  57     public final Content allSuperinterfacesLabel;
  58     public final Content also;


  59     public final Content annotateTypeOptionalMemberSummaryLabel;
  60     public final Content annotateTypeRequiredMemberSummaryLabel;
  61     public final Content annotationType;
  62     public final Content annotationTypeDetailsLabel;
  63     public final Content annotationTypeMemberDetail;

  64     public final Content annotationTypes;
  65     public final Content classLabel;
  66     public final Content classes;

  67     public final Content constantsSummaryTitle;

  68     public final Content constructorDetailsLabel;
  69     public final Content constructorSummaryLabel;
  70     public final Content constructors;
  71     public final Content contentsHeading;
  72     public final Content defaultPackageLabel;
  73     public final Content default_;
  74     public final Content deprecatedAPI;
  75     public final Content deprecatedLabel;
  76     public final Content deprecatedPhrase;
  77     public final Content deprecatedForRemovalPhrase;
  78     public final Content descfrmClassLabel;
  79     public final Content descfrmInterfaceLabel;
  80     public final Content descriptionLabel;
  81     public final Content detailLabel;
  82     public final Content enclosingClassLabel;
  83     public final Content enclosingInterfaceLabel;

  84     public final Content enumConstantDetailLabel;
  85     public final Content enumConstantSummary;
  86     public final Content enum_;
  87     public final Content enums;

  88     public final Content errors;

  89     public final Content exceptions;

  90     public final Content fieldDetailsLabel;
  91     public final Content fieldSummaryLabel;
  92     public final Content fields;
  93     public final Content framesLabel;

  94     public final Content functionalInterface;
  95     public final Content functionalInterfaceMessage;
  96     public final Content helpLabel;
  97     public final Content hierarchyForAllPackages;
  98     public final Content implementation;
  99     public final Content implementingClassesLabel;
 100     public final Content inClass;
 101     public final Content inInterface;
 102     public final Content indexLabel;

 103     public final Content interfaces;
 104     public final Content interfacesItalic;
 105     public final Content methodDetailLabel;

 106     public final Content methodSummary;
 107     public final Content methods;


 108     public final Content moduleLabel;
 109     public final Content module_;
 110     public final Content moduleSubNavLabel;
 111     public final Content modulesLabel;
 112     public final Content navAnnotationTypeMember;
 113     public final Content navAnnotationTypeOptionalMember;
 114     public final Content navAnnotationTypeRequiredMember;
 115     public final Content navConstructor;
 116     public final Content navEnum;
 117     public final Content navField;
 118     public final Content navMethod;
 119     public final Content navModuleDescription;
 120     public final Content navModules;
 121     public final Content navNested;
 122     public final Content navPackages;
 123     public final Content navProperty;
 124     public final Content navServices;
 125     public final Content nestedClassSummary;
 126     public final Content nextClassLabel;
 127     public final Content nextLabel;
 128     public final Content nextLetter;
 129     public final Content nextModuleLabel;
 130     public final Content nextPackageLabel;
 131     public final Content noFramesLabel;
 132     public final Content noScriptMessage;
 133     public final Content openModuleLabel;
 134     public final Content overridesLabel;
 135     public final Content overviewLabel;
 136     public final Content packageHierarchies;
 137     public final Content packageLabel;
 138     public final Content package_;
 139     public final Content packagesLabel;
 140     public final Content prevClassLabel;
 141     public final Content prevLabel;
 142     public final Content prevLetter;
 143     public final Content prevModuleLabel;
 144     public final Content prevPackageLabel;
 145     public final Content properties;

 146     public final Content propertyDetailsLabel;
 147     public final Content propertySummary;
 148     public final Content seeLabel;
 149     public final Content serializedForm;
 150     public final Content specifiedByLabel;
 151     public final Content subclassesLabel;
 152     public final Content subinterfacesLabel;
 153     public final Content summaryLabel;
 154     public final Content treeLabel;

 155     public final Content useLabel;

 156 
 157     private final Resources resources;
 158 
 159     /**
 160      * Creates a {@code Contents} object.
 161      *
 162      * @param configuration the configuration in which to find the
 163      * resources used to look up resource keys, and other details.
 164      */
 165     Contents(HtmlConfiguration configuration) {
 166         this.resources = configuration.getResources();
 167 
 168         allClassesLabel = getNonBreakContent("doclet.All_Classes");
 169         allImplementedInterfacesLabel = getContent("doclet.All_Implemented_Interfaces");
 170         allModulesLabel = getNonBreakContent("doclet.All_Modules");
 171         allPackagesLabel = getNonBreakContent("doclet.All_Packages");
 172         allSuperinterfacesLabel = getContent("doclet.All_Superinterfaces");
 173         also = getContent("doclet.also");


 174         annotateTypeOptionalMemberSummaryLabel = getContent("doclet.Annotation_Type_Optional_Member_Summary");
 175         annotateTypeRequiredMemberSummaryLabel = getContent("doclet.Annotation_Type_Required_Member_Summary");
 176         annotationType = getContent("doclet.AnnotationType");
 177         annotationTypeDetailsLabel = getContent("doclet.Annotation_Type_Member_Detail");
 178         annotationTypeMemberDetail = getContent("doclet.Annotation_Type_Member_Detail");
 179         annotationTypes = getContent("doclet.AnnotationTypes");

 180         classLabel = getContent("doclet.Class");
 181         classes = getContent("doclet.Classes");

 182         constantsSummaryTitle = getContent("doclet.Constants_Summary");

 183         constructorDetailsLabel = getContent("doclet.Constructor_Detail");
 184         constructorSummaryLabel = getContent("doclet.Constructor_Summary");
 185         constructors = getContent("doclet.Constructors");
 186         contentsHeading = getContent("doclet.Contents");
 187         defaultPackageLabel = new StringContent(DocletConstants.DEFAULT_PACKAGE_NAME);
 188         default_ = getContent("doclet.Default");
 189         deprecatedAPI = getContent("doclet.Deprecated_API");
 190         deprecatedLabel = getContent("doclet.navDeprecated");
 191         deprecatedPhrase = getContent("doclet.Deprecated");
 192         deprecatedForRemovalPhrase = getContent("doclet.DeprecatedForRemoval");
 193         descfrmClassLabel = getContent("doclet.Description_From_Class");
 194         descfrmInterfaceLabel = getContent("doclet.Description_From_Interface");
 195         descriptionLabel = getContent("doclet.Description");
 196         detailLabel = getContent("doclet.Detail");
 197         enclosingClassLabel = getContent("doclet.Enclosing_Class");
 198         enclosingInterfaceLabel = getContent("doclet.Enclosing_Interface");

 199         enumConstantDetailLabel = getContent("doclet.Enum_Constant_Detail");
 200         enumConstantSummary = getContent("doclet.Enum_Constant_Summary");
 201         enum_ = getContent("doclet.Enum");
 202         enums = getContent("doclet.Enums");

 203         errors = getContent("doclet.Errors");

 204         exceptions = getContent("doclet.Exceptions");
 205         fieldDetailsLabel = getContent("doclet.Field_Detail");
 206         fieldSummaryLabel = getContent("doclet.Field_Summary");

 207         fields = getContent("doclet.Fields");
 208         framesLabel = getContent("doclet.Frames");

 209         functionalInterface = getContent("doclet.Functional_Interface");
 210         functionalInterfaceMessage = getContent("doclet.Functional_Interface_Message");
 211         helpLabel = getContent("doclet.Help");
 212         hierarchyForAllPackages = getContent("doclet.Hierarchy_For_All_Packages");
 213         implementation = getContent("doclet.Implementation");
 214         implementingClassesLabel = getContent("doclet.Implementing_Classes");
 215         inClass = getContent("doclet.in_class");
 216         inInterface = getContent("doclet.in_interface");
 217         indexLabel = getContent("doclet.Index");

 218         interfaces = getContent("doclet.Interfaces");
 219         interfacesItalic = getContent("doclet.Interfaces_Italic");
 220         methodDetailLabel = getContent("doclet.Method_Detail");
 221         methodSummary = getContent("doclet.Method_Summary");

 222         methods = getContent("doclet.Methods");


 223         moduleLabel = getContent("doclet.Module");
 224         module_ = getContent("doclet.module");
 225         moduleSubNavLabel = getContent("doclet.Module_Sub_Nav");
 226         modulesLabel = getContent("doclet.Modules");
 227         navAnnotationTypeMember = getContent("doclet.navAnnotationTypeMember");
 228         navAnnotationTypeOptionalMember = getContent("doclet.navAnnotationTypeOptionalMember");
 229         navAnnotationTypeRequiredMember = getContent("doclet.navAnnotationTypeRequiredMember");
 230         navConstructor = getContent("doclet.navConstructor");
 231         navEnum = getContent("doclet.navEnum");
 232         navField = getContent("doclet.navField");
 233         navMethod = getContent("doclet.navMethod");
 234         navModuleDescription = getContent("doclet.navModuleDescription");
 235         navModules = getContent("doclet.navModules");
 236         navNested = getContent("doclet.navNested");
 237         navPackages = getContent("doclet.navPackages");
 238         navProperty = getContent("doclet.navProperty");
 239         navServices = getContent("doclet.navServices");
 240         nestedClassSummary = getContent("doclet.Nested_Class_Summary");
 241         nextClassLabel = getNonBreakContent("doclet.Next_Class");
 242         nextLabel = getNonBreakContent("doclet.Next");
 243         nextLetter = getContent("doclet.Next_Letter");
 244         nextModuleLabel = getNonBreakContent("doclet.Next_Module");
 245         nextPackageLabel = getNonBreakContent("doclet.Next_Package");
 246         noFramesLabel = getNonBreakContent("doclet.No_Frames");
 247         noScriptMessage = getContent("doclet.No_Script_Message");
 248         openModuleLabel = getContent("doclet.Open_Module");
 249         overridesLabel = getContent("doclet.Overrides");
 250         overviewLabel = getContent("doclet.Overview");
 251         packageHierarchies = getContent("doclet.Package_Hierarchies");
 252         packageLabel = getContent("doclet.Package");
 253         package_ = getContent("doclet.package");
 254         packagesLabel = getContent("doclet.Packages");
 255         prevClassLabel = getNonBreakContent("doclet.Prev_Class");
 256         prevLabel = getContent("doclet.Prev");
 257         prevLetter = getContent("doclet.Prev_Letter");
 258         prevModuleLabel = getNonBreakContent("doclet.Prev_Module");
 259         prevPackageLabel = getNonBreakContent("doclet.Prev_Package");
 260         properties = getContent("doclet.Properties");

 261         propertyDetailsLabel = getContent("doclet.Property_Detail");
 262         propertySummary = getContent("doclet.Property_Summary");
 263         seeLabel = getContent("doclet.See");
 264         serializedForm = getContent("doclet.Serialized_Form");
 265         specifiedByLabel = getContent("doclet.Specified_By");
 266         subclassesLabel = getContent("doclet.Subclasses");
 267         subinterfacesLabel = getContent("doclet.Subinterfaces");
 268         summaryLabel = getContent("doclet.Summary");
 269         treeLabel = getContent("doclet.Tree");

 270         useLabel = getContent("doclet.navClassUse");

 271     }
 272 
 273     /**
 274      * Gets a {@code Content} object, containing the string for
 275      * a given key in the doclet's resources.
 276      *
 277      * @param key the key for the desired string
 278      * @return a content tree for the string
 279      */
 280     public Content getContent(String key) {
 281         return new FixedStringContent(resources.getText(key));
 282     }
 283 
 284     /**
 285      * Gets a {@code Content} object, containing the string for
 286      * a given key in the doclet's resources, formatted with
 287      * given arguments.
 288      *
 289      * @param key the key to look for in the configuration fil
 290      * @param key the key for the desired string
 291      * @param o0  string or content argument to be formatted into the result
 292      * @return a content tree for the text
 293      */
 294     public Content getContent(String key, Object o0) {
 295         return getContent(key, o0, null, null);
 296     }
 297 
 298     /**
 299      * Gets a {@code Content} object, containing the string for
 300      * a given key in the doclet's resources, formatted with
 301      * given arguments.
 302 
 303      * @param key the key for the desired string
 304      * @param o0  string or content argument to be formatted into the result
 305      * @param o1  string or content argument to be formatted into the result
 306      * @return a content tree for the text
 307      */
 308     public Content getContent(String key, Object o0, Object o1) {
 309         return getContent(key, o0, o1, null);




  39 /**
  40  * Constants and factory methods for common fragments of content
  41  * used by HtmlDoclet. The string content of these fragments is
  42  * generally obtained from the {@link Resources resources} found
  43  * in the doclet's configuration.
  44  *
  45  * @implNote
  46  * Many constants are made available in this class, so that they are
  47  * only created once per doclet-instance, instead of once per generated page.
  48  */
  49 public class Contents {
  50     public static final Content SPACE = RawHtml.nbsp;
  51     public static final Content ZERO_WIDTH_SPACE = RawHtml.zws;
  52 
  53     public final Content allClassesLabel;
  54     public final Content allImplementedInterfacesLabel;
  55     public final Content allModulesLabel;
  56     public final Content allPackagesLabel;
  57     public final Content allSuperinterfacesLabel;
  58     public final Content also;
  59     public final Content annotationTypeOptionalMemberLabel;
  60     public final Content annotationTypeRequiredMemberLabel;
  61     public final Content annotateTypeOptionalMemberSummaryLabel;
  62     public final Content annotateTypeRequiredMemberSummaryLabel;
  63     public final Content annotationType;
  64     public final Content annotationTypeDetailsLabel;
  65     public final Content annotationTypeMemberDetail;
  66     public final Content annotationtypes;
  67     public final Content annotationTypes;
  68     public final Content classLabel;
  69     public final Content classes;
  70     public final Content constantFieldLabel;
  71     public final Content constantsSummaryTitle;
  72     public final Content constructorLabel;
  73     public final Content constructorDetailsLabel;
  74     public final Content constructorSummaryLabel;
  75     public final Content constructors;
  76     public final Content contentsHeading;
  77     public final Content defaultPackageLabel;
  78     public final Content default_;
  79     public final Content deprecatedAPI;
  80     public final Content deprecatedLabel;
  81     public final Content deprecatedPhrase;
  82     public final Content deprecatedForRemovalPhrase;
  83     public final Content descfrmClassLabel;
  84     public final Content descfrmInterfaceLabel;
  85     public final Content descriptionLabel;
  86     public final Content detailLabel;
  87     public final Content enclosingClassLabel;
  88     public final Content enclosingInterfaceLabel;
  89     public final Content enumConstantLabel;
  90     public final Content enumConstantDetailLabel;
  91     public final Content enumConstantSummary;
  92     public final Content enum_;
  93     public final Content enums;
  94     public final Content error;
  95     public final Content errors;
  96     public final Content exception;
  97     public final Content exceptions;
  98     public final Content fieldLabel;
  99     public final Content fieldDetailsLabel;
 100     public final Content fieldSummaryLabel;
 101     public final Content fields;
 102     public final Content framesLabel;
 103     public final Content fromLabel;
 104     public final Content functionalInterface;
 105     public final Content functionalInterfaceMessage;
 106     public final Content helpLabel;
 107     public final Content hierarchyForAllPackages;
 108     public final Content implementation;
 109     public final Content implementingClassesLabel;
 110     public final Content inClass;
 111     public final Content inInterface;
 112     public final Content indexLabel;
 113     public final Content interfaceLabel;
 114     public final Content interfaces;
 115     public final Content interfacesItalic;
 116     public final Content methodDetailLabel;
 117     public final Content methodLabel;
 118     public final Content methodSummary;
 119     public final Content methods;
 120     public final Content modifierAndTypeLabel;
 121     public final Content modifierLabel;
 122     public final Content moduleLabel;
 123     public final Content module_;
 124     public final Content moduleSubNavLabel;
 125     public final Content modulesLabel;
 126     public final Content navAnnotationTypeMember;
 127     public final Content navAnnotationTypeOptionalMember;
 128     public final Content navAnnotationTypeRequiredMember;
 129     public final Content navConstructor;
 130     public final Content navEnum;
 131     public final Content navField;
 132     public final Content navMethod;
 133     public final Content navModuleDescription;
 134     public final Content navModules;
 135     public final Content navNested;
 136     public final Content navPackages;
 137     public final Content navProperty;
 138     public final Content navServices;
 139     public final Content nestedClassSummary;
 140     public final Content nextClassLabel;
 141     public final Content nextLabel;
 142     public final Content nextLetter;
 143     public final Content nextModuleLabel;
 144     public final Content nextPackageLabel;
 145     public final Content noFramesLabel;
 146     public final Content noScriptMessage;
 147     public final Content openModuleLabel;
 148     public final Content overridesLabel;
 149     public final Content overviewLabel;
 150     public final Content packageHierarchies;
 151     public final Content packageLabel;
 152     public final Content package_;
 153     public final Content packagesLabel;
 154     public final Content prevClassLabel;
 155     public final Content prevLabel;
 156     public final Content prevLetter;
 157     public final Content prevModuleLabel;
 158     public final Content prevPackageLabel;
 159     public final Content properties;
 160     public final Content propertyLabel;
 161     public final Content propertyDetailsLabel;
 162     public final Content propertySummary;
 163     public final Content seeLabel;
 164     public final Content serializedForm;
 165     public final Content specifiedByLabel;
 166     public final Content subclassesLabel;
 167     public final Content subinterfacesLabel;
 168     public final Content summaryLabel;
 169     public final Content treeLabel;
 170     public final Content typeLabel;
 171     public final Content useLabel;
 172     public final Content valueLabel;
 173 
 174     private final Resources resources;
 175 
 176     /**
 177      * Creates a {@code Contents} object.
 178      *
 179      * @param configuration the configuration in which to find the
 180      * resources used to look up resource keys, and other details.
 181      */
 182     Contents(HtmlConfiguration configuration) {
 183         this.resources = configuration.getResources();
 184 
 185         allClassesLabel = getNonBreakContent("doclet.All_Classes");
 186         allImplementedInterfacesLabel = getContent("doclet.All_Implemented_Interfaces");
 187         allModulesLabel = getNonBreakContent("doclet.All_Modules");
 188         allPackagesLabel = getNonBreakContent("doclet.All_Packages");
 189         allSuperinterfacesLabel = getContent("doclet.All_Superinterfaces");
 190         also = getContent("doclet.also");
 191         annotationTypeOptionalMemberLabel = getContent("doclet.Annotation_Type_Optional_Member");
 192         annotationTypeRequiredMemberLabel = getContent("doclet.Annotation_Type_Required_Member");
 193         annotateTypeOptionalMemberSummaryLabel = getContent("doclet.Annotation_Type_Optional_Member_Summary");
 194         annotateTypeRequiredMemberSummaryLabel = getContent("doclet.Annotation_Type_Required_Member_Summary");
 195         annotationType = getContent("doclet.AnnotationType");
 196         annotationTypeDetailsLabel = getContent("doclet.Annotation_Type_Member_Detail");
 197         annotationTypeMemberDetail = getContent("doclet.Annotation_Type_Member_Detail");
 198         annotationTypes = getContent("doclet.AnnotationTypes");
 199         annotationtypes = getContent("doclet.annotationtypes");
 200         classLabel = getContent("doclet.Class");
 201         classes = getContent("doclet.Classes");
 202         constantFieldLabel = getContent("doclet.ConstantField");
 203         constantsSummaryTitle = getContent("doclet.Constants_Summary");
 204         constructorLabel = getContent("doclet.Constructor");
 205         constructorDetailsLabel = getContent("doclet.Constructor_Detail");
 206         constructorSummaryLabel = getContent("doclet.Constructor_Summary");
 207         constructors = getContent("doclet.Constructors");
 208         contentsHeading = getContent("doclet.Contents");
 209         defaultPackageLabel = new StringContent(DocletConstants.DEFAULT_PACKAGE_NAME);
 210         default_ = getContent("doclet.Default");
 211         deprecatedAPI = getContent("doclet.Deprecated_API");
 212         deprecatedLabel = getContent("doclet.navDeprecated");
 213         deprecatedPhrase = getContent("doclet.Deprecated");
 214         deprecatedForRemovalPhrase = getContent("doclet.DeprecatedForRemoval");
 215         descfrmClassLabel = getContent("doclet.Description_From_Class");
 216         descfrmInterfaceLabel = getContent("doclet.Description_From_Interface");
 217         descriptionLabel = getContent("doclet.Description");
 218         detailLabel = getContent("doclet.Detail");
 219         enclosingClassLabel = getContent("doclet.Enclosing_Class");
 220         enclosingInterfaceLabel = getContent("doclet.Enclosing_Interface");
 221         enumConstantLabel = getContent("doclet.Enum_Constant");
 222         enumConstantDetailLabel = getContent("doclet.Enum_Constant_Detail");
 223         enumConstantSummary = getContent("doclet.Enum_Constant_Summary");
 224         enum_ = getContent("doclet.Enum");
 225         enums = getContent("doclet.Enums");
 226         error = getContent("doclet.Error");
 227         errors = getContent("doclet.Errors");
 228         exception = getContent("doclet.Exception");
 229         exceptions = getContent("doclet.Exceptions");
 230         fieldDetailsLabel = getContent("doclet.Field_Detail");
 231         fieldSummaryLabel = getContent("doclet.Field_Summary");
 232         fieldLabel = getContent("doclet.Field");
 233         fields = getContent("doclet.Fields");
 234         framesLabel = getContent("doclet.Frames");
 235         fromLabel = getContent("doclet.From");
 236         functionalInterface = getContent("doclet.Functional_Interface");
 237         functionalInterfaceMessage = getContent("doclet.Functional_Interface_Message");
 238         helpLabel = getContent("doclet.Help");
 239         hierarchyForAllPackages = getContent("doclet.Hierarchy_For_All_Packages");
 240         implementation = getContent("doclet.Implementation");
 241         implementingClassesLabel = getContent("doclet.Implementing_Classes");
 242         inClass = getContent("doclet.in_class");
 243         inInterface = getContent("doclet.in_interface");
 244         indexLabel = getContent("doclet.Index");
 245         interfaceLabel = getContent("doclet.Interface");
 246         interfaces = getContent("doclet.Interfaces");
 247         interfacesItalic = getContent("doclet.Interfaces_Italic");
 248         methodDetailLabel = getContent("doclet.Method_Detail");
 249         methodSummary = getContent("doclet.Method_Summary");
 250         methodLabel = getContent("doclet.Method");
 251         methods = getContent("doclet.Methods");
 252         modifierLabel = getContent("doclet.Modifier");
 253         modifierAndTypeLabel = getContent("doclet.Modifier_and_Type");
 254         moduleLabel = getContent("doclet.Module");
 255         module_ = getContent("doclet.module");
 256         moduleSubNavLabel = getContent("doclet.Module_Sub_Nav");
 257         modulesLabel = getContent("doclet.Modules");
 258         navAnnotationTypeMember = getContent("doclet.navAnnotationTypeMember");
 259         navAnnotationTypeOptionalMember = getContent("doclet.navAnnotationTypeOptionalMember");
 260         navAnnotationTypeRequiredMember = getContent("doclet.navAnnotationTypeRequiredMember");
 261         navConstructor = getContent("doclet.navConstructor");
 262         navEnum = getContent("doclet.navEnum");
 263         navField = getContent("doclet.navField");
 264         navMethod = getContent("doclet.navMethod");
 265         navModuleDescription = getContent("doclet.navModuleDescription");
 266         navModules = getContent("doclet.navModules");
 267         navNested = getContent("doclet.navNested");
 268         navPackages = getContent("doclet.navPackages");
 269         navProperty = getContent("doclet.navProperty");
 270         navServices = getContent("doclet.navServices");
 271         nestedClassSummary = getContent("doclet.Nested_Class_Summary");
 272         nextClassLabel = getNonBreakContent("doclet.Next_Class");
 273         nextLabel = getNonBreakContent("doclet.Next");
 274         nextLetter = getContent("doclet.Next_Letter");
 275         nextModuleLabel = getNonBreakContent("doclet.Next_Module");
 276         nextPackageLabel = getNonBreakContent("doclet.Next_Package");
 277         noFramesLabel = getNonBreakContent("doclet.No_Frames");
 278         noScriptMessage = getContent("doclet.No_Script_Message");
 279         openModuleLabel = getContent("doclet.Open_Module");
 280         overridesLabel = getContent("doclet.Overrides");
 281         overviewLabel = getContent("doclet.Overview");
 282         packageHierarchies = getContent("doclet.Package_Hierarchies");
 283         packageLabel = getContent("doclet.Package");
 284         package_ = getContent("doclet.package");
 285         packagesLabel = getContent("doclet.Packages");
 286         prevClassLabel = getNonBreakContent("doclet.Prev_Class");
 287         prevLabel = getContent("doclet.Prev");
 288         prevLetter = getContent("doclet.Prev_Letter");
 289         prevModuleLabel = getNonBreakContent("doclet.Prev_Module");
 290         prevPackageLabel = getNonBreakContent("doclet.Prev_Package");
 291         properties = getContent("doclet.Properties");
 292         propertyLabel = getContent("doclet.Property");
 293         propertyDetailsLabel = getContent("doclet.Property_Detail");
 294         propertySummary = getContent("doclet.Property_Summary");
 295         seeLabel = getContent("doclet.See");
 296         serializedForm = getContent("doclet.Serialized_Form");
 297         specifiedByLabel = getContent("doclet.Specified_By");
 298         subclassesLabel = getContent("doclet.Subclasses");
 299         subinterfacesLabel = getContent("doclet.Subinterfaces");
 300         summaryLabel = getContent("doclet.Summary");
 301         treeLabel = getContent("doclet.Tree");
 302         typeLabel = getContent("doclet.Type");
 303         useLabel = getContent("doclet.navClassUse");
 304         valueLabel = getContent("doclet.Value");
 305     }
 306 
 307     /**
 308      * Gets a {@code Content} object, containing the string for
 309      * a given key in the doclet's resources.
 310      *
 311      * @param key the key for the desired string
 312      * @return a content tree for the string
 313      */
 314     public Content getContent(String key) {
 315         return new FixedStringContent(resources.getText(key));
 316     }
 317 
 318     /**
 319      * Gets a {@code Content} object, containing the string for
 320      * a given key in the doclet's resources, formatted with
 321      * given arguments.
 322      *

 323      * @param key the key for the desired string
 324      * @param o0  string or content argument to be formatted into the result
 325      * @return a content tree for the text
 326      */
 327     public Content getContent(String key, Object o0) {
 328         return getContent(key, o0, null, null);
 329     }
 330 
 331     /**
 332      * Gets a {@code Content} object, containing the string for
 333      * a given key in the doclet's resources, formatted with
 334      * given arguments.
 335 
 336      * @param key the key for the desired string
 337      * @param o0  string or content argument to be formatted into the result
 338      * @param o1  string or content argument to be formatted into the result
 339      * @return a content tree for the text
 340      */
 341     public Content getContent(String key, Object o0, Object o1) {
 342         return getContent(key, o0, o1, null);


< prev index next >