langtools/src/share/classes/com/sun/tools/doclets/formats/html/PropertyWriterImpl.java
author bpatel
Wed, 07 Aug 2013 15:00:24 -0700
changeset 19253 b97b3e18547f
parent 17570 78512b2899db
child 21008 af0b915df7cc
permissions -rw-r--r--
7198274: RFE : Javadoc Accessibility : Use CSS styles rather than <strong> or <i> tags Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     1
/*
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     2
 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     4
 *
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    10
 *
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    15
 * accompanied this code).
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    16
 *
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    20
 *
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    23
 * questions.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    24
 */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    25
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    26
package com.sun.tools.doclets.formats.html;
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    27
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    28
import java.io.*;
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    29
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    30
import com.sun.javadoc.*;
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    31
import com.sun.tools.doclets.formats.html.markup.*;
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    32
import com.sun.tools.doclets.internal.toolkit.*;
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    33
import com.sun.tools.doclets.internal.toolkit.util.*;
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    34
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    35
/**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    36
 * Writes property documentation in HTML format.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    37
 *
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    38
 *  <p><b>This is NOT part of any supported API.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    39
 *  If you write code that depends on this, you do so at your own risk.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    40
 *  This code and its internal interfaces are subject to change or
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    41
 *  deletion without notice.</b>
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    42
 *
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    43
 * @author Robert Field
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    44
 * @author Atul M Dambalkar
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    45
 * @author Jamie Ho (rewrite)
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    46
 * @author Bhavesh Patel (Modified)
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    47
 */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    48
public class PropertyWriterImpl extends AbstractMemberWriter
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    49
    implements PropertyWriter, MemberSummaryWriter {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    50
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    51
    public PropertyWriterImpl(SubWriterHolderWriter writer, ClassDoc classdoc) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    52
        super(writer, classdoc);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    53
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    54
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    55
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    56
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    57
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    58
    public Content getMemberSummaryHeader(ClassDoc classDoc,
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    59
            Content memberSummaryTree) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    60
        memberSummaryTree.addContent(HtmlConstants.START_OF_PROPERTY_SUMMARY);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    61
        Content memberTree = writer.getMemberTreeHeader();
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    62
        writer.addSummaryHeader(this, classDoc, memberTree);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    63
        return memberTree;
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    64
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    65
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    66
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    67
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    68
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    69
    public Content getPropertyDetailsTreeHeader(ClassDoc classDoc,
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    70
            Content memberDetailsTree) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    71
        memberDetailsTree.addContent(HtmlConstants.START_OF_PROPERTY_DETAILS);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    72
        Content propertyDetailsTree = writer.getMemberTreeHeader();
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    73
        propertyDetailsTree.addContent(writer.getMarkerAnchor("property_detail"));
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    74
        Content heading = HtmlTree.HEADING(HtmlConstants.DETAILS_HEADING,
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    75
                writer.propertyDetailsLabel);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    76
        propertyDetailsTree.addContent(heading);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    77
        return propertyDetailsTree;
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    78
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    79
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    80
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    81
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    82
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    83
    public Content getPropertyDocTreeHeader(MethodDoc property,
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    84
            Content propertyDetailsTree) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    85
        propertyDetailsTree.addContent(
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    86
                writer.getMarkerAnchor(property.name()));
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    87
        Content propertyDocTree = writer.getMemberTreeHeader();
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    88
        Content heading = new HtmlTree(HtmlConstants.MEMBER_HEADING);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    89
        heading.addContent(property.name().substring(0, property.name().lastIndexOf("Property")));
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    90
        propertyDocTree.addContent(heading);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    91
        return propertyDocTree;
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    92
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    93
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    94
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    95
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    96
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    97
    public Content getSignature(MethodDoc property) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    98
        Content pre = new HtmlTree(HtmlTag.PRE);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
    99
        writer.addAnnotationInfo(property, pre);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   100
        addModifiers(property, pre);
17559
87c28ee29329 8011642: Remove LinkOutput in favor of direct use of Content
jjg
parents: 17558
diff changeset
   101
        Content propertylink = writer.getLink(new LinkInfoImpl(
17558
eee4ccf66cfd 8010440: Replace int constants in LinkInfoImpl with enum
jjg
parents: 16319
diff changeset
   102
                configuration, LinkInfoImpl.Kind.MEMBER,
17559
87c28ee29329 8011642: Remove LinkOutput in favor of direct use of Content
jjg
parents: 17558
diff changeset
   103
                property.returnType()));
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   104
        pre.addContent(propertylink);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   105
        pre.addContent(" ");
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   106
        if (configuration.linksource) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   107
            Content propertyName = new StringContent(property.name());
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   108
            writer.addSrcLink(property, propertyName, pre);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   109
        } else {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   110
            addName(property.name(), pre);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   111
        }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   112
        return pre;
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   113
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   114
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   115
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   116
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   117
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   118
    public void addDeprecated(MethodDoc property, Content propertyDocTree) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   119
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   120
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   121
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   122
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   123
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   124
    public void addComments(MethodDoc property, Content propertyDocTree) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   125
        ClassDoc holder = property.containingClass();
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   126
        if (property.inlineTags().length > 0) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   127
            if (holder.equals(classdoc) ||
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   128
                    (! (holder.isPublic() || Util.isLinkable(holder, configuration)))) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   129
                writer.addInlineComment(property, propertyDocTree);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   130
            } else {
17559
87c28ee29329 8011642: Remove LinkOutput in favor of direct use of Content
jjg
parents: 17558
diff changeset
   131
                Content link =
17558
eee4ccf66cfd 8010440: Replace int constants in LinkInfoImpl with enum
jjg
parents: 16319
diff changeset
   132
                        writer.getDocLink(LinkInfoImpl.Kind.PROPERTY_DOC_COPY,
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   133
                        holder, property,
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   134
                        holder.isIncluded() ?
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   135
                            holder.typeName() : holder.qualifiedTypeName(),
17559
87c28ee29329 8011642: Remove LinkOutput in favor of direct use of Content
jjg
parents: 17558
diff changeset
   136
                            false);
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   137
                Content codeLink = HtmlTree.CODE(link);
19253
b97b3e18547f 7198274: RFE : Javadoc Accessibility : Use CSS styles rather than <strong> or <i> tags
bpatel
parents: 17570
diff changeset
   138
                Content strong = HtmlTree.SPAN(HtmlStyle.strong, holder.isClass()?
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   139
                   writer.descfrmClassLabel : writer.descfrmInterfaceLabel);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   140
                strong.addContent(writer.getSpace());
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   141
                strong.addContent(codeLink);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   142
                propertyDocTree.addContent(HtmlTree.DIV(HtmlStyle.block, strong));
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   143
                writer.addInlineComment(property, propertyDocTree);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   144
            }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   145
        }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   146
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   147
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   148
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   149
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   150
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   151
    public void addTags(MethodDoc property, Content propertyDocTree) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   152
        writer.addTagsInfo(property, propertyDocTree);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   153
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   154
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   155
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   156
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   157
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   158
    public Content getPropertyDetails(Content propertyDetailsTree) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   159
        return getMemberTree(propertyDetailsTree);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   160
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   161
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   162
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   163
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   164
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   165
    public Content getPropertyDoc(Content propertyDocTree,
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   166
            boolean isLastContent) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   167
        return getMemberTree(propertyDocTree, isLastContent);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   168
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   169
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   170
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   171
     * Close the writer.
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   172
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   173
    public void close() throws IOException {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   174
        writer.close();
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   175
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   176
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   177
    public int getMemberKind() {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   178
        return VisibleMemberMap.PROPERTIES;
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   179
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   180
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   181
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   182
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   183
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   184
    public void addSummaryLabel(Content memberTree) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   185
        Content label = HtmlTree.HEADING(HtmlConstants.SUMMARY_HEADING,
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   186
                writer.getResource("doclet.Property_Summary"));
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   187
        memberTree.addContent(label);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   188
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   189
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   190
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   191
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   192
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   193
    public String getTableSummary() {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   194
        return configuration.getText("doclet.Member_Table_Summary",
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   195
                configuration.getText("doclet.Property_Summary"),
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   196
                configuration.getText("doclet.properties"));
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   197
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   198
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   199
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   200
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   201
     */
17570
78512b2899db 8012183: replace some uses of Configuration.getText with Configuration.getResource
jjg
parents: 17560
diff changeset
   202
    public Content getCaption() {
78512b2899db 8012183: replace some uses of Configuration.getText with Configuration.getResource
jjg
parents: 17560
diff changeset
   203
        return configuration.getResource("doclet.Properties");
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   204
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   205
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   206
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   207
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   208
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   209
    public String[] getSummaryTableHeader(ProgramElementDoc member) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   210
        String[] header = new String[] {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   211
            configuration.getText("doclet.Type"),
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   212
            configuration.getText("doclet.0_and_1",
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   213
                    configuration.getText("doclet.Property"),
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   214
                    configuration.getText("doclet.Description"))
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   215
        };
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   216
        return header;
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   217
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   218
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   219
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   220
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   221
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   222
    public void addSummaryAnchor(ClassDoc cd, Content memberTree) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   223
        memberTree.addContent(writer.getMarkerAnchor("property_summary"));
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   224
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   225
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   226
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   227
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   228
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   229
    public void addInheritedSummaryAnchor(ClassDoc cd, Content inheritedTree) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   230
        inheritedTree.addContent(writer.getMarkerAnchor(
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   231
                "properties_inherited_from_class_" + configuration.getClassName(cd)));
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   232
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   233
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   234
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   235
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   236
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   237
    public void addInheritedSummaryLabel(ClassDoc cd, Content inheritedTree) {
17560
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 17559
diff changeset
   238
        Content classLink = writer.getPreQualifiedClassLink(
9f6771abbd1a 8011650: reduce use of RawHtml nodes in doclet
jjg
parents: 17559
diff changeset
   239
                LinkInfoImpl.Kind.MEMBER, cd, false);
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   240
        Content label = new StringContent(cd.isClass() ?
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   241
            configuration.getText("doclet.Properties_Inherited_From_Class") :
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   242
            configuration.getText("doclet.Properties_Inherited_From_Interface"));
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   243
        Content labelHeading = HtmlTree.HEADING(HtmlConstants.INHERITED_SUMMARY_HEADING,
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   244
                label);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   245
        labelHeading.addContent(writer.getSpace());
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   246
        labelHeading.addContent(classLink);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   247
        inheritedTree.addContent(labelHeading);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   248
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   249
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   250
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   251
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   252
     */
17558
eee4ccf66cfd 8010440: Replace int constants in LinkInfoImpl with enum
jjg
parents: 16319
diff changeset
   253
    protected void addSummaryLink(LinkInfoImpl.Kind context, ClassDoc cd, ProgramElementDoc member,
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   254
            Content tdSummary) {
19253
b97b3e18547f 7198274: RFE : Javadoc Accessibility : Use CSS styles rather than <strong> or <i> tags
bpatel
parents: 17570
diff changeset
   255
        Content strong = HtmlTree.SPAN(HtmlStyle.strong,
b97b3e18547f 7198274: RFE : Javadoc Accessibility : Use CSS styles rather than <strong> or <i> tags
bpatel
parents: 17570
diff changeset
   256
                writer.getDocLink(context, cd,
b97b3e18547f 7198274: RFE : Javadoc Accessibility : Use CSS styles rather than <strong> or <i> tags
bpatel
parents: 17570
diff changeset
   257
                (MemberDoc) member,
b97b3e18547f 7198274: RFE : Javadoc Accessibility : Use CSS styles rather than <strong> or <i> tags
bpatel
parents: 17570
diff changeset
   258
                member.name().substring(0, member.name().lastIndexOf("Property")),
b97b3e18547f 7198274: RFE : Javadoc Accessibility : Use CSS styles rather than <strong> or <i> tags
bpatel
parents: 17570
diff changeset
   259
                false,
b97b3e18547f 7198274: RFE : Javadoc Accessibility : Use CSS styles rather than <strong> or <i> tags
bpatel
parents: 17570
diff changeset
   260
                true));
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   261
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   262
        Content code = HtmlTree.CODE(strong);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   263
        tdSummary.addContent(code);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   264
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   265
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   266
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   267
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   268
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   269
    protected void addInheritedSummaryLink(ClassDoc cd,
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   270
            ProgramElementDoc member, Content linksTree) {
17559
87c28ee29329 8011642: Remove LinkOutput in favor of direct use of Content
jjg
parents: 17558
diff changeset
   271
        linksTree.addContent(
17558
eee4ccf66cfd 8010440: Replace int constants in LinkInfoImpl with enum
jjg
parents: 16319
diff changeset
   272
                writer.getDocLink(LinkInfoImpl.Kind.MEMBER, cd, (MemberDoc)member,
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   273
                ((member.name().lastIndexOf("Property") != -1) && configuration.javafx)
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   274
                        ? member.name().substring(0, member.name().length() - "Property".length())
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   275
                        : member.name(),
17559
87c28ee29329 8011642: Remove LinkOutput in favor of direct use of Content
jjg
parents: 17558
diff changeset
   276
                false, true));
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   277
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   278
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   279
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   280
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   281
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   282
    protected void addSummaryType(ProgramElementDoc member, Content tdSummaryType) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   283
        MethodDoc property = (MethodDoc)member;
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   284
        addModifierAndType(property, property.returnType(), tdSummaryType);
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   285
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   286
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   287
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   288
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   289
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   290
    protected Content getDeprecatedLink(ProgramElementDoc member) {
17558
eee4ccf66cfd 8010440: Replace int constants in LinkInfoImpl with enum
jjg
parents: 16319
diff changeset
   291
        return writer.getDocLink(LinkInfoImpl.Kind.MEMBER,
16319
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   292
                (MemberDoc) member, ((MethodDoc)member).qualifiedName());
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   293
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   294
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   295
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   296
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   297
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   298
    protected Content getNavSummaryLink(ClassDoc cd, boolean link) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   299
        if (link) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   300
            return writer.getHyperLink((cd == null)?
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   301
                "property_summary":
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   302
                "properties_inherited_from_class_" +
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   303
                configuration.getClassName(cd),
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   304
                writer.getResource("doclet.navProperty"));
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   305
        } else {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   306
            return writer.getResource("doclet.navProperty");
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   307
        }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   308
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   309
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   310
    /**
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   311
     * {@inheritDoc}
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   312
     */
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   313
    protected void addNavDetailLink(boolean link, Content liNav) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   314
        if (link) {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   315
            liNav.addContent(writer.getHyperLink("property_detail",
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   316
                    writer.getResource("doclet.navProperty")));
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   317
        } else {
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   318
            liNav.addContent(writer.getResource("doclet.navProperty"));
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   319
        }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   320
    }
e586bfeb39c5 7112427: The doclet needs to be able to generate JavaFX documentation.
jjg
parents:
diff changeset
   321
}