ContainerNameContainer
DescriptionThe Container class serves as a general purpose holder of other Component objects. Class Definition
public abstract class java.awt.Container extends java.awt.Component { // Constructors protected Container(); // Instance Methods public Component add (Component component); public Component add (Component component, int position); public void add (Component comp, Object constraints); public void add (Component comp, Object constraints, int position); public Component add (String name, Component component); public void addContainerListener (ContainerListener l); public void addNotify(); public int countComponents(); public void deliverEvent (Event e); public void doLayout(); public float getAlignmentX(); public float getAlignmentY(); public Component getComponent (int n); public Component getComponentAt (int x, int y); public Component getComponentAt (Point p); public int getComponentCount(); public Component[] getComponents(); public Insets getInsets(); public LayoutManager getLayout(); public Dimension getMaximumSize(); public Dimension getMinimumSize(); public Dimension getPreferredSize(); public Insets insets(); public void invalidate(); public boolean isAncestorOf (Component c); public void layout(); public void list (PrintStream out, int indentation); public void list (PrintWriter out, int indentation); public Component locate (int x, int y); public Dimension minimumSize(); public void paint (Graphics g); public void paintComponents (Graphics g); public Dimension preferredSize(); public void print (Graphics g); public void printComponents (Graphics g); public void remove (int index); public void remove (Component component); public void removeAll(); public void removeContainerListener (ContainerListener l); public void removeNotify(); public void setLayout (LayoutManager manager); public void validate(); // Protected Instance Methods protected void addImpl (Component comp, Object constraints, int index); protected String paramString(); protected void processContainerEvent (ContainerEvent e); protected void processEvent (AWTEvent e); protected void validateTree(); } ConstructorsContainerprotected Container()
Instance Methodsaddpublic Component add (Component component)
public Component add (Component component, int position)
public void add (Component component, Object constraints)
public void add (Component component, Object constraints, int index)
public Component add (String name, Component component)
addContainerListenerpublic void addContainerListener (ContainerListener l)
addNotifypublic void addNotify()
countComponentspublic int countComponents()
deliverEventpublic void deliverEvent (Event e)
doLayoutpublic void doLayout()
getAlignmentXpublic float getAlignmentX()
getAlignmentYpublic float getAlignmentY()
getComponentpublic synchronized Component getComponent (int position)
getComponentAtpublic Component getComponentAt (int x, int y)
public Component getComponentAt (Point p)
getComponentCountpublic int getComponentCount()
getComponentspublic Component[] getComponents()
getInsetspublic Insets getInsets()
getLayoutpublic LayoutManager getLayout()
getMaximumSizepublic Dimension getMaximumSize()
getMinimumSizepublic Dimension getMinimumSize()
getPreferredSizepublic Dimension getPreferredSize()
insetspublic Insets insets()
invalidatepublic void invalidate()
isAncestorOfpublic boolean isAncestorOf (Component c)
layoutpublic void layout()
listpublic void list (PrintStream out, int indentation)
public void list (PrintWriter out, int indentation)
locatepublic Component locate (int x, int y)
minimizeSizepublic Dimension minimumSize()
paintpublic void paint (Graphics g)
paintComponentspublic void paintComponents (Graphics g)
preferredSizepublic Dimension preferredSize()
public void print (Graphics g)
printComponentspublic void printComponents (Graphics g)
removepublic void remove (int index)
public void remove (Component component)
removeAllpublic void removeAll()
removeContainerListenerpublic void removeContainerListener (ContainerListener l)
removeNotifypublic void removeNotify()
setLayoutpublic void setLayout (LayoutManager manager)
validatepublic void validate()
Protected Instance MethodsaddImplprotected void addImpl (Component comp, Object constraints, int index)
paramStringprotected String paramString()
processContainerEventprotected void processContainerEvent (ContainerEvent e)
processEventprotected void processEvent (AWTEvent e)
validateTreeprotected void validateTree()
See AlsoComponent, Dimension, Event, Graphics, Insets, LayoutManager, Panel, PrintStream, String, Window |
|