Choice.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_CHOICE_H
00002 #define JAVA_AWT_CHOICE_H 1
00003 
00004 #ifndef JAVA_AWT_COMPONENT_H
00005 #include <java_awt/Component.h>
00006 #endif /* JAVA_AWT_COMPONENT_H */
00007 #ifndef JAVA_AWT_ITEMSELECTABLE_H
00008 #include <java_awt/ItemSelectable.h>
00009 #endif /* JAVA_AWT_ITEMSELECTABLE_H */
00010 #ifndef JAVA_AWT_EVENT_ITEMSOURCE_H
00011 #include <java_awt_event/ItemSource.h>
00012 #endif /* JAVA_AWT_EVENT_ITEMSOURCE_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 Choice 
00057       : public Component
00058       , public ItemSelectable
00059       , public event::ItemSource {
00060 
00061     public:
00062 
00075       Choice();
00076 
00083       virtual jint getItemCount() const;
00084 
00091       virtual String getItem(jint index) const;
00092 
00101       virtual Ref<List> getItems() const;
00102 
00116       virtual void add(const String& item, jint index = -1);
00117 
00124       virtual void removeAll();
00125 
00133       virtual void remove(const String& item);
00134 
00145       virtual void remove(jint position);
00146 
00156       virtual jint getSelectedIndex() const;
00157 
00166       virtual String getSelectedItem() const;
00167 
00172       virtual Ref<List> getSelectedObjects() const;
00173 
00188       virtual void select(jint index);
00189 
00206       virtual void select(const String& item);
00207 
00208       virtual String toString() const;
00209 
00210     protected:
00211 
00212       REGISTER_MEMBERS;
00213 
00214     };
00215 
00216   } // namespace awt
00217 } // namespace java
00218 
00219 #endif /* JAVA_AWT_CHOICE_H */

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