// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_awt_Container__
#define __java_awt_Container__

#pragma interface

#include <java/awt/Component.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace awt
    {
      class Container;
      class Point;
      class Event;
      class AWTEvent;
      class Container$GfxVisitor;
      class Graphics;
      class Font;
      class Insets;
      namespace event
      {
        class ContainerEvent;
        class ContainerListener;
      }
      class Dimension;
      class LayoutManager;
      class Component;
    }
  }
};

class ::java::awt::Container : public ::java::awt::Component
{
public:
  Container ();
  virtual jint getComponentCount () { return ncomponents; }
  virtual jint countComponents () { return ncomponents; }
  virtual ::java::awt::Component *getComponent (jint);
  virtual JArray< ::java::awt::Component *> *getComponents ();
  virtual ::java::awt::Insets *getInsets ();
  virtual ::java::awt::Insets *insets ();
  virtual ::java::awt::Component *add (::java::awt::Component *);
  virtual ::java::awt::Component *add (::java::lang::String *, ::java::awt::Component *);
  virtual ::java::awt::Component *add (::java::awt::Component *, jint);
  virtual void add (::java::awt::Component *, ::java::lang::Object *);
  virtual void add (::java::awt::Component *, ::java::lang::Object *, jint);
public:  // actually protected
  virtual void addImpl (::java::awt::Component *, ::java::lang::Object *, jint);
public:
  virtual void remove (jint);
  virtual void remove (::java::awt::Component *);
  virtual void removeAll ();
  virtual ::java::awt::LayoutManager *getLayout () { return layoutMgr; }
  virtual void setLayout (::java::awt::LayoutManager *);
  virtual void doLayout ();
  virtual void layout ();
  virtual void invalidate ();
  virtual void validate ();
public:  // actually protected
  virtual void validateTree ();
public:
  virtual void setFont (::java::awt::Font *);
  virtual ::java::awt::Dimension *getPreferredSize ();
  virtual ::java::awt::Dimension *preferredSize ();
  virtual ::java::awt::Dimension *getMinimumSize ();
  virtual ::java::awt::Dimension *minimumSize ();
  virtual ::java::awt::Dimension *getMaximumSize ();
  virtual jfloat getAlignmentX ();
  virtual jfloat getAlignmentY ();
  virtual void paint (::java::awt::Graphics *);
private:
  void visitChildren (::java::awt::Graphics *, ::java::awt::Container$GfxVisitor *, jboolean);
  void visitChild (::java::awt::Graphics *, ::java::awt::Container$GfxVisitor *, ::java::awt::Component *);
public:
  virtual void update (::java::awt::Graphics *);
  virtual void print (::java::awt::Graphics *);
  virtual void paintComponents (::java::awt::Graphics *);
  virtual void printComponents (::java::awt::Graphics *);
public: // actually package-private
  virtual void dispatchEventImpl (::java::awt::AWTEvent *);
public:
  virtual void addContainerListener (::java::awt::event::ContainerListener *);
  virtual void removeContainerListener (::java::awt::event::ContainerListener *);
  virtual JArray< ::java::util::EventListener *> *getListeners (::java::lang::Class *);
public:  // actually protected
  virtual void processEvent (::java::awt::AWTEvent *);
  virtual void processContainerEvent (::java::awt::event::ContainerEvent *);
public:
  virtual void deliverEvent (::java::awt::Event *) { }
  virtual ::java::awt::Component *getComponentAt (jint, jint);
  virtual ::java::awt::Component *locate (jint, jint);
  virtual ::java::awt::Component *getComponentAt (::java::awt::Point *);
  virtual ::java::awt::Component *findComponentAt (jint, jint);
  virtual ::java::awt::Component *findComponentAt (::java::awt::Point *);
  virtual void addNotify ();
private:
  void addNotifyContainerChildren ();
public:
  virtual void removeNotify ();
  virtual jboolean isAncestorOf (::java::awt::Component *);
public:  // actually protected
  virtual ::java::lang::String *paramString ();
public:
  virtual void list (::java::io::PrintStream *, jint);
  virtual void list (::java::io::PrintWriter *, jint);
public: // actually package-private
  virtual ::java::awt::Component *findNextFocusComponent (::java::awt::Component *);
  jint ncomponents;
  JArray< ::java::awt::Component *> *component;
  ::java::awt::LayoutManager *layoutMgr;
  ::java::awt::Dimension *maxSize;
  jint containerSerializedDataVersion;
  ::java::awt::event::ContainerListener *containerListener;
public:

  static ::java::lang::Class class$;
};

#endif /* __java_awt_Container__ */
