Class awt.Container
All Packages    This Package    Previous    Next

Class awt.Container

java.lang.Object
   |
   +----awt.Component
           |
           +----awt.Container

public class Container
extends Component
A container object is a component that can contain other components. Examples are windows, and frames.
Version:
1.17 16 Feb 1995
Author:
Arthur van Hoff, Sami Shaio

children
The member objects (only nmembers are used)
insets
The insets (distances from the sides) of this container.
theLayout
A layout object (or 0).
wServer
The window server associated with this component.

Container(Container, String)
Contructor

addChild(Layoutable, String)
Add a named child to the container (at the end, front most).
addChild(Layoutable)
Add an unnamed child to the container.
addInsets(int, int, int, int)
Change the insets of this container
dispose()
Dispose of the container and its members, releasing all of its resources.
getChild(String)
Find a member component by name.
getChild(int)
Find a member component by position.
getPreferredSize()
Return the preferred size for this container.
layout()
Layout the container and its members.
map()
Map the container and its members, note that super.Map() will layout the member object if needed.
minDimension()
Return the minimum acceptable size for this container.
move(int, int)
Move the container to the given position.
nChildren()
Return the number of children in this container.
setInsets(int, int, int, int)
Set the insets of this container
setLayout(ContainerLayout)
Change the layout of the container.
unMap()
UnMap the container and its members.

wServer
  public WServer wServer
The window server associated with this component.
children
  public ChildList children
The member objects (only nmembers are used)
theLayout
  public ContainerLayout theLayout
A layout object (or 0). Used to layout the member object when the container is untidy.
insets
  public int insets[]
The insets (distances from the sides) of this container.

Container
  public Container(Container pParent,
                   String pName)
Contructor

addChild
  public void addChild(Layoutable c,
                       String name)
Add a named child to the container (at the end, front most).

addChild

  public void addChild(Layoutable c)
Add an unnamed child to the container.

getChild

  public Layoutable getChild(String pName)
Find a member component by name.
Overrides:
getChild in class Component

getChild

  public Layoutable getChild(int pos)
Find a member component by position.

nChildren

  public int nChildren()
Return the number of children in this container.

dispose

  public void dispose()
Dispose of the container and its members, releasing all of its resources.
Overrides:
dispose in class Component

getPreferredSize

  public Dimension getPreferredSize()
Return the preferred size for this container.
Overrides:
getPreferredSize in class Component

minDimension

  public Dimension minDimension()
Return the minimum acceptable size for this container.
Overrides:
minDimension in class Component

map

  public synchronized void map()
Map the container and its members, note that super.Map() will layout the member object if needed.
Overrides:
map in class Component

unMap

  public synchronized void unMap()
UnMap the container and its members.
Overrides:
unMap in class Component

setLayout

  public synchronized void setLayout(ContainerLayout pLayout)
Change the layout of the container.

move

  public void move(int pX,
                   int pY)
Move the container to the given position.
Overrides:
move in class Component

layout

  public synchronized void layout()
Layout the container and its members.
Overrides:
layout in class Component

setInsets

  public void setInsets(int n,
                        int e,
                        int s,
                        int w)
Set the insets of this container

addInsets

  public void addInsets(int n,
                        int e,
                        int s,
                        int w)
Change the insets of this container


All Packages    This Package    Previous    Next