IActionListener Comments

This commit is contained in:
Kam committed 2025-07-08 16:34:34 -04:00
1 parent 41d4ca8c27
commit 1b76f1ab7e
3 files changed
+40 -38

No files matched your search

@@ -262,18 +262,18 @@ public class Action implements IAction {
//////////////////////////////////////////////////
// Listener
public IAction listenTo(String hook, Object object) {
return listenTo(hook, manager.getOrCreateListener(object));
}
public IAction listenTo(String hook, IActionListener listener) {
return listenTo(listener.getOrCreateHook(hook));
}
public IAction listenTo(ActionListener.Hook hook) {
hook.schedule(this);
return this;
}
// public IAction listenTo(String hook, Object object) {
// return listenTo(hook, manager.getOrCreateListener(object));
// }
//
// public IAction listenTo(String hook, IActionListener listener) {
// return listenTo(listener.getOrCreateHook(hook));
// }
//
// public IAction listenTo(ActionListener.Hook hook) {
// hook.schedule(this);
// return this;
// }
///////////////////////////////////////////////////
//////////////////////////////////////////////////