Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8190295

Introduce a new Table builder class

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: tools
    • Labels:

      Description

      HTML tables are a common feature of the documentation generated by the standard doclet, and generally all of them conform to a similar design. However, the code to generate these tables is replicated and distributed across 10 or so classes, for the different instances of tables.

      Not only is this difficult to maintain, it has also led to needless inconsistencies between the instances, and occasional bugs.

      It would be better to encapsulate the logic to generate these tables. A better methodology would be to "declare" the characteristics of a table (summary, caption, number of columns etc) and then just have clients "populate" the cells, such that the enclosing tags for the table (<td> <th> <tr> <tbody> etc) are all handled as needed by the table buiilder.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jjg Jonathan Gibbons
              Reporter:
              jjg Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: