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

Add hasProperties method to MenuItem and Toggle

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • javafx
    • None
    • source
    • minimal
    • Hide
      This change adds a new method to a non-final public class.
      This might cause a source incompatibility in the case when child class declares a method with the same signature.
      Show
      This change adds a new method to a non-final public class. This might cause a source incompatibility in the case when child class declares a method with the same signature.
    • Java API
    • JDK

      Summary

      Add public boolean hasProperties() method to MenuItem class and Toggle interface.

      Problem

      Most JavaFX classes with properties have the hasProperties method, such as Node.hasProperties(). MenuItem class, and Toggle interface are both missing hasProperties() method.

      Solution

      Add a missing public boolean hasProperties() method.

      Specification

      javafx/scene/control/MenuItem.java
      +    /**
      +     * Tests if this menu item has properties.
      +     * @return {@code true} if this menu item has properties.
      +     * @since 22
      +     */
      +     public boolean hasProperties() {
      
      javafx/scene/control/Toggle.java
      +    /**
      +     * Tests if this toggle has properties.
      +     * @return {@code true} if this toggle has properties.
      +     * @since 22
      +     */
      +    boolean hasProperties();

            angorya Andy Goryachev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: