Table of Contents

Class SwingWorker<T, V>

Namespace
Javax.Swing
Assembly
MASES.JNet.dll
public class SwingWorker<T, V> : RunnableFuture<T>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IRunnableFuture<T>

Type Parameters

T
V
Inheritance
JVMBridgeBase
JVMBridgeBase<RunnableFuture<T>>
SwingWorker<T, V>
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<RunnableFuture<T>>.IsAssignableFrom(IJavaType)
JVMBridgeBase<RunnableFuture<T>>.IsAssignableFrom<T>()
JVMBridgeBase<RunnableFuture<T>>.Execute<T>(params T[])
JVMBridgeBase<RunnableFuture<T>>.DynBridgeClazz
JVMBridgeBase<RunnableFuture<T>>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

SwingWorker()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("SwingWorker class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public SwingWorker()

SwingWorker(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("SwingWorker class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public SwingWorker(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Progress

public int Progress { get; }

Property Value

int

PropertyChangeSupport

public PropertyChangeSupport PropertyChangeSupport { get; }

Property Value

PropertyChangeSupport

State

public SwingWorker.StateValue State { get; }

Property Value

SwingWorker.StateValue

Methods

AddPropertyChangeListener(PropertyChangeListener)

public void AddPropertyChangeListener(PropertyChangeListener arg0)

Parameters

arg0 PropertyChangeListener

PropertyChangeListener

Cancel(bool)

public bool Cancel(bool arg0)

Parameters

arg0 bool

bool

Returns

bool

bool

Execute()

public void Execute()

FirePropertyChange(String, object, object)

public void FirePropertyChange(String arg0, object arg1, object arg2)

Parameters

arg0 String

String

arg1 object

object

arg2 object

object

Get()

public T Get()

Returns

T

T

Exceptions

InterruptedException
ExecutionException

Get(long, TimeUnit)

public T Get(long arg0, TimeUnit arg1)

Parameters

arg0 long

long

arg1 TimeUnit

TimeUnit

Returns

T

T

Exceptions

InterruptedException
ExecutionException
TimeoutException

IsCancelled()

public bool IsCancelled()

Returns

bool

bool

IsDone()

public bool IsDone()

Returns

bool

bool

RemovePropertyChangeListener(PropertyChangeListener)

public void RemovePropertyChangeListener(PropertyChangeListener arg0)

Parameters

arg0 PropertyChangeListener

PropertyChangeListener

Run()

public void Run()

Operators

implicit operator SwingWorker(SwingWorker<T, V>)

Converter from SwingWorker<T, V> to SwingWorker

public static implicit operator SwingWorker(SwingWorker<T, V> t)

Parameters

t SwingWorker<T, V>

Returns

SwingWorker