MenuBar.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_MENUBAR_H
00002 #define JAVA_AWT_MENUBAR_H 1
00003 
00004 #ifndef JAVA_AWT_MENU_H
00005 #include <java_awt/Menu.h>
00006 #endif /* JAVA_AWT_MENU_H */
00007 #ifndef JAVA_AWT_SPEC
00008 #include <java_awt/Spec.h>
00009 #endif /* JAVA_AWT_SPEC */
00010 
00011 namespace java {
00012   namespace awt {
00013 
00049     class JAVA_AWT_SPEC MenuBar
00050       : public MenuComponent
00051       , virtual public MenuContainer {
00052     public:
00053 
00060       MenuBar();
00061 
00068       virtual Ref<Font> getFont() const;
00069 
00074       virtual Ref<Menu> getHelpMenu() const;
00075 
00082       virtual void setHelpMenu(const Ref<Menu>& m);
00083 
00091       virtual Ref<Menu> add(const Ref<Menu>& m);
00092 
00098       virtual void remove(const Ref<MenuComponent>& comp);
00099 
00106       virtual void remove(jint index);
00107 
00113       virtual jint getMenuCount() const;
00114 
00120       virtual Ref<Menu> getMenu(jint index) const;
00121 
00130       Ref<List> shortcuts() const;
00131 
00143       Ref<MenuItem> getShortcutMenuItem(const Ref<MenuShortcut>& s) const;
00144 
00150       void deleteShortcut(const Ref<MenuShortcut>& s);
00151 
00152       virtual String toString() const;
00153 
00154     private:
00155       REGISTER_MEMBERS;
00156     };
00157 
00158   } // namespace awt
00159 } // namespace java
00160 
00161 #endif /* JAVA_AWT_MENUBAR_H */

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