changeset 1412:9d0660e793f6

RT-23084: Calling "setSelected(true)" on CheckBox fires ActionEvent.
author Kinsley Wong
date Thu, 05 Jul 2012 11:33:33 -0700
parents 907808cece4e
children d48861b45651
files javafx-ui-controls/src/javafx/scene/control/CheckBox.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/javafx/scene/control/CheckBox.java	Thu Jul 05 11:32:11 2012 -0700
+++ b/javafx-ui-controls/src/javafx/scene/control/CheckBox.java	Thu Jul 05 11:33:33 2012 -0700
@@ -123,7 +123,6 @@
                 @Override protected void invalidated() {
                     impl_pseudoClassStateChanged(PSEUDO_CLASS_DETERMINATE);
                     impl_pseudoClassStateChanged(PSEUDO_CLASS_INDETERMINATE);
-                    fireEvent(new ActionEvent());
                 }
 
                 @Override
@@ -156,7 +155,6 @@
             selected = new BooleanPropertyBase() {
                 @Override protected void invalidated() {
                     impl_pseudoClassStateChanged(PSEUDO_CLASS_SELECTED);
-                    fireEvent(new ActionEvent());
                 }
 
                 @Override
@@ -225,6 +223,7 @@
             setSelected(!isSelected());
             setIndeterminate(false);
         }
+        fireEvent(new ActionEvent());
     }
 
     /***************************************************************************