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

BasicTreeUI contains getters/setters with unclear spec

XMLWordPrintable

    • b10
    • generic
    • generic

      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.

            trebari Tejpal Rebari (Inactive)
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: