    All Packages    This Package    Previous    Next

# Class awt.ChildList

    java.lang.Object
       |
       +----java.util.Hashtable
               |
               +----awt.ChildList

public class ChildList
extends Hashtable

A class used to map names to Layoutable objects in a container hierarchy.

Version:
  1.6 31 Jan 1995
Author:
  Jon Payne

##

ChildList()

##

addChild(Layoutable, String)
  Adds a Layoutable with the given name to this ChildList object.
getChild(String)
  Return the Layoutable object with the given name.
getChild(int)
  Return the Layoutable child given an index.
length()
  Return the number of children.

##

ChildList

      public ChildList()

##

addChild

      public void addChild(Layoutable child,
                           String name)

  Adds a Layoutable with the given name to this ChildList object.

getChild

      public Layoutable getChild(String name)

  Return the Layoutable object with the given name.
  Returns:
    the Layoutable if found or null otherwise.

getChild

      public Layoutable getChild(int index)

  Return the Layoutable child given an index.

length

      public int length()

  Return the number of children.

    All Packages    This Package    Previous    Next