modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/PasswordFieldBehavior.java
Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -24,13 +24,11 @@
*/
package com.sun.javafx.scene.control.behavior;
import javafx.scene.control.PasswordField;
-
-import com.sun.javafx.scene.text.HitInfo;
-
+import static javafx.scene.control.skin.TextFieldSkin.TextPosInfo;
/**
* Password field behavior.
*/
public class PasswordFieldBehavior extends TextFieldBehavior {
@@ -42,16 +40,16 @@
// RT-18711 & RT-18854: Stub out word based navigation and editing
// for security reasons.
protected void deletePreviousWord() { }
protected void deleteNextWord() { }
protected void selectPreviousWord() { }
- protected void selectNextWord() { }
+ public void selectNextWord() { }
protected void previousWord() { }
protected void nextWord() { }
protected void selectWord() {
- getControl().selectAll();
+ getNode().selectAll();
}
- protected void mouseDoubleClick(HitInfo hit) {
- getControl().selectAll();
+ protected void mouseDoubleClick(TextPosInfo hit) {
+ getNode().selectAll();
}
}