Label.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_LABEL_H
00002 #define JAVA_AWT_LABEL_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_SPEC
00008 #include <java_awt/Spec.h>
00009 #endif /* JAVA_AWT_SPEC */
00010 
00011 namespace java {
00012   namespace awt {
00013 
00037     class JAVA_AWT_SPEC Label : public Component {
00038 
00039     public:
00040 
00041       enum ALIGNMENT_MODE {
00042 
00046         ALIGNMENT_LEFT = 0,
00047 
00051         ALIGNMENT_CENTER,
00052 
00057         ALIGNMENT_RIGHT,
00058         
00059       };
00060 
00075       Label(const String& text = nilString, jint alignment = ALIGNMENT_LEFT);
00076 
00083       virtual jint getAlignment() const;
00084 
00094       virtual void setAlignment(jint alignment);
00095 
00102       virtual String getText() const;
00103 
00112       virtual void setText(const String& text);
00113 
00114     protected:
00115 
00116       REGISTER_MEMBERS;
00117 
00118     };
00119 
00120   } // namespace awt
00121 } // namespace java
00122 
00123 #endif /* JAVA_AWT_LABEL_H */

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