Menu.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_MENU_H
00002 #define JAVA_AWT_MENU_H 1
00003 
00004 #ifndef JAVA_AWT_MENUITEM_H
00005 #include <java_awt/MenuItem.h>
00006 #endif /* JAVA_AWT_MENUITEM_H */
00007 #ifndef JAVA_AWT_MENUCONTAINER_H
00008 #include <java_awt/MenuContainer.h>
00009 #endif /* JAVA_AWT_MENUCONTAINER_H */
00010 #ifndef JAVA_AWT_SPEC
00011 #include <java_awt/Spec.h>
00012 #endif /* JAVA_AWT_SPEC */
00013 
00014 namespace java {
00015   namespace awt {
00016 
00040     class JAVA_AWT_SPEC Menu
00041       : public MenuItem
00042       , virtual public MenuContainer {
00043     public:
00044 
00061       Menu
00062         (const String& label = nilString,
00063          jboolean tearOff = false);
00064 
00071       virtual Ref<Font> getFont() const;
00072 
00080       virtual void remove(const Ref<MenuComponent>& comp);
00081 
00086       virtual void remove(jint index);
00087 
00092       virtual void removeAll();
00093 
00103       virtual jboolean isTearOff() const;
00104 
00110       virtual jint getItemCount() const;
00111 
00117       virtual Ref<MenuItem> getItem(jint index) const;
00118 
00129       virtual Ref<MenuItem> add(const Ref<MenuItem>& mi);
00130 
00138       virtual void addLabel(const String& label);
00139 
00153       virtual void insert(const Ref<MenuItem>& item, jint index);
00154 
00169       virtual void insertLabel(const String& label, jint index);
00170 
00175       virtual void addSeparator();
00176 
00186       virtual void insertSeparator(jint index);
00187 
00188       virtual String toString() const;
00189 
00190     private:
00191       REGISTER_MEMBERS;
00192     };
00193 
00194   } // namespace awt
00195 } // namespace java
00196 
00197 #endif /* JAVA_AWT_MENU_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3