Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8294809: ListenerHelper for managing and disconnecting listeners #908

Closed
Changes from 16 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
199d0ce
8294809: original code
andy-goryachev-oracle Oct 7, 2022
019adac
8294809: relicensed by author
andy-goryachev-oracle Oct 7, 2022
78774f4
8294809: renamed
andy-goryachev-oracle Oct 7, 2022
3b3610a
Merge remote-tracking branch 'origin/master' into 8294809.listener.he…
andy-goryachev-oracle Oct 7, 2022
8ff39da
8294809: null checks
andy-goryachev-oracle Oct 7, 2022
78dfacf
8294809: override
andy-goryachev-oracle Oct 7, 2022
718e255
8294809: cleanup
andy-goryachev-oracle Oct 7, 2022
1044940
8294809: event handlers and filters
andy-goryachev-oracle Oct 10, 2022
0589e78
8294809: whitespace
andy-goryachev-oracle Oct 11, 2022
d52802e
8294809: skin base
andy-goryachev-oracle Oct 11, 2022
cd6cd5c
8294809: change listener with callback
andy-goryachev-oracle Oct 11, 2022
39e0bd7
8294809: remove
andy-goryachev-oracle Oct 12, 2022
512a63d
8294809: tests
andy-goryachev-oracle Oct 12, 2022
af77693
8294809: use weak reference correctly this time
andy-goryachev-oracle Oct 12, 2022
2df4a85
8294809: removed weak listeners support
andy-goryachev-oracle Oct 14, 2022
c518cbf
Revert "8294809: removed weak listeners support"
andy-goryachev-oracle Oct 19, 2022
e36d328
8294809: is alive
andy-goryachev-oracle Oct 19, 2022
71ca35e
8294809: generics
andy-goryachev-oracle Oct 19, 2022
82c2027
Merge remote-tracking branch 'origin/master' into 8294809.listener.he…
andy-goryachev-oracle Oct 21, 2022
7a1fa62
8294809: map change listener
andy-goryachev-oracle Oct 21, 2022
e78ed6d
8294809: no public api
andy-goryachev-oracle Oct 28, 2022
e0e0aab
8294809: whitespace
andy-goryachev-oracle Oct 31, 2022
29a67ff
Merge remote-tracking branch 'origin/master' into 8294809.listener.he…
andy-goryachev-oracle Nov 4, 2022
470f42c
8294809: review comments
andy-goryachev-oracle Nov 4, 2022
08f92e2
Merge remote-tracking branch 'origin/master' into 8294809.listener.he…
andy-goryachev-oracle Nov 14, 2022
2a295c2
8294809: review comments
andy-goryachev-oracle Nov 14, 2022
8cef69c
8294809: review comments
andy-goryachev-oracle Nov 15, 2022
00566ed
Merge remote-tracking branch 'origin/master' into 8294809.listener.he…
andy-goryachev-oracle Nov 22, 2022
79ae28c
8294809: review comments
andy-goryachev-oracle Nov 23, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Copyright (c) 2022, 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
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.sun.javafx.scene.control;

/**
* A functional interface that provides a {@link #disconnect()} method.
* <p>
* Original code is re-licensed to Oracle by the author.
* https://github.com/andy-goryachev/FxTextEditor/blob/master/src/goryachev/common/util/Disconnectable.java
* Copyright © 2021-2022 Andy Goryachev <andy@goryachev.com>
*/
@FunctionalInterface
public interface IDisconnectable {
/**
* Disconnects what has been connected. May be called multiple times, only the
* first invocation actually disconnects.
*/
public void disconnect();
}
Loading