Table of Contents

Class Toolkit

Namespace
Java.Awt
Assembly
MASES.JNet.dll
public class Toolkit : JVMBridgeBase<Toolkit>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Toolkit>
Toolkit
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Toolkit>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Toolkit>.IsAssignableFrom<T>()
JVMBridgeBase<Toolkit>.Execute<T>(params T[])
JVMBridgeBase<Toolkit>.DynBridgeClazz
JVMBridgeBase<Toolkit>.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

Toolkit()

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

[Obsolete("Toolkit 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 Toolkit()

Toolkit(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("Toolkit 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 Toolkit(params object[] args)

Parameters

args object[]

Properties

AWTEventListeners

public AWTEventListener[] AWTEventListeners { get; }

Property Value

AWTEventListener[]

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

ColorModel

public ColorModel ColorModel { get; }

Property Value

ColorModel

DefaultToolkit

public static Toolkit DefaultToolkit { get; }

Property Value

Toolkit

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

MaximumCursorColors

public int MaximumCursorColors { get; }

Property Value

int

MenuShortcutKeyMaskEx

public int MenuShortcutKeyMaskEx { get; }

Property Value

int

PropertyChangeListeners

public PropertyChangeListener[] PropertyChangeListeners { get; }

Property Value

PropertyChangeListener[]

ScreenResolution

public int ScreenResolution { get; }

Property Value

int

ScreenSize

public Dimension ScreenSize { get; }

Property Value

Dimension

SystemClipboard

public Clipboard SystemClipboard { get; }

Property Value

Clipboard

SystemEventQueue

public EventQueue SystemEventQueue { get; }

Property Value

EventQueue

SystemSelection

public Clipboard SystemSelection { get; }

Property Value

Clipboard

Methods

AddAWTEventListener(AWTEventListener, long)

public void AddAWTEventListener(AWTEventListener arg0, long arg1)

Parameters

arg0 AWTEventListener

AWTEventListener

arg1 long

long

AddPropertyChangeListener(String, PropertyChangeListener)

public void AddPropertyChangeListener(String arg0, PropertyChangeListener arg1)

Parameters

arg0 String

String

arg1 PropertyChangeListener

PropertyChangeListener

AreExtraMouseButtonsEnabled()

public bool AreExtraMouseButtonsEnabled()

Returns

bool

bool

Exceptions

HeadlessException

Beep()

public void Beep()

CheckImage(Image, int, int, ImageObserver)

public int CheckImage(Image arg0, int arg1, int arg2, ImageObserver arg3)

Parameters

arg0 Image

Image

arg1 int

int

arg2 int

int

arg3 ImageObserver

ImageObserver

Returns

int

int

CreateCustomCursor(Image, Point, String)

public Cursor CreateCustomCursor(Image arg0, Point arg1, String arg2)

Parameters

arg0 Image

Image

arg1 Point

Point

arg2 String

String

Returns

Cursor

Cursor

Exceptions

IndexOutOfBoundsException
HeadlessException

CreateDragGestureRecognizer<T>(Class, DragSource, Component, int, DragGestureListener)

public T CreateDragGestureRecognizer<T>(Class arg0, DragSource arg1, Component arg2, int arg3, DragGestureListener arg4) where T : DragGestureRecognizer

Parameters

arg0 Class

Class

arg1 DragSource

DragSource

arg2 Component

Component

arg3 int

int

arg4 DragGestureListener

DragGestureListener

Returns

T

T

Type Parameters

T

DragGestureRecognizer

CreateImage(ImageProducer)

public Image CreateImage(ImageProducer arg0)

Parameters

arg0 ImageProducer

ImageProducer

Returns

Image

Image

CreateImage(String)

public Image CreateImage(String arg0)

Parameters

arg0 String

String

Returns

Image

Image

CreateImage(URL)

public Image CreateImage(URL arg0)

Parameters

arg0 URL

URL

Returns

Image

Image

CreateImage(byte[])

public Image CreateImage(byte[] arg0)

Parameters

arg0 byte[]

byte

Returns

Image

Image

CreateImage(byte[], int, int)

public Image CreateImage(byte[] arg0, int arg1, int arg2)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 int

int

Returns

Image

Image

GetAWTEventListeners(long)

public AWTEventListener[] GetAWTEventListeners(long arg0)

Parameters

arg0 long

long

Returns

AWTEventListener[]

AWTEventListener

GetBestCursorSize(int, int)

public Dimension GetBestCursorSize(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

Dimension

Dimension

Exceptions

HeadlessException

GetDesktopProperty(String)

public object GetDesktopProperty(String arg0)

Parameters

arg0 String

String

Returns

object

object

GetImage(String)

public Image GetImage(String arg0)

Parameters

arg0 String

String

Returns

Image

Image

GetImage(URL)

public Image GetImage(URL arg0)

Parameters

arg0 URL

URL

Returns

Image

Image

GetLockingKeyState(int)

public bool GetLockingKeyState(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

Exceptions

UnsupportedOperationException

GetPrintJob(Frame, String, JobAttributes, PageAttributes)

public PrintJob GetPrintJob(Frame arg0, String arg1, JobAttributes arg2, PageAttributes arg3)

Parameters

arg0 Frame

Frame

arg1 String

String

arg2 JobAttributes

JobAttributes

arg3 PageAttributes

PageAttributes

Returns

PrintJob

PrintJob

GetPrintJob(Frame, String, Properties)

public PrintJob GetPrintJob(Frame arg0, String arg1, Properties arg2)

Parameters

arg0 Frame

Frame

arg1 String

String

arg2 Properties

Properties

Returns

PrintJob

PrintJob

GetProperty(String, String)

public static String GetProperty(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Returns

String

String

GetPropertyChangeListeners(String)

public PropertyChangeListener[] GetPropertyChangeListeners(String arg0)

Parameters

arg0 String

String

Returns

PropertyChangeListener[]

PropertyChangeListener

GetScreenInsets(GraphicsConfiguration)

public Insets GetScreenInsets(GraphicsConfiguration arg0)

Parameters

arg0 GraphicsConfiguration

GraphicsConfiguration

Returns

Insets

Insets

Exceptions

HeadlessException

IsAlwaysOnTopSupported()

public bool IsAlwaysOnTopSupported()

Returns

bool

bool

IsDynamicLayoutActive()

public bool IsDynamicLayoutActive()

Returns

bool

bool

Exceptions

HeadlessException

IsFrameStateSupported(int)

public bool IsFrameStateSupported(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

Exceptions

HeadlessException

IsModalExclusionTypeSupported(ModalExclusionType)

public bool IsModalExclusionTypeSupported(Dialog.ModalExclusionType arg0)

Parameters

arg0 Dialog.ModalExclusionType

Dialog.ModalExclusionType

Returns

bool

bool

IsModalityTypeSupported(ModalityType)

public bool IsModalityTypeSupported(Dialog.ModalityType arg0)

Parameters

arg0 Dialog.ModalityType

Dialog.ModalityType

Returns

bool

bool

MapInputMethodHighlight(InputMethodHighlight)

public Map<TextAttribute, object> MapInputMethodHighlight(InputMethodHighlight arg0)

Parameters

arg0 InputMethodHighlight

InputMethodHighlight

Returns

Map<TextAttribute, object>

Map

Exceptions

HeadlessException

PrepareImage(Image, int, int, ImageObserver)

public bool PrepareImage(Image arg0, int arg1, int arg2, ImageObserver arg3)

Parameters

arg0 Image

Image

arg1 int

int

arg2 int

int

arg3 ImageObserver

ImageObserver

Returns

bool

bool

RemoveAWTEventListener(AWTEventListener)

public void RemoveAWTEventListener(AWTEventListener arg0)

Parameters

arg0 AWTEventListener

AWTEventListener

RemovePropertyChangeListener(String, PropertyChangeListener)

public void RemovePropertyChangeListener(String arg0, PropertyChangeListener arg1)

Parameters

arg0 String

String

arg1 PropertyChangeListener

PropertyChangeListener

SetDynamicLayout(bool)

public void SetDynamicLayout(bool arg0)

Parameters

arg0 bool

bool

Exceptions

HeadlessException

SetLockingKeyState(int, bool)

public void SetLockingKeyState(int arg0, bool arg1)

Parameters

arg0 int

int

arg1 bool

bool

Exceptions

UnsupportedOperationException

Sync()

public void Sync()