ListPeer.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_PEER_LISTPEER_H
00002 #define JAVA_AWT_PEER_LISTPEER_H 1
00003 
00004 #ifndef JAVA_AWT_PEER_COMPONENTPEER_H
00005 #include <java_awt_peer/ComponentPeer.h>
00006 #endif /* JAVA_AWT_PEER_COMPONENTPEER_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     namespace peer {
00014 
00022       class ListPeer : virtual public ComponentPeer {
00023       public:
00024         virtual Array<jint> getSelectedIndexes() const = 0;
00025         virtual void add(const String& item, jint index) = 0;
00026         virtual void remove(jint index) = 0;
00027         virtual void removeAll() = 0;
00028         virtual void select(jint index) = 0;
00029         virtual void deselect(jint index) = 0;
00030         virtual void makeVisible(jint index) = 0;
00031         virtual void setMultipleMode(jboolean b) = 0;
00032         virtual Dimension getPreferredSize(jint rows) const = 0;
00033         virtual Dimension getMinimumSize(jint rows) const = 0;
00034       private:
00035         REGISTER_MEMBERS;
00036       };
00037 
00038     } // namespace peer
00039   } // namespace awt
00040 } // namespace java
00041 
00042 #endif /* JAVA_AWT_PEER_LISTPEER_H */

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