Class DebouncedCatchAllListener
java.lang.Object
com.inductiveautomation.ignition.client.util.gui.CatchAllListener
com.inductiveautomation.ignition.client.util.gui.DebouncedCatchAllListener
- All Implemented Interfaces:
Disposable
,ActionListener
,ItemListener
,PropertyChangeListener
,EventListener
,ChangeListener
,DocumentListener
-
Constructor Summary
ConstructorsConstructorDescriptionDebouncedCatchAllListener
(int delay, ActionListener listener) DebouncedCatchAllListener
(int delay, ActionListener listener, Runnable onStartCallback) DebouncedCatchAllListener
(ActionListener listener) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
static DebouncedCatchAllListener
static DebouncedCatchAllListener
static void
install
(JTextComponent component, Runnable callback) static DebouncedCatchAllListener
install
(JTextComponent component, Runnable callback, int delay) protected void
onChange()
Methods inherited from class com.inductiveautomation.ignition.client.util.gui.CatchAllListener
actionPerformed, changedUpdate, create, createCoalesced, insertUpdate, itemStateChanged, propertyChange, removeUpdate, stateChanged
-
Constructor Details
-
DebouncedCatchAllListener
-
DebouncedCatchAllListener
-
DebouncedCatchAllListener
public DebouncedCatchAllListener(int delay, ActionListener listener, @Nullable Runnable onStartCallback) - Parameters:
delay
- This is the time to wait before calling thelistener
after the last data update.listener
- The callback to call when thedelay
has passed without any new data updates.onStartCallback
- The callback to call when the first data update is received after
-
-
Method Details
-
install
-
install
public static DebouncedCatchAllListener install(JTextComponent component, Runnable callback, int delay) -
install
-
install
public static DebouncedCatchAllListener install(Document document, Runnable callback, Runnable onStartCallback, int delay) -
onChange
protected void onChange()- Specified by:
onChange
in classCatchAllListener
-
dispose
public void dispose()- Specified by:
dispose
in interfaceDisposable
-