java > java.awt > java.awt.component >

Class: java.awt.Component
    java.lang.Object
       java.awt.Component


public abstract class Component extends Object implements ImageObserver, MenuContainer, Serializable

Inner Class(es): Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy

FIELDS:
public static final float BOTTOM_ALIGNMENT : 1.0f
public static final float CENTER_ALIGNMENT : 0.5f
public static final float LEFT_ALIGNMENT : 0.0f
public static final float RIGHT_ALIGNMENT : 1.0f
public static final float TOP_ALIGNMENT : 0.0f

CONSTRUCTORS:
protected Component()


METHODS:
public boolean action(Event evt, Object what)

public void add(PopupMenu popup)
Throws: NullPointerException

public void addComponentListener(ComponentListener l)

public void addFocusListener(FocusListener l)

public void addHierarchyBoundsListener(HierarchyBoundsListener l)

public void addHierarchyListener(HierarchyListener l)

public void addInputMethodListener(InputMethodListener l)

public void addKeyListener(KeyListener l)

public void addMouseListener(MouseListener l)

public void addMouseMotionListener(MouseMotionListener l)

public void addMouseWheelListener(MouseWheelListener l)

public void addNotify()

public void addPropertyChangeListener(PropertyChangeListener listener)

public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)

public void applyComponentOrientation(ComponentOrientation orientation)
Throws: NullPointerException

public boolean areFocusTraversalKeysSet(int id)
Throws: IllegalArgumentException

public Rectangle bounds()

public int checkImage(Image image, int width, int height, ImageObserver observer)

public int checkImage(Image image, ImageObserver observer)

protected AWTEvent coalesceEvents(AWTEvent existingEvent, AWTEvent newEvent)

public boolean contains(int x, int y)

public boolean contains(Point p)

public Image createImage(int width, int height)

public Image createImage(ImageProducer producer)

public VolatileImage createVolatileImage(int width, int height)

public VolatileImage createVolatileImage(int width, int height, ImageCapabilities caps)
Throws: AWTException

public void deliverEvent(Event e)

public void disable()

protected final void disableEvents(long eventsToDisable)

public final void dispatchEvent(AWTEvent e)

public void doLayout()

public void enable()

public void enable(boolean b)

protected final void enableEvents(long eventsToEnable)

public void enableInputMethods(boolean enable)

protected void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)

public void firePropertyChange(String propertyName, byte oldValue, byte newValue)

public void firePropertyChange(String propertyName, char oldValue, char newValue)

public void firePropertyChange(String propertyName, double oldValue, double newValue)

public void firePropertyChange(String propertyName, float oldValue, float newValue)

protected void firePropertyChange(String propertyName, int oldValue, int newValue)

protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)

public void firePropertyChange(String propertyName, long oldValue, long newValue)

public void firePropertyChange(String propertyName, short oldValue, short newValue)

public AccessibleContext getAccessibleContext()

public float getAlignmentX()

public float getAlignmentY()

public Color getBackground()

public int getBaseline(int width, int height)
Throws: IllegalArgumentException

public Component.BaselineResizeBehavior getBaselineResizeBehavior()

public Rectangle getBounds()

public Rectangle getBounds(Rectangle rv)

public ColorModel getColorModel()

public Component getComponentAt(int x, int y)

public Component getComponentAt(Point p)

public ComponentListener[] getComponentListeners()

public ComponentOrientation getComponentOrientation()

public Cursor getCursor()

public DropTarget getDropTarget()

public Container getFocusCycleRootAncestor()

public FocusListener[] getFocusListeners()

public Set getFocusTraversalKeys(int id)
Throws: IllegalArgumentException

public boolean getFocusTraversalKeysEnabled()

public Font getFont()

public FontMetrics getFontMetrics(Font font)

public Color getForeground()

public Graphics getGraphics()

public GraphicsConfiguration getGraphicsConfiguration()

public int getHeight()

public HierarchyBoundsListener[] getHierarchyBoundsListeners()

public HierarchyListener[] getHierarchyListeners()

public boolean getIgnoreRepaint()

public InputContext getInputContext()

public InputMethodListener[] getInputMethodListeners()

public InputMethodRequests getInputMethodRequests()

public KeyListener[] getKeyListeners()

public Object[] getListeners(Class listenerType)
Throws: ClassCastException

public Locale getLocale()
Throws: IllegalComponentStateException

public Point getLocation()

public Point getLocation(Point rv)

public Point getLocationOnScreen()

public Dimension getMaximumSize()

public Dimension getMinimumSize()

public MouseListener[] getMouseListeners()

public MouseMotionListener[] getMouseMotionListeners()

public Point getMousePosition()
Throws: HeadlessException

public MouseWheelListener[] getMouseWheelListeners()

public String getName()

public Container getParent()

public java.awt.peer.ComponentPeer getPeer()

public Dimension getPreferredSize()

public PropertyChangeListener[] getPropertyChangeListeners()

public PropertyChangeListener[] getPropertyChangeListeners(String propertyName)

public Dimension getSize()

public Dimension getSize(Dimension rv)

public Toolkit getToolkit()

public final Object getTreeLock()

public int getWidth()

public int getX()

public int getY()

public boolean gotFocus(Event evt, Object what)

public boolean handleEvent(Event evt)

public boolean hasFocus()

public void hide()

public boolean imageUpdate(Image img, int infoflags, int x, int y, int w, int h)

public boolean inside(int x, int y)

public void invalidate()

public boolean isBackgroundSet()

public boolean isCursorSet()

public boolean isDisplayable()

public boolean isDoubleBuffered()

public boolean isEnabled()

public boolean isFocusCycleRoot(Container container)

public boolean isFocusOwner()

public boolean isFocusTraversable()

public boolean isFocusable()

public boolean isFontSet()

public boolean isForegroundSet()

public boolean isLightweight()

public boolean isMaximumSizeSet()

public boolean isMinimumSizeSet()

public boolean isOpaque()

public boolean isPreferredSizeSet()

public boolean isShowing()

public boolean isValid()

public boolean isVisible()

public boolean keyDown(Event evt, int key)

public boolean keyUp(Event evt, int key)

public void layout()

public void list()

public void list(PrintStream out)

public void list(PrintStream out, int indent)

public void list(PrintWriter out)

public void list(PrintWriter out, int indent)

public Component locate(int x, int y)

public Point location()

public boolean lostFocus(Event evt, Object what)

public Dimension minimumSize()

public boolean mouseDown(Event evt, int x, int y)

public boolean mouseDrag(Event evt, int x, int y)

public boolean mouseEnter(Event evt, int x, int y)

public boolean mouseExit(Event evt, int x, int y)

public boolean mouseMove(Event evt, int x, int y)

public boolean mouseUp(Event evt, int x, int y)

public void move(int x, int y)

public void nextFocus()

public void paint(Graphics g)

public void paintAll(Graphics g)

protected String paramString()

public boolean postEvent(Event e)

public Dimension preferredSize()

public boolean prepareImage(Image image, int width, int height, ImageObserver observer)

public boolean prepareImage(Image image, ImageObserver observer)

public void print(Graphics g)

public void printAll(Graphics g)

protected void processComponentEvent(ComponentEvent e)

protected void processEvent(AWTEvent e)

protected void processFocusEvent(FocusEvent e)

protected void processHierarchyBoundsEvent(HierarchyEvent e)

protected void processHierarchyEvent(HierarchyEvent e)

protected void processInputMethodEvent(InputMethodEvent e)

protected void processKeyEvent(KeyEvent e)

protected void processMouseEvent(MouseEvent e)

protected void processMouseMotionEvent(MouseEvent e)

protected void processMouseWheelEvent(MouseWheelEvent e)

public void remove(MenuComponent popup)

public void removeComponentListener(ComponentListener l)

public void removeFocusListener(FocusListener l)

public void removeHierarchyBoundsListener(HierarchyBoundsListener l)

public void removeHierarchyListener(HierarchyListener l)

public void removeInputMethodListener(InputMethodListener l)

public void removeKeyListener(KeyListener l)

public void removeMouseListener(MouseListener l)

public void removeMouseMotionListener(MouseMotionListener l)

public void removeMouseWheelListener(MouseWheelListener l)

public void removeNotify()

public void removePropertyChangeListener(PropertyChangeListener listener)

public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)

public void repaint()

public void repaint(int x, int y, int width, int height)

public void repaint(long tm)

public void repaint(long tm, int x, int y, int width, int height)

public void requestFocus()

protected boolean requestFocus(boolean temporary)

public boolean requestFocusInWindow()

protected boolean requestFocusInWindow(boolean temporary)

public void reshape(int x, int y, int width, int height)

public void resize(int width, int height)

public void resize(Dimension d)

public void setBackground(Color c)

public void setBounds(int x, int y, int width, int height)

public void setBounds(Rectangle r)

public void setComponentOrientation(ComponentOrientation o)

public void setCursor(Cursor cursor)

public void setDropTarget(DropTarget dt)

public void setEnabled(boolean b)

public void setFocusTraversalKeys(int id, Set keystrokes)
Throws: IllegalArgumentException

public void setFocusTraversalKeysEnabled(boolean focusTraversalKeysEnabled)

public void setFocusable(boolean focusable)

public void setFont(Font f)

public void setForeground(Color c)

public void setIgnoreRepaint(boolean ignoreRepaint)

public void setLocale(Locale l)

public void setLocation(int x, int y)

public void setLocation(Point p)

public void setMaximumSize(Dimension maximumSize)

public void setMinimumSize(Dimension minimumSize)

public void setName(String name)

public void setPreferredSize(Dimension preferredSize)

public void setSize(int width, int height)

public void setSize(Dimension d)

public void setVisible(boolean b)

public void show()

public void show(boolean b)

public Dimension size()

public String toString()
Overrides: Object

public void transferFocus()

public void transferFocusBackward()

public void transferFocusUpCycle()

public void update(Graphics g)

public void validate()


INHERITED METHODS:
getClass(), hashCode(), equals(java.lang.Object), clone(), toString(), notify(), notifyAll(), wait(long), wait(long, int), wait(), finalize(),

SUBCLASSES:
Button, Canvas, Checkbox, Choice, Container, Label, List, Scrollbar, TextComponent,





Yazilar kaynak gosterilmeden kopyalanamaz © www.kodcu.net