java.lang.Object | +--java.awt.Component | +--java.awt.Container
A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT components.
Components added to a container are tracked in a list. The order of the list will define the components' front-to-back stacking order within the container. If no index is specified when adding a component to a container, it will be added to the end of the list (and hence to the bottom of the stacking order).
add(java.awt.Component, int),
getComponent(int),
LayoutManager, Serialized Form
| Inner Class Summary | |
protected class |
Container.AccessibleAWTContainer
Container.AccessibleAWTContainer
|
| Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
Container
copy-> new Container()copy-> <Container var> = new Container();
|
|
| Method Summary | |
Component |
add(Component comp)
copy-> .add( )copy-> <Component var>=<Container>.add(<Component comp>);
|
Component |
add(Component comp,
int index)
copy-> .add(, )copy-> <Component var>=<Container>.add(<Component comp>, <int index>);
|
void |
add(Component comp,
Object constraints)
copy-> .add(, )copy-> <Container>.add(<Component comp>, <Object constraints>);
|
void |
add(Component comp,
Object constraints,
int index)
copy-> .add(, , )copy-> <Container>.add(<Component comp>, <Object constraints>, <int index>);
|
Component |
add(String name,
Component comp)
copy-> .add(, )copy-> <Component var>=<Container>.add(<String name>, <Component comp>);
|
void |
addContainerListener(ContainerListener l)
copy-> .addContainerListener( )copy-> <Container>.addContainerListener(<ContainerListener l>);
|
protected void |
addImpl(Component comp,
Object constraints,
int index)
copy-> .addImpl(, , )copy-> <Container>.addImpl(<Component comp>, <Object constraints>, <int index>);
|
void |
addNotify()
copy-> .addNotify()copy-> <Container>.addNotify();
|
int |
countComponents()
copy-> .countComponents()copy-> <int var>=<Container>.countComponents();
|
void |
deliverEvent(Event e)
copy-> .deliverEvent( )copy-> <Container>.deliverEvent(<Event e>);
|
void |
doLayout()
copy-> .doLayout()copy-> <Container>.doLayout();
|
Component |
findComponentAt(int x,
int y)
copy-> .findComponentAt(, )copy-> <Component var>=<Container>.findComponentAt(<int x>, <int y>);
|
Component |
findComponentAt(Point p)
copy-> .findComponentAt( )copy-> <Component var>=<Container>.findComponentAt(<Point p>);
|
float |
getAlignmentX()
copy-> .getAlignmentX()copy-> <float var>=<Container>.getAlignmentX();
|
float |
getAlignmentY()
copy-> .getAlignmentY()copy-> <float var>=<Container>.getAlignmentY();
|
Component |
getComponent(int n)
copy-> .getComponent( )copy-> <Component var>=<Container>.getComponent(<int n>);
|
Component |
getComponentAt(int x,
int y)
copy-> .getComponentAt(, )copy-> <Component var>=<Container>.getComponentAt(<int x>, <int y>);
|
Component |
getComponentAt(Point p)
copy-> .getComponentAt( )copy-> <Component var>=<Container>.getComponentAt(<Point p>);
|
int |
getComponentCount()
copy-> .getComponentCount()copy-> <int var>=<Container>.getComponentCount();
|
Component[] |
getComponents()
copy-> .getComponents()copy-> <Component var>=<Container>.getComponents();
|
Insets |
getInsets()
copy-> .getInsets()copy-> <Insets var>=<Container>.getInsets();
|
LayoutManager |
getLayout()
copy-> .getLayout()copy-> <LayoutManager var>=<Container>.getLayout();
|
EventListener[] |
getListeners(Class listenerType)
copy-> .getListeners( )copy-> <EventListener var>=<Container>.getListeners(<Class listenerType>);
|
Dimension |
getMaximumSize()
copy-> .getMaximumSize()copy-> <Dimension var>=<Container>.getMaximumSize();
|
Dimension |
getMinimumSize()
copy-> .getMinimumSize()copy-> <Dimension var>=<Container>.getMinimumSize();
|
Dimension |
getPreferredSize()
copy-> .getPreferredSize()copy-> <Dimension var>=<Container>.getPreferredSize();
|
Insets |
insets()
copy-> .insets()copy-> <Insets var>=<Container>.insets();
|
void |
invalidate()
copy-> .invalidate()copy-> <Container>.invalidate();
|
boolean |
isAncestorOf(Component c)
copy-> .isAncestorOf( )copy-> <boolean var>=<Container>.isAncestorOf(<Component c>);
|
void |
layout()
copy-> .layout()copy-> <Container>.layout(); |
void |
list(PrintStream out,
int indent)
copy-> .list(, )copy-> <Container>.list(<PrintStream out>, <int indent>);
|
void |
list(PrintWriter out,
int indent)
copy-> .list(, )copy-> <Container>.list(<PrintWriter out>, <int indent>);
|
Component |
locate(int x,
int y)
copy-> .locate(, )copy-> <Component var>=<Container>.locate(<int x>, <int y>); |
Dimension |
minimumSize()
copy-> .minimumSize()copy-> <Dimension var>=<Container>.minimumSize();
|
void |
paint(Graphics g)
copy-> .paint( )copy-> <Container>.paint(<Graphics g>);
|
void |
paintComponents(Graphics g)
copy-> .paintComponents( )copy-> <Container>.paintComponents(<Graphics g>);
|
protected String |
paramString()
copy-> .paramString()copy-> <String var>=<Container>.paramString();
|
Dimension |
preferredSize()
copy-> .preferredSize()copy-> <Dimension var>=<Container>.preferredSize();
|
void |
print(Graphics g)
copy-> .print( )copy-> <Container>.print(<Graphics g>);
|
void |
printComponents(Graphics g)
copy-> .printComponents( )copy-> <Container>.printComponents(<Graphics g>);
|
protected void |
processContainerEvent(ContainerEvent e)
copy-> .processContainerEvent( )copy-> <Container>.processContainerEvent(<ContainerEvent e>);
|
protected void |
processEvent(AWTEvent e)
copy-> .processEvent( )copy-> <Container>.processEvent(<AWTEvent e>);
|
void |
remove(Component comp)
copy-> .remove( )copy-> <Container>.remove(<Component comp>);
|
void |
remove(int index)
copy-> .remove( )copy-> <Container>.remove(<int index>);
|
void |
removeAll()
copy-> .removeAll()copy-> <Container>.removeAll();
|
void |
removeContainerListener(ContainerListener l)
copy-> .removeContainerListener( )copy-> <Container>.removeContainerListener(<ContainerListener l>);
|
void |
removeNotify()
copy-> .removeNotify()copy-> <Container>.removeNotify();
|
void |
setFont(Font f)
copy-> .setFont( )copy-> <Container>.setFont(<Font f>);
|
void |
setLayout(LayoutManager mgr)
copy-> .setLayout( )copy-> <Container>.setLayout(<LayoutManager mgr>);
|
void |
update(Graphics g)
copy-> .update( )copy-> <Container>.update(<Graphics g>);
|
void |
validate()
copy-> .validate()copy-> <Container>.validate();
|
protected void |
validateTree()
copy-> .validateTree()copy-> <Container>.validateTree();
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |