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

#ifndef __javax_swing_JPopupMenu__
#define __javax_swing_JPopupMenu__

#pragma interface

#include <javax/swing/JComponent.h>
#include <gcj/array.h>

extern "Java"
{
  namespace javax
  {
    namespace accessibility
    {
      class AccessibleContext;
    }
    namespace swing
    {
      class MenuSelectionManager;
      class MenuElement;
      class JPopupMenu;
      namespace event
      {
        class PopupMenuListener;
      }
      namespace plaf
      {
        class PopupMenuUI;
      }
      class Action;
      class JMenuItem;
      class SingleSelectionModel;
    }
  }
  namespace java
  {
    namespace beans
    {
      class PropertyChangeListener;
    }
    namespace awt
    {
      namespace event
      {
        class KeyEvent;
        class MouseEvent;
      }
      class Dimension;
      class Graphics;
      class Insets;
      class Component;
    }
  }
}

class javax::swing::JPopupMenu : public ::javax::swing::JComponent
{
public:
  JPopupMenu ();
  JPopupMenu (::java::lang::String *);
private:
  void readObject (::java::io::ObjectInputStream *) { }
  void writeObject (::java::io::ObjectOutputStream *) { }
public:
  virtual ::javax::swing::JMenuItem *add (::javax::swing::JMenuItem *) { return 0; }
  virtual ::javax::swing::JMenuItem *add (::java::lang::String *) { return 0; }
  virtual ::javax::swing::JMenuItem *add (::javax::swing::Action *) { return 0; }
  virtual void remove (jint) { }
  virtual void insert (::javax::swing::Action *, jint) { }
  virtual void insert (::java::awt::Component *, jint) { }
public:  // actually protected
  virtual void paintBorder (::java::awt::Graphics *) { }
public:
  static jboolean getDefaultLightWeightPopupEnabled ();
  static void setDefaultLightWeightPopupEnabled (jboolean) { }
  virtual ::javax::swing::plaf::PopupMenuUI *getUI ();
  virtual void setUI (::javax::swing::plaf::PopupMenuUI *);
  virtual void updateUI ();
  virtual ::java::lang::String *getUIClassID ();
  virtual ::javax::swing::SingleSelectionModel *getSelectionModel () { return 0; }
  virtual void setSelectionModel (::javax::swing::SingleSelectionModel *) { }
public:  // actually protected
  virtual ::javax::swing::JMenuItem *createActionComponent (::javax::swing::Action *) { return 0; }
  virtual ::java::beans::PropertyChangeListener *createActionChangeListener (::javax::swing::JMenuItem *) { return 0; }
public:
  virtual jboolean isLightWeightPopupEnabled ();
  virtual void setLightWeightPopupEnabled (jboolean) { }
  virtual ::java::lang::String *getLabel () { return 0; }
  virtual void setLabel (::java::lang::String *) { }
  virtual void addSeparator () { }
  virtual void addPopupMenuListener (::javax::swing::event::PopupMenuListener *) { }
  virtual void removePopupMenuListener (::javax::swing::event::PopupMenuListener *) { }
public:  // actually protected
  virtual void firePopupMenuWillBecomeVisible () { }
  virtual void firePopupMenuWillBecomeInvisible () { }
  virtual void firePopupMenuCanceled () { }
public:
  virtual void pack () { }
  virtual jboolean isVisible ();
  virtual void setVisible (jboolean) { }
  virtual void setLocation (jint, jint) { }
private:
  jboolean isPopupMenu ();
public:
  virtual ::java::awt::Component *getInvoker () { return 0; }
  virtual void setInvoker (::java::awt::Component *) { }
  virtual void show (::java::awt::Component *, jint, jint) { }
public: // actually package-private
  virtual ::javax::swing::JPopupMenu *getRootPopupMenu () { return 0; }
public:
  virtual ::java::awt::Component *getComponentAtIndex (jint) { return 0; }
  virtual jint getComponentIndex (::java::awt::Component *);
  virtual void setPopupSize (::java::awt::Dimension *) { }
  virtual void setPopupSize (jint, jint) { }
  virtual void setSelected (::java::awt::Component *) { }
  virtual jboolean isBorderPainted ();
  virtual void setBorderPainted (jboolean) { }
  virtual ::java::awt::Insets *getMargin () { return 0; }
public:  // actually protected
  virtual ::java::lang::String *paramString () { return 0; }
public:
  virtual void processMouseEvent (::java::awt::event::MouseEvent *, JArray< ::javax::swing::MenuElement *> *, ::javax::swing::MenuSelectionManager *) { }
  virtual void processKeyEvent (::java::awt::event::KeyEvent *, JArray< ::javax::swing::MenuElement *> *, ::javax::swing::MenuSelectionManager *) { }
  virtual void menuSelectionChanged (jboolean) { }
  virtual JArray< ::javax::swing::MenuElement *> *getSubElements () { return 0; }
  virtual ::java::awt::Component *getComponent () { return 0; }
  virtual jboolean isPopupTrigger (::java::awt::event::MouseEvent *);
  virtual ::javax::accessibility::AccessibleContext *getAccessibleContext ();
private:
  static ::java::lang::String *uiClassID;
public: // actually package-private
  ::java::awt::Component * __attribute__((aligned(__alignof__( ::javax::swing::JComponent )))) invoker;
private:
  jint desiredLocationX;
  jint desiredLocationY;
  ::java::lang::String *label;
  jboolean paintBorder__;
  ::java::awt::Insets *margin;
  static ::java::lang::Object *defaultLWPopupEnabledKey;
  jboolean lightWeightPopupEnabled;
  ::javax::swing::SingleSelectionModel *selectionModel;

  friend class javax_swing_JPopupMenu$AccessibleJPopupMenu;
  friend class javax_swing_JPopupMenu$Separator;
public:

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

#endif /* __javax_swing_JPopupMenu__ */
