Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-118

Javadoc for OdfTableCell.setHorizontalJustify is wrong and related comments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • odfdom-0.8.6
    • odfdom-0.8.7
    • java
    • None
    • Operating System: All
      Platform: All
    • 187

    Description

      The Javadoc for OdfTableCell.setHorizontalJustify is wrong. It says to use values like "left" and "right" (which makes sense to the user who is used to seeing those words in the OpenOffice and Symphony editors).

      However, the API actually expects values like "start" and "end". While this may be what ODF does under the covers to support bi-directional languages, this is not what the programmer would expect.

      So two issues here.

      1. The Javadoc is currently wrong

      2. It would be better in this case if the code matched the Javadoc really wouldn't it?

      Attachments

        Issue Links

          Activity

            People

              svanteschubert@odftoolkit.org Svante Schubert
              kelvin@odftoolkit.org kelvin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: