Table of Contents

Class Component

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

Component()

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

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

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

Parameters

args object[]

Properties

AccessibleContext

public AccessibleContext AccessibleContext { get; }

Property Value

AccessibleContext

AlignmentX

public float AlignmentX { get; }

Property Value

float

AlignmentY

public float AlignmentY { get; }

Property Value

float

BOTTOM_ALIGNMENT

public static float BOTTOM_ALIGNMENT { get; }

Property Value

float

Background

public Color Background { get; set; }

Property Value

Color

Bounds

public Rectangle Bounds { get; set; }

Property Value

Rectangle

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

CENTER_ALIGNMENT

public static float CENTER_ALIGNMENT { get; }

Property Value

float

ColorModel

public ColorModel ColorModel { get; }

Property Value

ColorModel

ComponentListeners

public ComponentListener[] ComponentListeners { get; }

Property Value

ComponentListener[]

ComponentOrientation

public ComponentOrientation ComponentOrientation { get; set; }

Property Value

ComponentOrientation

Cursor

public Cursor Cursor { get; set; }

Property Value

Cursor

DropTarget

public DropTarget DropTarget { get; set; }

Property Value

DropTarget

FocusCycleRootAncestor

public Container FocusCycleRootAncestor { get; }

Property Value

Container

FocusListeners

public FocusListener[] FocusListeners { get; }

Property Value

FocusListener[]

FocusTraversalKeysEnabled

public bool FocusTraversalKeysEnabled { get; set; }

Property Value

bool

Font

public Font Font { get; set; }

Property Value

Font

Foreground

public Color Foreground { get; set; }

Property Value

Color

GetBaselineResizeBehavior

public Component.BaselineResizeBehavior GetBaselineResizeBehavior { get; }

Property Value

Component.BaselineResizeBehavior

Graphics

public Graphics Graphics { get; }

Property Value

Graphics

GraphicsConfiguration

public GraphicsConfiguration GraphicsConfiguration { get; }

Property Value

GraphicsConfiguration

Height

public int Height { get; }

Property Value

int

HierarchyBoundsListeners

public HierarchyBoundsListener[] HierarchyBoundsListeners { get; }

Property Value

HierarchyBoundsListener[]

HierarchyListeners

public HierarchyListener[] HierarchyListeners { get; }

Property Value

HierarchyListener[]

IgnoreRepaint

public bool IgnoreRepaint { get; set; }

Property Value

bool

InputContext

public InputContext InputContext { get; }

Property Value

InputContext

InputMethodListeners

public InputMethodListener[] InputMethodListeners { get; }

Property Value

InputMethodListener[]

InputMethodRequests

public InputMethodRequests InputMethodRequests { get; }

Property Value

InputMethodRequests

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

KeyListeners

public KeyListener[] KeyListeners { get; }

Property Value

KeyListener[]

LEFT_ALIGNMENT

public static float LEFT_ALIGNMENT { get; }

Property Value

float

Locale

public Locale Locale { get; set; }

Property Value

Locale

Location

public Point Location { get; set; }

Property Value

Point

LocationOnScreen

public Point LocationOnScreen { get; }

Property Value

Point

MaximumSize

public Dimension MaximumSize { get; set; }

Property Value

Dimension

MinimumSize

public Dimension MinimumSize { get; set; }

Property Value

Dimension

MouseListeners

public MouseListener[] MouseListeners { get; }

Property Value

MouseListener[]

MouseMotionListeners

public MouseMotionListener[] MouseMotionListeners { get; }

Property Value

MouseMotionListener[]

MousePosition

public Point MousePosition { get; }

Property Value

Point

MouseWheelListeners

public MouseWheelListener[] MouseWheelListeners { get; }

Property Value

MouseWheelListener[]

Name

public String Name { get; set; }

Property Value

String

Parent

public Container Parent { get; }

Property Value

Container

PreferredSize

public Dimension PreferredSize { get; set; }

Property Value

Dimension

PropertyChangeListeners

public PropertyChangeListener[] PropertyChangeListeners { get; }

Property Value

PropertyChangeListener[]

RIGHT_ALIGNMENT

public static float RIGHT_ALIGNMENT { get; }

Property Value

float

Size

public Dimension Size { get; set; }

Property Value

Dimension

TOP_ALIGNMENT

public static float TOP_ALIGNMENT { get; }

Property Value

float

Toolkit

public Toolkit Toolkit { get; }

Property Value

Toolkit

TreeLock

public object TreeLock { get; }

Property Value

object

Width

public int Width { get; }

Property Value

int

X

public int X { get; }

Property Value

int

Y

public int Y { get; }

Property Value

int

Methods

Add(PopupMenu)

public void Add(PopupMenu arg0)

Parameters

arg0 PopupMenu

PopupMenu

AddComponentListener(ComponentListener)

public void AddComponentListener(ComponentListener arg0)

Parameters

arg0 ComponentListener

ComponentListener

AddFocusListener(FocusListener)

public void AddFocusListener(FocusListener arg0)

Parameters

arg0 FocusListener

FocusListener

AddHierarchyBoundsListener(HierarchyBoundsListener)

public void AddHierarchyBoundsListener(HierarchyBoundsListener arg0)

Parameters

arg0 HierarchyBoundsListener

HierarchyBoundsListener

AddHierarchyListener(HierarchyListener)

public void AddHierarchyListener(HierarchyListener arg0)

Parameters

arg0 HierarchyListener

HierarchyListener

AddInputMethodListener(InputMethodListener)

public void AddInputMethodListener(InputMethodListener arg0)

Parameters

arg0 InputMethodListener

InputMethodListener

AddKeyListener(KeyListener)

public void AddKeyListener(KeyListener arg0)

Parameters

arg0 KeyListener

KeyListener

AddMouseListener(MouseListener)

public void AddMouseListener(MouseListener arg0)

Parameters

arg0 MouseListener

MouseListener

AddMouseMotionListener(MouseMotionListener)

public void AddMouseMotionListener(MouseMotionListener arg0)

Parameters

arg0 MouseMotionListener

MouseMotionListener

AddMouseWheelListener(MouseWheelListener)

public void AddMouseWheelListener(MouseWheelListener arg0)

Parameters

arg0 MouseWheelListener

MouseWheelListener

AddNotify()

public void AddNotify()

AddPropertyChangeListener(PropertyChangeListener)

public void AddPropertyChangeListener(PropertyChangeListener arg0)

Parameters

arg0 PropertyChangeListener

PropertyChangeListener

AddPropertyChangeListener(String, PropertyChangeListener)

public void AddPropertyChangeListener(String arg0, PropertyChangeListener arg1)

Parameters

arg0 String

String

arg1 PropertyChangeListener

PropertyChangeListener

ApplyComponentOrientation(ComponentOrientation)

public void ApplyComponentOrientation(ComponentOrientation arg0)

Parameters

arg0 ComponentOrientation

ComponentOrientation

AreFocusTraversalKeysSet(int)

public bool AreFocusTraversalKeysSet(int arg0)

Parameters

arg0 int

int

Returns

bool

bool

CheckImage(Image, ImageObserver)

public int CheckImage(Image arg0, ImageObserver arg1)

Parameters

arg0 Image

Image

arg1 ImageObserver

ImageObserver

Returns

int

int

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

Contains(Point)

public bool Contains(Point arg0)

Parameters

arg0 Point

Point

Returns

bool

bool

Contains(int, int)

public bool Contains(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

bool

bool

CreateImage(ImageProducer)

public Image CreateImage(ImageProducer arg0)

Parameters

arg0 ImageProducer

ImageProducer

Returns

Image

Image

CreateImage(int, int)

public Image CreateImage(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

Image

Image

CreateVolatileImage(int, int)

public VolatileImage CreateVolatileImage(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

VolatileImage

VolatileImage

CreateVolatileImage(int, int, ImageCapabilities)

public VolatileImage CreateVolatileImage(int arg0, int arg1, ImageCapabilities arg2)

Parameters

arg0 int

int

arg1 int

int

arg2 ImageCapabilities

ImageCapabilities

Returns

VolatileImage

VolatileImage

Exceptions

AWTException

DispatchEvent(AWTEvent)

public void DispatchEvent(AWTEvent arg0)

Parameters

arg0 AWTEvent

AWTEvent

DoLayout()

public void DoLayout()

EnableInputMethods(bool)

public void EnableInputMethods(bool arg0)

Parameters

arg0 bool

bool

FirePropertyChange(String, byte, byte)

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

Parameters

arg0 String

String

arg1 byte

byte

arg2 byte

byte

FirePropertyChange(String, char, char)

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

Parameters

arg0 String

String

arg1 char

char

arg2 char

char

FirePropertyChange(String, double, double)

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

Parameters

arg0 String

String

arg1 double

double

arg2 double

double

FirePropertyChange(String, short, short)

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

Parameters

arg0 String

String

arg1 short

short

arg2 short

short

FirePropertyChange(String, long, long)

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

Parameters

arg0 String

String

arg1 long

long

arg2 long

long

FirePropertyChange(String, float, float)

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

Parameters

arg0 String

String

arg1 float

float

arg2 float

float

GetBaseline(int, int)

public int GetBaseline(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

int

int

GetBounds(Rectangle)

public Rectangle GetBounds(Rectangle arg0)

Parameters

arg0 Rectangle

Rectangle

Returns

Rectangle

Rectangle

GetComponentAt(Point)

public Component GetComponentAt(Point arg0)

Parameters

arg0 Point

Point

Returns

Component

Component

GetComponentAt(int, int)

public Component GetComponentAt(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

Returns

Component

Component

GetFocusTraversalKeys(int)

public Set<AWTKeyStroke> GetFocusTraversalKeys(int arg0)

Parameters

arg0 int

int

Returns

Set<AWTKeyStroke>

Set

GetFontMetrics(Font)

public FontMetrics GetFontMetrics(Font arg0)

Parameters

arg0 Font

Font

Returns

FontMetrics

FontMetrics

GetListeners<T>(Class)

public T[] GetListeners<T>(Class arg0) where T : IEventListener, new()

Parameters

arg0 Class

Class

Returns

T[]

T

Type Parameters

T

IEventListener

GetLocation(Point)

public Point GetLocation(Point arg0)

Parameters

arg0 Point

Point

Returns

Point

Point

GetPropertyChangeListeners(String)

public PropertyChangeListener[] GetPropertyChangeListeners(String arg0)

Parameters

arg0 String

String

Returns

PropertyChangeListener[]

PropertyChangeListener

GetSize(Dimension)

public Dimension GetSize(Dimension arg0)

Parameters

arg0 Dimension

Dimension

Returns

Dimension

Dimension

HasFocus()

public bool HasFocus()

Returns

bool

bool

ImageUpdate(Image, int, int, int, int, int)

public bool ImageUpdate(Image arg0, int arg1, int arg2, int arg3, int arg4, int arg5)

Parameters

arg0 Image

Image

arg1 int

int

arg2 int

int

arg3 int

int

arg4 int

int

arg5 int

int

Returns

bool

bool

Invalidate()

public void Invalidate()

IsBackgroundSet()

public bool IsBackgroundSet()

Returns

bool

bool

IsCursorSet()

public bool IsCursorSet()

Returns

bool

bool

IsDisplayable()

public bool IsDisplayable()

Returns

bool

bool

IsDoubleBuffered()

public bool IsDoubleBuffered()

Returns

bool

bool

IsEnabled()

public bool IsEnabled()

Returns

bool

bool

IsFocusCycleRoot(Container)

public bool IsFocusCycleRoot(Container arg0)

Parameters

arg0 Container

Container

Returns

bool

bool

IsFocusOwner()

public bool IsFocusOwner()

Returns

bool

bool

IsFocusable()

public bool IsFocusable()

Returns

bool

bool

IsFontSet()

public bool IsFontSet()

Returns

bool

bool

IsForegroundSet()

public bool IsForegroundSet()

Returns

bool

bool

IsLightweight()

public bool IsLightweight()

Returns

bool

bool

IsMaximumSizeSet()

public bool IsMaximumSizeSet()

Returns

bool

bool

IsMinimumSizeSet()

public bool IsMinimumSizeSet()

Returns

bool

bool

IsOpaque()

public bool IsOpaque()

Returns

bool

bool

IsPreferredSizeSet()

public bool IsPreferredSizeSet()

Returns

bool

bool

IsShowing()

public bool IsShowing()

Returns

bool

bool

IsValid()

public bool IsValid()

Returns

bool

bool

IsVisible()

public bool IsVisible()

Returns

bool

bool

List()

public void List()

List(PrintStream)

public void List(PrintStream arg0)

Parameters

arg0 PrintStream

PrintStream

List(PrintStream, int)

public void List(PrintStream arg0, int arg1)

Parameters

arg0 PrintStream

PrintStream

arg1 int

int

List(PrintWriter)

public void List(PrintWriter arg0)

Parameters

arg0 PrintWriter

PrintWriter

List(PrintWriter, int)

public void List(PrintWriter arg0, int arg1)

Parameters

arg0 PrintWriter

PrintWriter

arg1 int

int

Paint(Graphics)

public void Paint(Graphics arg0)

Parameters

arg0 Graphics

Graphics

PaintAll(Graphics)

public void PaintAll(Graphics arg0)

Parameters

arg0 Graphics

Graphics

PrepareImage(Image, ImageObserver)

public bool PrepareImage(Image arg0, ImageObserver arg1)

Parameters

arg0 Image

Image

arg1 ImageObserver

ImageObserver

Returns

bool

bool

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

Print(Graphics)

public void Print(Graphics arg0)

Parameters

arg0 Graphics

Graphics

PrintAll(Graphics)

public void PrintAll(Graphics arg0)

Parameters

arg0 Graphics

Graphics

Remove(MenuComponent)

public void Remove(MenuComponent arg0)

Parameters

arg0 MenuComponent

MenuComponent

RemoveComponentListener(ComponentListener)

public void RemoveComponentListener(ComponentListener arg0)

Parameters

arg0 ComponentListener

ComponentListener

RemoveFocusListener(FocusListener)

public void RemoveFocusListener(FocusListener arg0)

Parameters

arg0 FocusListener

FocusListener

RemoveHierarchyBoundsListener(HierarchyBoundsListener)

public void RemoveHierarchyBoundsListener(HierarchyBoundsListener arg0)

Parameters

arg0 HierarchyBoundsListener

HierarchyBoundsListener

RemoveHierarchyListener(HierarchyListener)

public void RemoveHierarchyListener(HierarchyListener arg0)

Parameters

arg0 HierarchyListener

HierarchyListener

RemoveInputMethodListener(InputMethodListener)

public void RemoveInputMethodListener(InputMethodListener arg0)

Parameters

arg0 InputMethodListener

InputMethodListener

RemoveKeyListener(KeyListener)

public void RemoveKeyListener(KeyListener arg0)

Parameters

arg0 KeyListener

KeyListener

RemoveMouseListener(MouseListener)

public void RemoveMouseListener(MouseListener arg0)

Parameters

arg0 MouseListener

MouseListener

RemoveMouseMotionListener(MouseMotionListener)

public void RemoveMouseMotionListener(MouseMotionListener arg0)

Parameters

arg0 MouseMotionListener

MouseMotionListener

RemoveMouseWheelListener(MouseWheelListener)

public void RemoveMouseWheelListener(MouseWheelListener arg0)

Parameters

arg0 MouseWheelListener

MouseWheelListener

RemoveNotify()

public void RemoveNotify()

RemovePropertyChangeListener(PropertyChangeListener)

public void RemovePropertyChangeListener(PropertyChangeListener arg0)

Parameters

arg0 PropertyChangeListener

PropertyChangeListener

RemovePropertyChangeListener(String, PropertyChangeListener)

public void RemovePropertyChangeListener(String arg0, PropertyChangeListener arg1)

Parameters

arg0 String

String

arg1 PropertyChangeListener

PropertyChangeListener

Repaint()

public void Repaint()

Repaint(int, int, int, int)

public void Repaint(int arg0, int arg1, int arg2, int arg3)

Parameters

arg0 int

int

arg1 int

int

arg2 int

int

arg3 int

int

Repaint(long)

public void Repaint(long arg0)

Parameters

arg0 long

long

Repaint(long, int, int, int, int)

public void Repaint(long arg0, int arg1, int arg2, int arg3, int arg4)

Parameters

arg0 long

long

arg1 int

int

arg2 int

int

arg3 int

int

arg4 int

int

RequestFocus()

public void RequestFocus()

RequestFocus(Cause)

public void RequestFocus(FocusEvent.Cause arg0)

Parameters

arg0 FocusEvent.Cause

FocusEvent.Cause

RequestFocusInWindow()

public bool RequestFocusInWindow()

Returns

bool

bool

RequestFocusInWindow(Cause)

public bool RequestFocusInWindow(FocusEvent.Cause arg0)

Parameters

arg0 FocusEvent.Cause

FocusEvent.Cause

Returns

bool

bool

Revalidate()

public void Revalidate()

SetBounds(int, int, int, int)

public void SetBounds(int arg0, int arg1, int arg2, int arg3)

Parameters

arg0 int

int

arg1 int

int

arg2 int

int

arg3 int

int

SetEnabled(bool)

public void SetEnabled(bool arg0)

Parameters

arg0 bool

bool

SetFocusTraversalKeys<Arg1ExtendsJava_Awt_AWTKeyStroke>(int, Set<Arg1ExtendsJava_Awt_AWTKeyStroke>)

public void SetFocusTraversalKeys<Arg1ExtendsJava_Awt_AWTKeyStroke>(int arg0, Set<Arg1ExtendsJava_Awt_AWTKeyStroke> arg1) where Arg1ExtendsJava_Awt_AWTKeyStroke : AWTKeyStroke

Parameters

arg0 int

int

arg1 Set<Arg1ExtendsJava_Awt_AWTKeyStroke>

Set

Type Parameters

Arg1ExtendsJava_Awt_AWTKeyStroke

AWTKeyStroke

SetFocusable(bool)

public void SetFocusable(bool arg0)

Parameters

arg0 bool

bool

SetLocation(int, int)

public void SetLocation(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

SetMixingCutoutShape(Shape)

public void SetMixingCutoutShape(Shape arg0)

Parameters

arg0 Shape

Shape

SetSize(int, int)

public void SetSize(int arg0, int arg1)

Parameters

arg0 int

int

arg1 int

int

SetVisible(bool)

public void SetVisible(bool arg0)

Parameters

arg0 bool

bool

TransferFocus()

public void TransferFocus()

TransferFocusBackward()

public void TransferFocusBackward()

TransferFocusUpCycle()

public void TransferFocusUpCycle()

Update(Graphics)

public void Update(Graphics arg0)

Parameters

arg0 Graphics

Graphics

Validate()

public void Validate()

Operators

implicit operator ImageObserver(Component)

Converter from Component to ImageObserver

public static implicit operator ImageObserver(Component t)

Parameters

t Component

Returns

ImageObserver

implicit operator MenuContainer(Component)

Converter from Component to MenuContainer

public static implicit operator MenuContainer(Component t)

Parameters

t Component

Returns

MenuContainer

implicit operator Serializable(Component)

Converter from Component to Serializable

public static implicit operator Serializable(Component t)

Parameters

t Component

Returns

Serializable