// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_awt_TextComponent__
#define __java_awt_TextComponent__

#pragma interface

#include <java/awt/Component.h>

extern "Java"
{
  namespace java
  {
    namespace awt
    {
      class TextComponent;
      class AWTEvent;
      namespace event
      {
        class TextEvent;
        class TextListener;
      }
    }
  }
};

class ::java::awt::TextComponent : public ::java::awt::Component
{
public: // actually package-private
  TextComponent (::java::lang::String *);
public:
  virtual ::java::lang::String *getText ();
  virtual void setText (::java::lang::String *);
  virtual ::java::lang::String *getSelectedText ();
  virtual jint getSelectionStart ();
  virtual void setSelectionStart (jint);
  virtual jint getSelectionEnd ();
  virtual void setSelectionEnd (jint);
  virtual void select (jint, jint);
  virtual void selectAll ();
  virtual jint getCaretPosition ();
  virtual void setCaretPosition (jint);
  virtual jboolean isEditable () { return editable; }
  virtual void setEditable (jboolean);
  virtual void removeNotify ();
  virtual void addTextListener (::java::awt::event::TextListener *);
  virtual void removeTextListener (::java::awt::event::TextListener *);
public:  // actually protected
  virtual void processEvent (::java::awt::AWTEvent *);
  virtual void processTextEvent (::java::awt::event::TextEvent *);
public: // actually package-private
  virtual void dispatchEventImpl (::java::awt::AWTEvent *);
public:  // actually protected
  virtual ::java::lang::String *paramString ();
private:
  static const jlong serialVersionUID = -2214773872412987419LL;
  jboolean __attribute__((aligned(__alignof__( ::java::awt::Component ))))  editable;
  jint selectionStart;
  jint selectionEnd;
  ::java::lang::String *text;
public:  // actually protected
  ::java::awt::event::TextListener *textListener;
public:

  static ::java::lang::Class class$;
};

#endif /* __java_awt_TextComponent__ */
