public class IlSwingThreadSyncStrategy extends IlSynchronizationStrategy
IlSynchronizationStrategy
abstract class.
It uses the Swing event thread to provide synchronization.
DEFAULT_PROPERTY
Constructor and Description |
---|
IlSwingThreadSyncStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
isInTargetThread()
Returns
true if currently executing in the Swing/AWT thread. |
boolean |
synchronizeRun(Runnable runnable,
Object lock)
The runnable parameter is passed to IlvSwingUtil.invokeLater
if the current thread is not the Swing event thread.
|
GetDefault, readLock, SetDefault, writeLock
public boolean synchronizeRun(Runnable runnable, Object lock)
synchronizeRun
in class IlSynchronizationStrategy
runnable
- The Runnable
object on which the run method will be calledlock
- This object may be used as the object to synchronize onfalse
if the operation fails for any reason.IlvSwingUtil.invokeLater(Runnable)
,
SwingUtilities.invokeLater(Runnable)
public boolean isInTargetThread()
true
if currently executing in the Swing/AWT thread.isInTargetThread
in class IlSynchronizationStrategy
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.