public class

ComponentAccessor

extends Object
java.lang.Object
   ↳ sun.awt.ComponentAccessor

Class Overview

A collection of methods for modifying package private fields in AWT components. This class is meant to be used by Peer code only. Previously peer code got around this problem by modifying fields from native code. However as we move away from native code to Pure-java peers we need this class.

Summary

Public Methods
static void enableEvents(Component c, long event_mask)
static Color getBackground(Component c)
static Cursor getCursor_NoClientCode(Component c)
static Font getFont(Component c)
static Font getFont_NoClientCode(Component c)
static Color getForeground(Component c)
static int getHeight(Component c)
static boolean getIgnoreRepaint(Component comp)
static boolean getIsPacked(Component c)
static Point getLocation_NoClientCode(Component c)
static Container getParent_NoClientCode(Component c)
static ComponentPeer getPeer(Component c)
static boolean getVisible(Component c)
static int getWidth(Component c)
static int getX(Component c)
static int getY(Component c)
static boolean isEnabledImpl(Component c)
static void processEvent(Component c, AWTEvent event)
static void resetGC(Component c)
static void setBackground(Component c, Color color)
static void setBounds(Component c, int x, int y, int width, int height)
static void setHeight(Component c, int height)
static void setParent(Component c, Container parent)
static void setPeer(Component c, ComponentPeer peer)
static void setWidth(Component c, int width)
static void setX(Component c, int x)
static void setY(Component c, int y)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void enableEvents (Component c, long event_mask)

public static Color getBackground (Component c)

public static Cursor getCursor_NoClientCode (Component c)

public static Font getFont (Component c)

public static Font getFont_NoClientCode (Component c)

public static Color getForeground (Component c)

public static int getHeight (Component c)

public static boolean getIgnoreRepaint (Component comp)

public static boolean getIsPacked (Component c)

public static Point getLocation_NoClientCode (Component c)

public static Container getParent_NoClientCode (Component c)

public static ComponentPeer getPeer (Component c)

public static boolean getVisible (Component c)

public static int getWidth (Component c)

public static int getX (Component c)

public static int getY (Component c)

public static boolean isEnabledImpl (Component c)

public static void processEvent (Component c, AWTEvent event)

public static void resetGC (Component c)

public static void setBackground (Component c, Color color)

public static void setBounds (Component c, int x, int y, int width, int height)

public static void setHeight (Component c, int height)

public static void setParent (Component c, Container parent)

public static void setPeer (Component c, ComponentPeer peer)

public static void setWidth (Component c, int width)

public static void setX (Component c, int x)

public static void setY (Component c, int y)