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=8.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=8.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=8.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, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
InvokeAsync
public DispatcherOperation InvokeAsync(Action callback, DispatcherPriority priority, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, OverflowException, Win32Exception, OutOfMemoryException, InvalidCastException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
OverflowException
Win32Exception
OutOfMemoryException
InvalidCastException
MulticastNotSupportedException
-
InvokeAsync
public DispatcherOperation InvokeAsync(Action callback, DispatcherPriority priority) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, Win32Exception, OutOfMemoryException, InvalidCastException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
Win32Exception
OutOfMemoryException
InvalidCastException
MulticastNotSupportedException
-
InvokeAsync
public DispatcherOperation InvokeAsync(Action callback) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, Win32Exception, OutOfMemoryException, InvalidCastException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
Win32Exception
OutOfMemoryException
InvalidCastException
MulticastNotSupportedException
-
Yield
public static DispatcherPriorityAwaitable Yield() throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, InvalidEnumArgumentException, RankException, ArrayTypeMismatchException
-
Yield
public static DispatcherPriorityAwaitable Yield(DispatcherPriority priority) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, RankException, ArrayTypeMismatchException
-
DisableProcessing
public DispatcherProcessingDisabled DisableProcessing() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException
-
BeginInvokeShutdown
public void BeginInvokeShutdown(DispatcherPriority priority) throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidEnumArgumentException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException
-
ExitAllFrames
public static void ExitAllFrames() throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException, InvalidEnumArgumentException, Win32Exception, TimeoutException, InvalidCastException, CultureNotFoundException, OutOfMemoryException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
ArgumentNullException
IndexOutOfRangeException
InvalidEnumArgumentException
Win32Exception
TimeoutException
InvalidCastException
CultureNotFoundException
OutOfMemoryException
-
Invoke
public void Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, OverflowException, Win32Exception, OutOfMemoryException, InvalidCastException, MulticastNotSupportedException, NullReferenceException, WaitHandleCannotBeOpenedException, AbandonedMutexException, TaskSchedulerException, TaskCanceledException, AggregateException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
OverflowException
Win32Exception
OutOfMemoryException
InvalidCastException
MulticastNotSupportedException
NullReferenceException
WaitHandleCannotBeOpenedException
AbandonedMutexException
TaskSchedulerException
TaskCanceledException
AggregateException
TimeoutException
-
Invoke
public void Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, ArgumentNullException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, Win32Exception, InvalidCastException, MulticastNotSupportedException, NullReferenceException, WaitHandleCannotBeOpenedException, AbandonedMutexException, TaskCanceledException, AggregateException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
OverflowException
ArgumentNullException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
Win32Exception
InvalidCastException
MulticastNotSupportedException
NullReferenceException
WaitHandleCannotBeOpenedException
AbandonedMutexException
TaskCanceledException
AggregateException
TimeoutException
-
Invoke
public void Invoke(Action callback, DispatcherPriority priority) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, ArgumentNullException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, Win32Exception, InvalidCastException, MulticastNotSupportedException, NullReferenceException, WaitHandleCannotBeOpenedException, AbandonedMutexException, TaskCanceledException, AggregateException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
OverflowException
ArgumentNullException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
Win32Exception
InvalidCastException
MulticastNotSupportedException
NullReferenceException
WaitHandleCannotBeOpenedException
AbandonedMutexException
TaskCanceledException
AggregateException
TimeoutException
-
Invoke
public void Invoke(Action callback) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, OverflowException, ArgumentNullException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, Win32Exception, InvalidCastException, MulticastNotSupportedException, NullReferenceException, WaitHandleCannotBeOpenedException, AbandonedMutexException, TaskCanceledException, AggregateException, TimeoutException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
OverflowException
ArgumentNullException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
Win32Exception
InvalidCastException
MulticastNotSupportedException
NullReferenceException
WaitHandleCannotBeOpenedException
AbandonedMutexException
TaskCanceledException
AggregateException
TimeoutException
-
InvokeShutdown
public void InvokeShutdown() throws java.lang.Throwable, ArgumentException, Win32Exception, ArgumentNullException, InvalidOperationException, OverflowException, PlatformNotSupportedException, ObjectDisposedException, ArgumentOutOfRangeException, AbandonedMutexException, TimeoutException
-
PushFrame
public static void PushFrame(DispatcherFrame frame) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidEnumArgumentException, Win32Exception, TimeoutException, InvalidCastException, OutOfMemoryException, IndexOutOfRangeException, SecurityException, IOException, UnauthorizedAccessException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
InvalidEnumArgumentException
Win32Exception
TimeoutException
InvalidCastException
OutOfMemoryException
IndexOutOfRangeException
SecurityException
IOException
UnauthorizedAccessException
NullReferenceException
-
Run
public static void Run() throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, InvalidEnumArgumentException, Win32Exception, NotSupportedException, ObjectDisposedException, SecurityException, IOException, UnauthorizedAccessException, NullReferenceException
- Throws:
java.lang.Throwable
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
ArgumentNullException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidOperationException
InvalidEnumArgumentException
Win32Exception
NotSupportedException
ObjectDisposedException
SecurityException
IOException
UnauthorizedAccessException
NullReferenceException
-
ValidatePriority
public static void ValidatePriority(DispatcherPriority priority, java.lang.String parameterName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, InvalidOperationException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
-
VerifyAccess
public void VerifyAccess() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
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, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, InvalidEnumArgumentException, Win32Exception, OverflowException, TimeoutException, CultureNotFoundException, SecurityException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ArgumentException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
InvalidEnumArgumentException
Win32Exception
OverflowException
TimeoutException
CultureNotFoundException
SecurityException
-
getHooks
public DispatcherHooks getHooks() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
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
-
-