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

BasicTreeUI contains getters/setters with unclear spec

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b10
    • CPU:
      generic
    • OS:
      generic

      Description

      Platform: ALL
      JDK: ALL

      Class javax.swing.plaf.basic.BasicTreeUI
      http://download.java.net/jdk7/docs/api/javax/swing/plaf/basic/BasicTreeUI.html

      contains some getters/setters that are not consistent and have specification that says nothing about how they should be used and how do they behave in BasicTreeUI

        setRowHeight() / getRowHeight()
        setShowsRootHandles() / getShowsRootHandles()
        setRootVisible() / isRootVisible()
        setEditable() / isEditable()
        setCellEditor() / getCellEditor()
        setCellRenderer() / getCellRenderer()

      Values passed to setter are not equal to those returned from getter. The spec says nothing about this.

      While many other properties ( "largeModel", "hashColor", "model" etc) have getter/setter that correspond each other.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              trebari Tejpal Rebari
              Reporter:
              dbessono Dmitry Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: