Package system.windows.threading
Class Dispatcher
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.windows.threading.Dispatcher
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class Dispatcher extends NetObject
The base .NET class managing System.Windows.Threading.Dispatcher, WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Threading.Dispatcher
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.String
assemblyShortName
Assembly name: WindowsBasestatic java.lang.String
className
Qualified class name: System.Windows.Threading.Dispatcherstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description Dispatcher()
Dispatcher(java.lang.Object instance)
Internal constructor.
-
Method Summary
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: WindowsBase- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Threading.Dispatcher- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Dispatcher cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoDispatcher
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Dispatcher
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
CheckAccess
public boolean CheckAccess() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
FromThread
public static Dispatcher FromThread(Thread thread) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
-
InvokeAsync
public DispatcherOperation InvokeAsync(Action callback) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, Win32Exception, NotSupportedException, InvalidCastException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
ArgumentOutOfRangeException
FormatException
InvalidEnumArgumentException
Win32Exception
NotSupportedException
InvalidCastException
MulticastNotSupportedException
-
InvokeAsync
public DispatcherOperation InvokeAsync(Action callback, DispatcherPriority priority) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, Win32Exception, NotSupportedException, InvalidCastException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
ArgumentOutOfRangeException
FormatException
InvalidEnumArgumentException
Win32Exception
NotSupportedException
InvalidCastException
MulticastNotSupportedException
-
InvokeAsync
public DispatcherOperation InvokeAsync(Action callback, DispatcherPriority priority, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, FormatException, InvalidEnumArgumentException, NullReferenceException, NotSupportedException, OverflowException, Win32Exception, InvalidCastException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
ArgumentOutOfRangeException
NotImplementedException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
FormatException
InvalidEnumArgumentException
NullReferenceException
NotSupportedException
OverflowException
Win32Exception
InvalidCastException
MulticastNotSupportedException
-
Yield
public static DispatcherPriorityAwaitable Yield() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException
-
Yield
public static DispatcherPriorityAwaitable Yield(DispatcherPriority priority) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, FormatException, InvalidEnumArgumentException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
ArgumentOutOfRangeException
NotImplementedException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
FormatException
InvalidEnumArgumentException
-
DisableProcessing
public DispatcherProcessingDisabled DisableProcessing() throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
-
BeginInvokeShutdown
public void BeginInvokeShutdown(DispatcherPriority priority) throws java.lang.Throwable, ArgumentException, NullReferenceException, ArgumentNullException, Win32Exception, InvalidEnumArgumentException, InvalidOperationException, ArgumentOutOfRangeException
-
ExitAllFrames
public static void ExitAllFrames() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, InvalidEnumArgumentException, Win32Exception, OutOfMemoryException, OverflowException, TimeoutException, SecurityException, InvalidCastException, PlatformNotSupportedException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
InvalidEnumArgumentException
Win32Exception
OutOfMemoryException
OverflowException
TimeoutException
SecurityException
InvalidCastException
PlatformNotSupportedException
NotSupportedException
-
Invoke
public void Invoke(Action callback) throws java.lang.Throwable, ArgumentException, OverflowException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, SecurityException, NullReferenceException, Win32Exception, InvalidCastException, MulticastNotSupportedException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, AbandonedMutexException, TaskSchedulerException, TaskCanceledException, AggregateException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentException
OverflowException
ArgumentNullException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
ArgumentOutOfRangeException
FormatException
InvalidEnumArgumentException
SecurityException
NullReferenceException
Win32Exception
InvalidCastException
MulticastNotSupportedException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
AbandonedMutexException
TaskSchedulerException
TaskCanceledException
AggregateException
TimeoutException
-
Invoke
public void Invoke(Action callback, DispatcherPriority priority) throws java.lang.Throwable, ArgumentException, OverflowException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, SecurityException, NullReferenceException, Win32Exception, InvalidCastException, MulticastNotSupportedException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, AbandonedMutexException, TaskSchedulerException, TaskCanceledException, AggregateException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentException
OverflowException
ArgumentNullException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
ArgumentOutOfRangeException
FormatException
InvalidEnumArgumentException
SecurityException
NullReferenceException
Win32Exception
InvalidCastException
MulticastNotSupportedException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
AbandonedMutexException
TaskSchedulerException
TaskCanceledException
AggregateException
TimeoutException
-
Invoke
public void Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, OverflowException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, SecurityException, NullReferenceException, Win32Exception, InvalidCastException, MulticastNotSupportedException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, AbandonedMutexException, TaskSchedulerException, TaskCanceledException, AggregateException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentException
OverflowException
ArgumentNullException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
ArgumentOutOfRangeException
FormatException
InvalidEnumArgumentException
SecurityException
NullReferenceException
Win32Exception
InvalidCastException
MulticastNotSupportedException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
AbandonedMutexException
TaskSchedulerException
TaskCanceledException
AggregateException
TimeoutException
-
Invoke
public void Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, FormatException, InvalidEnumArgumentException, OverflowException, SecurityException, NullReferenceException, Win32Exception, NotSupportedException, InvalidCastException, MulticastNotSupportedException, WaitHandleCannotBeOpenedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, ThreadAbortException, TaskSchedulerException, TaskCanceledException, AggregateException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
ArgumentOutOfRangeException
NotImplementedException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
FormatException
InvalidEnumArgumentException
OverflowException
SecurityException
NullReferenceException
Win32Exception
NotSupportedException
InvalidCastException
MulticastNotSupportedException
WaitHandleCannotBeOpenedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
ThreadAbortException
TaskSchedulerException
TaskCanceledException
AggregateException
TimeoutException
-
InvokeShutdown
public void InvokeShutdown() throws java.lang.Throwable, ArgumentException, ArgumentNullException, Win32Exception, InvalidOperationException, OverflowException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
Win32Exception
InvalidOperationException
OverflowException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
ArgumentOutOfRangeException
MissingMethodException
TargetInvocationException
TimeoutException
-
PushFrame
public static void PushFrame(DispatcherFrame frame) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, InvalidEnumArgumentException, Win32Exception, OutOfMemoryException, OverflowException, TimeoutException, SecurityException, InvalidCastException, PlatformNotSupportedException, NotSupportedException, UnauthorizedAccessException, IOException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
InvalidEnumArgumentException
Win32Exception
OutOfMemoryException
OverflowException
TimeoutException
SecurityException
InvalidCastException
PlatformNotSupportedException
NotSupportedException
UnauthorizedAccessException
IOException
-
Run
public static void Run() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, InvalidOperationException, Win32Exception, SecurityException, NotSupportedException, MissingMethodException, TargetInvocationException, NullReferenceException, ObjectDisposedException, UnauthorizedAccessException, IOException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidEnumArgumentException
InvalidOperationException
Win32Exception
SecurityException
NotSupportedException
MissingMethodException
TargetInvocationException
NullReferenceException
ObjectDisposedException
UnauthorizedAccessException
IOException
-
ValidatePriority
public static void ValidatePriority(DispatcherPriority priority, java.lang.String parameterName) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
- Throws:
java.lang.Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
-
VerifyAccess
public void VerifyAccess() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
-
getHasShutdownFinished
public boolean getHasShutdownFinished() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getHasShutdownStarted
public boolean getHasShutdownStarted() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getThread
public Thread getThread() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCurrentDispatcher
public static Dispatcher getCurrentDispatcher() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, InvalidEnumArgumentException, Win32Exception, KeyNotFoundException, OutOfMemoryException, OverflowException, TimeoutException, SecurityException, PlatformNotSupportedException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
InvalidEnumArgumentException
Win32Exception
KeyNotFoundException
OutOfMemoryException
OverflowException
TimeoutException
SecurityException
PlatformNotSupportedException
NotSupportedException
-
getHooks
public DispatcherHooks getHooks() throws java.lang.Throwable, ArgumentException
- Throws:
java.lang.Throwable
ArgumentException
-
addShutdownFinished
public void addShutdownFinished(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeShutdownFinished
public void removeShutdownFinished(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addShutdownStarted
public void addShutdownStarted(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeShutdownStarted
public void removeShutdownStarted(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addUnhandledException
public void addUnhandledException(DispatcherUnhandledExceptionEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeUnhandledException
public void removeUnhandledException(DispatcherUnhandledExceptionEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addUnhandledExceptionFilter
public void addUnhandledExceptionFilter(DispatcherUnhandledExceptionFilterEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeUnhandledExceptionFilter
public void removeUnhandledExceptionFilter(DispatcherUnhandledExceptionFilterEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-