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

Uncomplete ColorSelectionModel specification

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.3.0
    • docs
    • beta2
    • generic
    • generic



      Name: skT45625 Date: 06/05/2000


      java version "1.1.7"

      The documentation for ColorSelectionModel is incomplete.

      getSelectedColor
      ================
      1. May this method return null?
      2. May this method internally detect a change and fire events before returning
      (cf. JTree.DynamicUtilTreeNode)

      setSelectedColor
      ================
      1. May this method be called with a null argument?
      2. 'change' is undefined. Does passing a Color that equals() the old the
      selection color count as 'change'?

      DefaultColorSelectionModel seems to choke on a 'null' Color.


      ---------------------------------------------------------------------------
      'indexed' is unspecified. It should be explicitly state that it means positive
      integers (and not any integers at all).

      clearSelection/getSelectedIndex
      ===============================
      May these methods detect an internal change and fire an event before returning?

      setSelectedIndex
      ================
      Is setSelectedIndex(-1) allowed and equivalent to clearSelection()?


      (Review ID: 105745)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: