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.See: https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Threading.Dispatcher
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static String
assemblyShortName
Assembly name: WindowsBasestatic String
className
Qualified class name: System.Windows.Threading.Dispatcherstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description Dispatcher()
Dispatcher(Object instance)
Internal constructor.
-
Method Summary
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final 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 String assemblyShortName
Assembly name: WindowsBase- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Windows.Threading.Dispatcher- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public 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 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 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 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 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:
Throwable
- in case of error during cast operation
-
FromThread
public static Dispatcher FromThread(Thread thread) throws Throwable, ArgumentException, ArgumentOutOfRangeException
-
InvokeAsync
public DispatcherOperation InvokeAsync(Action callback) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, Win32Exception, NotSupportedException, InvalidCastException, MulticastNotSupportedException
- Throws:
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 Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, Win32Exception, NotSupportedException, InvalidCastException, MulticastNotSupportedException
- Throws:
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 Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, FormatException, InvalidEnumArgumentException, NullReferenceException, NotSupportedException, OverflowException, Win32Exception, InvalidCastException, MulticastNotSupportedException
- Throws:
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 Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException
-
Yield
public static DispatcherPriorityAwaitable Yield(DispatcherPriority priority) throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, FormatException, InvalidEnumArgumentException
- Throws:
Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
ArgumentOutOfRangeException
NotImplementedException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
FormatException
InvalidEnumArgumentException
-
DisableProcessing
public DispatcherProcessingDisabled DisableProcessing() throws Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
-
BeginInvokeShutdown
public void BeginInvokeShutdown(DispatcherPriority priority) throws Throwable, ArgumentException, NullReferenceException, ArgumentNullException, Win32Exception, InvalidEnumArgumentException, InvalidOperationException, ArgumentOutOfRangeException
-
ExitAllFrames
public static void ExitAllFrames() throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, InvalidEnumArgumentException, Win32Exception, OutOfMemoryException, OverflowException, TimeoutException, SecurityException, InvalidCastException, CultureNotFoundException, PlatformNotSupportedException, NotSupportedException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
InvalidEnumArgumentException
Win32Exception
OutOfMemoryException
OverflowException
TimeoutException
SecurityException
InvalidCastException
CultureNotFoundException
PlatformNotSupportedException
NotSupportedException
-
Invoke
public void Invoke(Action callback) throws 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:
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 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:
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 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:
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 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:
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 Throwable, ArgumentException, ArgumentNullException, Win32Exception, InvalidOperationException, OverflowException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, ArgumentOutOfRangeException, MissingMethodException, TargetInvocationException, TimeoutException
-
PushFrame
public static void PushFrame(DispatcherFrame frame) throws Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, InvalidEnumArgumentException, Win32Exception, OutOfMemoryException, OverflowException, TimeoutException, SecurityException, InvalidCastException, CultureNotFoundException, PlatformNotSupportedException, NotSupportedException, UnauthorizedAccessException, IOException
- Throws:
Throwable
ArgumentNullException
ArgumentException
ArgumentOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
InvalidEnumArgumentException
Win32Exception
OutOfMemoryException
OverflowException
TimeoutException
SecurityException
InvalidCastException
CultureNotFoundException
PlatformNotSupportedException
NotSupportedException
UnauthorizedAccessException
IOException
-
Run
public static void Run() throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, InvalidOperationException, Win32Exception, SecurityException, NotSupportedException, MissingMethodException, TargetInvocationException, NullReferenceException, ObjectDisposedException, UnauthorizedAccessException, IOException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidEnumArgumentException
InvalidOperationException
Win32Exception
SecurityException
NotSupportedException
MissingMethodException
TargetInvocationException
NullReferenceException
ObjectDisposedException
UnauthorizedAccessException
IOException
-
ValidatePriority
public static void ValidatePriority(DispatcherPriority priority, String parameterName) throws Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
- Throws:
Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
NotImplementedException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
-
VerifyAccess
public void VerifyAccess() throws Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, AbandonedMutexException
-
getCurrentDispatcher
public static Dispatcher getCurrentDispatcher() throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, InvalidEnumArgumentException, Win32Exception, KeyNotFoundException, OutOfMemoryException, OverflowException, TimeoutException, SecurityException, CultureNotFoundException, PlatformNotSupportedException, NotSupportedException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
MissingManifestResourceException
NotImplementedException
ObjectDisposedException
InvalidOperationException
IndexOutOfRangeException
InvalidEnumArgumentException
Win32Exception
KeyNotFoundException
OutOfMemoryException
OverflowException
TimeoutException
SecurityException
CultureNotFoundException
PlatformNotSupportedException
NotSupportedException
-
getHooks
public DispatcherHooks getHooks() throws Throwable, ArgumentException
- Throws:
Throwable
ArgumentException
-
addShutdownFinished
public void addShutdownFinished(EventHandler handler) throws Throwable
- Throws:
Throwable
-
removeShutdownFinished
public void removeShutdownFinished(EventHandler handler) throws Throwable
- Throws:
Throwable
-
addShutdownStarted
public void addShutdownStarted(EventHandler handler) throws Throwable
- Throws:
Throwable
-
removeShutdownStarted
public void removeShutdownStarted(EventHandler handler) throws Throwable
- Throws:
Throwable
-
addUnhandledException
public void addUnhandledException(DispatcherUnhandledExceptionEventHandler handler) throws Throwable
- Throws:
Throwable
-
removeUnhandledException
public void removeUnhandledException(DispatcherUnhandledExceptionEventHandler handler) throws Throwable
- Throws:
Throwable
-
addUnhandledExceptionFilter
public void addUnhandledExceptionFilter(DispatcherUnhandledExceptionFilterEventHandler handler) throws Throwable
- Throws:
Throwable
-
removeUnhandledExceptionFilter
public void removeUnhandledExceptionFilter(DispatcherUnhandledExceptionFilterEventHandler handler) throws Throwable
- Throws:
Throwable
-
-