Class Component
public class Component : JVMBridgeBase<Component>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBaseInstance>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeBaseInstance, IJVMBridgeDefinition
- Inheritance
-
Component
- Implements
- Derived
- Extension Methods
Constructors
Component(IJVMBridgeBaseInitializer)
Initializer used internally by JCOBridge. Do not use directly.
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Component(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
Properties
AccessibleContext
public AccessibleContext AccessibleContext { get; }
Property Value
AlignmentX
public float AlignmentX { get; }
Property Value
AlignmentY
public float AlignmentY { get; }
Property Value
BOTTOM_ALIGNMENT
public static float BOTTOM_ALIGNMENT { get; set; }
Property Value
Background
https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#getBackground-- https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#setBackground-java.awt.Color-
public Color Background { get; set; }
Property Value
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
CENTER_ALIGNMENT
public static float CENTER_ALIGNMENT { get; set; }
Property Value
ColorModel
public ColorModel ColorModel { get; }
Property Value
ComponentListeners
public ComponentListener[] ComponentListeners { get; }
Property Value
ComponentOrientation
https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#getComponentOrientation-- https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#setComponentOrientation-java.awt.ComponentOrientation-
public ComponentOrientation ComponentOrientation { get; set; }
Property Value
Cursor
https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#getCursor-- https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#setCursor-java.awt.Cursor-
public Cursor Cursor { get; set; }
Property Value
DropTarget
https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#getDropTarget-- https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#setDropTarget-java.awt.dnd.DropTarget-
public DropTarget DropTarget { get; set; }
Property Value
FocusCycleRootAncestor
public Container FocusCycleRootAncestor { get; }
Property Value
FocusListeners
public FocusListener[] FocusListeners { get; }
Property Value
FocusTraversalKeysEnabled
https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#getFocusTraversalKeysEnabled-- https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#setFocusTraversalKeysEnabled-boolean-
public bool FocusTraversalKeysEnabled { get; set; }
Property Value
Font
https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#getFont-- https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#setFont-java.awt.Font-
public Font Font { get; set; }
Property Value
Foreground
https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#getForeground-- https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#setForeground-java.awt.Color-
public Color Foreground { get; set; }
Property Value
GetBaselineResizeBehavior
public Component.BaselineResizeBehavior GetBaselineResizeBehavior { get; }
Property Value
Graphics
public Graphics Graphics { get; }
Property Value
GraphicsConfiguration
public GraphicsConfiguration GraphicsConfiguration { get; }
Property Value
Height
public int Height { get; }
Property Value
HierarchyBoundsListeners
public HierarchyBoundsListener[] HierarchyBoundsListeners { get; }
Property Value
HierarchyListeners
public HierarchyListener[] HierarchyListeners { get; }
Property Value
IgnoreRepaint
https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#getIgnoreRepaint-- https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#setIgnoreRepaint-boolean-
public bool IgnoreRepaint { get; set; }
Property Value
InputContext
public InputContext InputContext { get; }
Property Value
InputMethodListeners
public InputMethodListener[] InputMethodListeners { get; }
Property Value
InputMethodRequests
public InputMethodRequests InputMethodRequests { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements java.lang.AutoCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
KeyListeners
public KeyListener[] KeyListeners { get; }
Property Value
LEFT_ALIGNMENT
public static float LEFT_ALIGNMENT { get; set; }
Property Value
Locale
https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#getLocale-- https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#setLocale-java.util.Locale-
public Locale Locale { get; set; }
Property Value
LocationOnScreen
public Point LocationOnScreen { get; }
Property Value
MaximumSize
https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#getMaximumSize-- https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#setMaximumSize-java.awt.Dimension-
public Dimension MaximumSize { get; set; }
Property Value
MouseListeners
public MouseListener[] MouseListeners { get; }
Property Value
MouseMotionListeners
public MouseMotionListener[] MouseMotionListeners { get; }
Property Value
MousePosition
public Point MousePosition { get; }
Property Value
MouseWheelListeners
public MouseWheelListener[] MouseWheelListeners { get; }
Property Value
Name
https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#getName-- https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#setName-java.lang.String-
public String Name { get; set; }
Property Value
Parent
public Container Parent { get; }
Property Value
PropertyChangeListeners
public PropertyChangeListener[] PropertyChangeListeners { get; }
Property Value
RIGHT_ALIGNMENT
public static float RIGHT_ALIGNMENT { get; set; }
Property Value
TOP_ALIGNMENT
public static float TOP_ALIGNMENT { get; set; }
Property Value
Toolkit
public Toolkit Toolkit { get; }
Property Value
TreeLock
public object TreeLock { get; }
Property Value
Width
public int Width { get; }
Property Value
X
public int X { get; }
Property Value
Y
public int Y { get; }
Property Value
Methods
Action(Event, object)
[Obsolete("Deprecated in JVM")]
public bool Action(Event arg0, object arg1)
Parameters
Returns
Add(PopupMenu)
public void Add(PopupMenu arg0)
Parameters
AddComponentListener(ComponentListener)
public void AddComponentListener(ComponentListener arg0)
Parameters
AddFocusListener(FocusListener)
public void AddFocusListener(FocusListener arg0)
Parameters
AddHierarchyBoundsListener(HierarchyBoundsListener)
public void AddHierarchyBoundsListener(HierarchyBoundsListener arg0)
Parameters
AddHierarchyListener(HierarchyListener)
public void AddHierarchyListener(HierarchyListener arg0)
Parameters
AddInputMethodListener(InputMethodListener)
public void AddInputMethodListener(InputMethodListener arg0)
Parameters
AddKeyListener(KeyListener)
public void AddKeyListener(KeyListener arg0)
Parameters
arg0KeyListener
AddMouseListener(MouseListener)
public void AddMouseListener(MouseListener arg0)
Parameters
AddMouseMotionListener(MouseMotionListener)
public void AddMouseMotionListener(MouseMotionListener arg0)
Parameters
AddMouseWheelListener(MouseWheelListener)
public void AddMouseWheelListener(MouseWheelListener arg0)
Parameters
AddNotify()
public void AddNotify()
AddPropertyChangeListener(PropertyChangeListener)
public void AddPropertyChangeListener(PropertyChangeListener arg0)
Parameters
AddPropertyChangeListener(String, PropertyChangeListener)
public void AddPropertyChangeListener(String arg0, PropertyChangeListener arg1)
Parameters
ApplyComponentOrientation(ComponentOrientation)
public void ApplyComponentOrientation(ComponentOrientation arg0)
Parameters
AreFocusTraversalKeysSet(int)
public bool AreFocusTraversalKeysSet(int arg0)
Parameters
Returns
Bounds()
[Obsolete("Deprecated in JVM")]
public Rectangle Bounds()
Returns
CheckImage(Image, ImageObserver)
public int CheckImage(Image arg0, ImageObserver arg1)
Parameters
arg0Imagearg1ImageObserver
Returns
CheckImage(Image, int, int, ImageObserver)
public int CheckImage(Image arg0, int arg1, int arg2, ImageObserver arg3)
Parameters
arg0Imagearg1intarg2intarg3ImageObserver
Returns
Contains(Point)
public bool Contains(Point arg0)
Parameters
Returns
Contains(int, int)
public bool Contains(int arg0, int arg1)
Parameters
Returns
CreateImage(ImageProducer)
public Image CreateImage(ImageProducer arg0)
Parameters
Returns
CreateImage(int, int)
public Image CreateImage(int arg0, int arg1)
Parameters
Returns
CreateVolatileImage(int, int)
public VolatileImage CreateVolatileImage(int arg0, int arg1)
Parameters
Returns
CreateVolatileImage(int, int, ImageCapabilities)
public VolatileImage CreateVolatileImage(int arg0, int arg1, ImageCapabilities arg2)
Parameters
arg0intarg1intarg2ImageCapabilities
Returns
Exceptions
DeliverEvent(Event)
[Obsolete("Deprecated in JVM")]
public void DeliverEvent(Event arg0)
Parameters
Disable()
[Obsolete("Deprecated in JVM")]
public void Disable()
DispatchEvent(AWTEvent)
public void DispatchEvent(AWTEvent arg0)
Parameters
DoLayout()
public void DoLayout()
Enable()
[Obsolete("Deprecated in JVM")]
public void Enable()
Enable(bool)
[Obsolete("Deprecated in JVM")]
public void Enable(bool arg0)
Parameters
EnableInputMethods(bool)
public void EnableInputMethods(bool arg0)
Parameters
FirePropertyChange(String, byte, byte)
public void FirePropertyChange(String arg0, byte arg1, byte arg2)
Parameters
FirePropertyChange(String, char, char)
public void FirePropertyChange(String arg0, char arg1, char arg2)
Parameters
FirePropertyChange(String, double, double)
public void FirePropertyChange(String arg0, double arg1, double arg2)
Parameters
FirePropertyChange(String, short, short)
public void FirePropertyChange(String arg0, short arg1, short arg2)
Parameters
FirePropertyChange(String, long, long)
public void FirePropertyChange(String arg0, long arg1, long arg2)
Parameters
FirePropertyChange(String, float, float)
public void FirePropertyChange(String arg0, float arg1, float arg2)
Parameters
GetBaseline(int, int)
public int GetBaseline(int arg0, int arg1)
Parameters
Returns
GetBounds()
public Rectangle GetBounds()
Returns
GetBounds(Rectangle)
public Rectangle GetBounds(Rectangle arg0)
Parameters
Returns
GetComponentAt(Point)
public Component GetComponentAt(Point arg0)
Parameters
Returns
GetComponentAt(int, int)
public Component GetComponentAt(int arg0, int arg1)
Parameters
Returns
GetFocusTraversalKeys(int)
public Set<AWTKeyStroke> GetFocusTraversalKeys(int arg0)
Parameters
Returns
GetFontMetrics(Font)
public FontMetrics GetFontMetrics(Font arg0)
Parameters
Returns
GetListeners<T>(Class)
public T[] GetListeners<T>(Class arg0) where T : IEventListener
Parameters
Returns
- T[]
T
Type Parameters
GetLocation()
public Point GetLocation()
Returns
GetLocation(Point)
public Point GetLocation(Point arg0)
Parameters
Returns
GetMinimumSize()
public Dimension GetMinimumSize()
Returns
GetPreferredSize()
public Dimension GetPreferredSize()
Returns
GetPropertyChangeListeners(String)
public PropertyChangeListener[] GetPropertyChangeListeners(String arg0)
Parameters
Returns
GetSize()
public Dimension GetSize()
Returns
GetSize(Dimension)
public Dimension GetSize(Dimension arg0)
Parameters
Returns
GotFocus(Event, object)
[Obsolete("Deprecated in JVM")]
public bool GotFocus(Event arg0, object arg1)
Parameters
Returns
HandleEvent(Event)
[Obsolete("Deprecated in JVM")]
public bool HandleEvent(Event arg0)
Parameters
Returns
HasFocus()
public bool HasFocus()
Returns
Hide()
[Obsolete("Deprecated in JVM")]
public void Hide()
ImageUpdate(Image, int, int, int, int, int)
public bool ImageUpdate(Image arg0, int arg1, int arg2, int arg3, int arg4, int arg5)
Parameters
Returns
Inside(int, int)
[Obsolete("Deprecated in JVM")]
public bool Inside(int arg0, int arg1)
Parameters
Returns
Invalidate()
public void Invalidate()
IsBackgroundSet()
public bool IsBackgroundSet()
Returns
IsCursorSet()
public bool IsCursorSet()
Returns
IsDisplayable()
public bool IsDisplayable()
Returns
IsDoubleBuffered()
public bool IsDoubleBuffered()
Returns
IsEnabled()
public bool IsEnabled()
Returns
IsFocusCycleRoot(Container)
public bool IsFocusCycleRoot(Container arg0)
Parameters
Returns
IsFocusOwner()
public bool IsFocusOwner()
Returns
IsFocusTraversable()
[Obsolete("Deprecated in JVM")]
public bool IsFocusTraversable()
Returns
IsFocusable()
public bool IsFocusable()
Returns
IsFontSet()
public bool IsFontSet()
Returns
IsForegroundSet()
public bool IsForegroundSet()
Returns
IsLightweight()
public bool IsLightweight()
Returns
IsMaximumSizeSet()
public bool IsMaximumSizeSet()
Returns
IsMinimumSizeSet()
public bool IsMinimumSizeSet()
Returns
IsOpaque()
public bool IsOpaque()
Returns
IsPreferredSizeSet()
public bool IsPreferredSizeSet()
Returns
IsShowing()
public bool IsShowing()
Returns
IsValid()
public bool IsValid()
Returns
IsVisible()
public bool IsVisible()
Returns
KeyDown(Event, int)
[Obsolete("Deprecated in JVM")]
public bool KeyDown(Event arg0, int arg1)
Parameters
Returns
KeyUp(Event, int)
[Obsolete("Deprecated in JVM")]
public bool KeyUp(Event arg0, int arg1)
Parameters
Returns
Layout()
[Obsolete("Deprecated in JVM")]
public void Layout()
List()
public void List()
List(PrintStream)
public void List(PrintStream arg0)
Parameters
arg0PrintStream
List(PrintStream, int)
public void List(PrintStream arg0, int arg1)
Parameters
arg0PrintStreamarg1int
List(PrintWriter)
public void List(PrintWriter arg0)
Parameters
arg0PrintWriter
List(PrintWriter, int)
public void List(PrintWriter arg0, int arg1)
Parameters
arg0PrintWriterarg1int
Locate(int, int)
[Obsolete("Deprecated in JVM")]
public Component Locate(int arg0, int arg1)
Parameters
Returns
Location()
[Obsolete("Deprecated in JVM")]
public Point Location()
Returns
LostFocus(Event, object)
[Obsolete("Deprecated in JVM")]
public bool LostFocus(Event arg0, object arg1)
Parameters
Returns
MinimumSize()
[Obsolete("Deprecated in JVM")]
public Dimension MinimumSize()
Returns
MouseDown(Event, int, int)
[Obsolete("Deprecated in JVM")]
public bool MouseDown(Event arg0, int arg1, int arg2)
Parameters
Returns
MouseDrag(Event, int, int)
[Obsolete("Deprecated in JVM")]
public bool MouseDrag(Event arg0, int arg1, int arg2)
Parameters
Returns
MouseEnter(Event, int, int)
https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#mouseEnter-java.awt.Event-int-int-
[Obsolete("Deprecated in JVM")]
public bool MouseEnter(Event arg0, int arg1, int arg2)
Parameters
Returns
MouseExit(Event, int, int)
[Obsolete("Deprecated in JVM")]
public bool MouseExit(Event arg0, int arg1, int arg2)
Parameters
Returns
MouseMove(Event, int, int)
[Obsolete("Deprecated in JVM")]
public bool MouseMove(Event arg0, int arg1, int arg2)
Parameters
Returns
MouseUp(Event, int, int)
[Obsolete("Deprecated in JVM")]
public bool MouseUp(Event arg0, int arg1, int arg2)
Parameters
Returns
Move(int, int)
[Obsolete("Deprecated in JVM")]
public void Move(int arg0, int arg1)
Parameters
NextFocus()
[Obsolete("Deprecated in JVM")]
public void NextFocus()
Paint(Graphics)
public void Paint(Graphics arg0)
Parameters
PaintAll(Graphics)
public void PaintAll(Graphics arg0)
Parameters
PostEvent(Event)
[Obsolete("Deprecated in JVM")]
public bool PostEvent(Event arg0)
Parameters
Returns
PreferredSize()
[Obsolete("Deprecated in JVM")]
public Dimension PreferredSize()
Returns
PrepareImage(Image, ImageObserver)
public bool PrepareImage(Image arg0, ImageObserver arg1)
Parameters
arg0Imagearg1ImageObserver
Returns
PrepareImage(Image, int, int, ImageObserver)
public bool PrepareImage(Image arg0, int arg1, int arg2, ImageObserver arg3)
Parameters
arg0Imagearg1intarg2intarg3ImageObserver
Returns
Print(Graphics)
public void Print(Graphics arg0)
Parameters
PrintAll(Graphics)
public void PrintAll(Graphics arg0)
Parameters
Remove(MenuComponent)
public void Remove(MenuComponent arg0)
Parameters
RemoveComponentListener(ComponentListener)
public void RemoveComponentListener(ComponentListener arg0)
Parameters
RemoveFocusListener(FocusListener)
public void RemoveFocusListener(FocusListener arg0)
Parameters
RemoveHierarchyBoundsListener(HierarchyBoundsListener)
public void RemoveHierarchyBoundsListener(HierarchyBoundsListener arg0)
Parameters
RemoveHierarchyListener(HierarchyListener)
public void RemoveHierarchyListener(HierarchyListener arg0)
Parameters
RemoveInputMethodListener(InputMethodListener)
public void RemoveInputMethodListener(InputMethodListener arg0)
Parameters
RemoveKeyListener(KeyListener)
public void RemoveKeyListener(KeyListener arg0)
Parameters
arg0KeyListener
RemoveMouseListener(MouseListener)
public void RemoveMouseListener(MouseListener arg0)
Parameters
RemoveMouseMotionListener(MouseMotionListener)
public void RemoveMouseMotionListener(MouseMotionListener arg0)
Parameters
RemoveMouseWheelListener(MouseWheelListener)
public void RemoveMouseWheelListener(MouseWheelListener arg0)
Parameters
RemoveNotify()
public void RemoveNotify()
RemovePropertyChangeListener(PropertyChangeListener)
public void RemovePropertyChangeListener(PropertyChangeListener arg0)
Parameters
RemovePropertyChangeListener(String, PropertyChangeListener)
public void RemovePropertyChangeListener(String arg0, PropertyChangeListener arg1)
Parameters
Repaint()
public void Repaint()
Repaint(int, int, int, int)
public void Repaint(int arg0, int arg1, int arg2, int arg3)
Parameters
Repaint(long)
public void Repaint(long arg0)
Parameters
Repaint(long, int, int, int, int)
public void Repaint(long arg0, int arg1, int arg2, int arg3, int arg4)
Parameters
RequestFocus()
public void RequestFocus()
RequestFocusInWindow()
public bool RequestFocusInWindow()
Returns
Reshape(int, int, int, int)
[Obsolete("Deprecated in JVM")]
public void Reshape(int arg0, int arg1, int arg2, int arg3)
Parameters
Resize(Dimension)
[Obsolete("Deprecated in JVM")]
public void Resize(Dimension arg0)
Parameters
Resize(int, int)
[Obsolete("Deprecated in JVM")]
public void Resize(int arg0, int arg1)
Parameters
Revalidate()
public void Revalidate()
SetBounds(Rectangle)
public void SetBounds(Rectangle arg0)
Parameters
SetBounds(int, int, int, int)
public void SetBounds(int arg0, int arg1, int arg2, int arg3)
Parameters
SetEnabled(bool)
public void SetEnabled(bool arg0)
Parameters
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
Type Parameters
Arg1ExtendsJava_Awt_AWTKeyStroke
SetFocusable(bool)
public void SetFocusable(bool arg0)
Parameters
SetLocation(Point)
public void SetLocation(Point arg0)
Parameters
SetLocation(int, int)
public void SetLocation(int arg0, int arg1)
Parameters
SetMinimumSize(Dimension)
https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#setMinimumSize-java.awt.Dimension-
public void SetMinimumSize(Dimension arg0)
Parameters
SetPreferredSize(Dimension)
public void SetPreferredSize(Dimension arg0)
Parameters
SetSize(Dimension)
public void SetSize(Dimension arg0)
Parameters
SetSize(int, int)
public void SetSize(int arg0, int arg1)
Parameters
SetVisible(bool)
public void SetVisible(bool arg0)
Parameters
Show()
[Obsolete("Deprecated in JVM")]
public void Show()
Show(bool)
[Obsolete("Deprecated in JVM")]
public void Show(bool arg0)
Parameters
Size()
[Obsolete("Deprecated in JVM")]
public Dimension Size()
Returns
TransferFocus()
public void TransferFocus()
TransferFocusBackward()
public void TransferFocusBackward()
TransferFocusUpCycle()
public void TransferFocusUpCycle()
Update(Graphics)
public void Update(Graphics arg0)
Parameters
Validate()
public void Validate()
Operators
implicit operator ImageObserver(Component)
Converter from Component to ImageObserver
public static implicit operator ImageObserver(Component t)
Parameters
Returns
implicit operator MenuContainer(Component)
Converter from Component to MenuContainer
public static implicit operator MenuContainer(Component t)
Parameters
Returns
implicit operator Serializable(Component)
Converter from Component to Serializable
public static implicit operator Serializable(Component t)