MenuItem.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_MENUITEM_H
00002 #define JAVA_AWT_MENUITEM_H 1
00003 
00004 #ifndef JAVA_AWT_MENUCOMPONENT_H
00005 #include <java_awt/MenuComponent.h>
00006 #endif /* JAVA_AWT_MENUCOMPONENT_H */
00007 #ifndef JAVA_AWT_MENUSHORTCUT_H
00008 #include <java_awt/MenuShortcut.h>
00009 #endif /* JAVA_AWT_MENUSHORTCUT_H */
00010 #ifndef JAVA_AWT_EVENT_ACTIONSOURCE_H
00011 #include <java_awt_event/ActionSource.h>
00012 #endif /* JAVA_AWT_EVENT_ACTIONSOURCE_H */
00013 #ifndef JAVA_AWT_SPEC
00014 #include <java_awt/Spec.h>
00015 #endif /* JAVA_AWT_SPEC */
00016 
00017 namespace java {
00018   namespace awt {
00019 
00056     class JAVA_AWT_SPEC MenuItem 
00057       : public MenuComponent
00058       , public event::ActionSource {
00059     public:
00060 
00074       MenuItem
00075         (const String& label = nilString,
00076          const Ref<MenuShortcut>& s = 0);
00077 
00085       virtual String getLabel() const;
00086 
00093       virtual void setLabel(const String& label);
00094 
00100       virtual jboolean isEnabled() const;
00101 
00109       virtual void setEnabled(jboolean b);
00110 
00119       virtual Ref<MenuShortcut> getShortcut() const;
00120 
00130       virtual void setShortcut(const Ref<MenuShortcut>& s);
00131 
00137       virtual void deleteShortcut();
00138 
00150       virtual void setActionCommand(const String& command);
00151 
00158       virtual String getActionCommand() const;
00159 
00164       virtual String toString() const;
00165 
00166     protected:
00167 
00168       MenuItem(const Object* _impl);
00169 
00170     private:
00171       REGISTER_MEMBERS;
00172     };
00173 
00174   } // namespace awt
00175 } // namespace java
00176 
00177 #endif /* JAVA_AWT_MENUITEM_H */

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