TextArea.h

Go to the documentation of this file.
00001 #ifndef JAVA_AWT_TEXTAREA_H
00002 #define JAVA_AWT_TEXTAREA_H 1
00003 
00004 #ifndef JAVA_AWT_TEXTCOMPONENT_H
00005 #include <java_awt/TextComponent.h>
00006 #endif /* JAVA_AWT_TEXTCOMPONENT_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 
00034     class JAVA_AWT_SPEC TextArea 
00035       : public TextComponent {
00036 
00037     public:
00038 
00039       enum SCROLLBAR_VISIBILITY {
00040 
00045         SCROLLBARS_NONE = 0,
00046 
00051         SCROLLBARS_HORIZONTAL,
00052 
00057         SCROLLBARS_VERTICAL,
00058 
00063         SCROLLBARS_BOTH,
00064 
00065       };
00066 
00102       TextArea
00103         (const String& text = nilString, 
00104          jint rows = 0, jint columns = 0,
00105          jint scrollbars = SCROLLBARS_BOTH);
00106 
00121       virtual void insert(const String& str, jint pos);
00122 
00133       virtual void append(const String& str);
00134 
00154       virtual void replaceRange(const String& str, jint start = 0, jint end = -1);
00155 
00163       virtual jint getRows() const;
00164 
00175       virtual void setRows(jint rows);
00176 
00183       virtual jint getColumns() const;
00184 
00195       virtual void setColumns(jint columns);
00196 
00214       virtual jint getScrollbarVisibility() const;
00215 
00227       virtual Dimension getPreferredSize(jint rows = 0, jint columns = 0) const;
00228 
00240       virtual Dimension getMinimumSize(jint rows = 0, jint columns = 0) const;
00241 
00242     protected:
00243 
00244       REGISTER_MEMBERS;
00245 
00246     };
00247 
00248   } // namespace awt
00249 } // namespace java
00250 
00251 #endif /* JAVA_AWT_TEXTAREA_H */

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