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.StringassemblyFullNameFully assembly qualified name: WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.StringassemblyShortNameAssembly name: WindowsBasestatic java.lang.StringclassNameQualified class name: System.Windows.Threading.Dispatcherstatic JCTypeclassTypeThe 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:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Dispatcher cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoDispatcher, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Dispatcherinstance- 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.ThrowableArgumentExceptionArgumentOutOfRangeException
-
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.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionWin32ExceptionNotSupportedExceptionInvalidCastExceptionMulticastNotSupportedException
-
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.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionWin32ExceptionNotSupportedExceptionInvalidCastExceptionMulticastNotSupportedException
-
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.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionInvalidEnumArgumentExceptionNullReferenceExceptionNotSupportedExceptionOverflowExceptionWin32ExceptionInvalidCastExceptionMulticastNotSupportedException
-
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.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionInvalidEnumArgumentException
-
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.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionInvalidEnumArgumentExceptionWin32ExceptionOutOfMemoryExceptionOverflowExceptionTimeoutExceptionSecurityExceptionInvalidCastExceptionPlatformNotSupportedExceptionNotSupportedException
-
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.ThrowableArgumentExceptionOverflowExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionSecurityExceptionNullReferenceExceptionWin32ExceptionInvalidCastExceptionMulticastNotSupportedExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionAbandonedMutexExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionTimeoutException
-
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.ThrowableArgumentExceptionOverflowExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionSecurityExceptionNullReferenceExceptionWin32ExceptionInvalidCastExceptionMulticastNotSupportedExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionAbandonedMutexExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionTimeoutException
-
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.ThrowableArgumentExceptionOverflowExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionFormatExceptionInvalidEnumArgumentExceptionSecurityExceptionNullReferenceExceptionWin32ExceptionInvalidCastExceptionMulticastNotSupportedExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionAbandonedMutexExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionTimeoutException
-
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.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionInvalidEnumArgumentExceptionOverflowExceptionSecurityExceptionNullReferenceExceptionWin32ExceptionNotSupportedExceptionInvalidCastExceptionMulticastNotSupportedExceptionWaitHandleCannotBeOpenedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionThreadAbortExceptionTaskSchedulerExceptionTaskCanceledExceptionAggregateExceptionTimeoutException
-
InvokeShutdown
public void InvokeShutdown() throws java.lang.Throwable, ArgumentException, ArgumentNullException, Win32Exception, InvalidOperationException, OverflowException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, TimeoutException- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionWin32ExceptionInvalidOperationExceptionOverflowExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionMissingMethodExceptionTargetInvocationExceptionTimeoutException
-
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.ThrowableArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionInvalidEnumArgumentExceptionWin32ExceptionOutOfMemoryExceptionOverflowExceptionTimeoutExceptionSecurityExceptionInvalidCastExceptionPlatformNotSupportedExceptionNotSupportedExceptionUnauthorizedAccessExceptionIOException
-
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.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidEnumArgumentExceptionInvalidOperationExceptionWin32ExceptionSecurityExceptionNotSupportedExceptionMissingMethodExceptionTargetInvocationExceptionNullReferenceExceptionObjectDisposedExceptionUnauthorizedAccessExceptionIOException
-
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.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatExceptionInvalidEnumArgumentException
-
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.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionIndexOutOfRangeExceptionInvalidEnumArgumentExceptionWin32ExceptionKeyNotFoundExceptionOutOfMemoryExceptionOverflowExceptionTimeoutExceptionSecurityExceptionPlatformNotSupportedExceptionNotSupportedException
-
getHooks
public DispatcherHooks getHooks() throws java.lang.Throwable, ArgumentException
- Throws:
java.lang.ThrowableArgumentException
-
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
-
-