Java Code Examples for javafx.scene.control.TextInputControl#removeEventFilter()
The following examples show how to use
javafx.scene.control.TextInputControl#removeEventFilter() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XPasteBuffer.java From phoebus with Eclipse Public License 1.0 | 4 votes |
/** @param field Text field from which middle-button-paste will be removed */ public static void removeMiddleClickPaste(final TextInputControl field) { if (XPasteBuffer.is_supported) field.removeEventFilter(MouseEvent.MOUSE_PRESSED, middle_click); }
Example 2
Source File: AutocompleteMenu.java From phoebus with Eclipse Public License 1.0 | 3 votes |
/** Detach a previously attached field from the completion menu. * * <p>In the rare case where the completion is no longer desired, * while the text field is still in the UI, * call this method. * * <p>It is <b>not</b> necessary to 'detach' whenever the text field vanishes, * for example when a panel is closed. * In that case, the vanished text field will simply no longer send events * that trigger the menu. * * @param field Field for which completion is no longer desired */ public void detachField(final TextInputControl field) { field.focusedProperty().removeListener(focused_listener); field.removeEventFilter(KeyEvent.KEY_RELEASED, key_released_filter); field.removeEventFilter(KeyEvent.KEY_PRESSED, key_pressed_filter); XPasteBuffer.removeMiddleClickPaste(field); }