modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/TwoLevelFocusListBehavior.java

Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization

*** 23,46 **** * questions. */ package com.sun.javafx.scene.control.behavior; import javafx.scene.Node; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.input.KeyEvent; import javafx.beans.value.ChangeListener; import javafx.event.Event; import javafx.event.EventDispatcher; import javafx.event.EventHandler; import javafx.scene.input.MouseEvent; - import com.sun.javafx.scene.control.skin.ComboBoxPopupControl; - public class TwoLevelFocusListBehavior extends TwoLevelFocusBehavior { public TwoLevelFocusListBehavior(Node node) { tlNode = node; --- 23,46 ---- * questions. */ package com.sun.javafx.scene.control.behavior; + import com.sun.javafx.scene.control.Properties; import javafx.scene.Node; import javafx.scene.Parent; import javafx.scene.Scene; + import javafx.scene.control.skin.ComboBoxPopupControl; import javafx.scene.input.KeyEvent; import javafx.beans.value.ChangeListener; import javafx.event.Event; import javafx.event.EventDispatcher; import javafx.event.EventHandler; import javafx.scene.input.MouseEvent; public class TwoLevelFocusListBehavior extends TwoLevelFocusBehavior { public TwoLevelFocusListBehavior(Node node) { tlNode = node;
*** 188,198 **** ** if the ListView is actually the popup for a combobox then ** we go straight to internal-focus */ Parent p = tlNode.getParent(); if (p != null) { ! if (ComboBoxPopupControl.COMBO_BOX_STYLE_CLASS.equals(p.getStyleClass().toString())) { b = false; } } } --- 188,198 ---- ** if the ListView is actually the popup for a combobox then ** we go straight to internal-focus */ Parent p = tlNode.getParent(); if (p != null) { ! if (Properties.COMBO_BOX_STYLE_CLASS.equals(p.getStyleClass().toString())) { b = false; } } }