Home » Eclipse-SWT-3.5.1 » org.eclipse.swt.widgets » [javadoc | source]
org.eclipse.swt.widgets
public class: Text [javadoc | source]
java.lang.Object
   org.eclipse.swt.widgets.Widget
      org.eclipse.swt.widgets.Control
         org.eclipse.swt.widgets.Scrollable
            org.eclipse.swt.widgets.Text

All Implemented Interfaces:
    Drawable

Instances of this class are selectable user interface objects that allow the user to enter and modify text. Text controls can be either single or multi-line. When a text control is created with a border, the operating system includes a platform specific inset around the contents of the control. When created without a border, an effort is made to remove the inset such that the preferred size of the control is the same size as the contents.

Styles:
CENTER, ICON_CANCEL, ICON_SEARCH, LEFT, MULTI, PASSWORD, SEARCH, SINGLE, RIGHT, READ_ONLY, WRAP
Events:
DefaultSelection, Modify, Verify

Note: Only one of the styles MULTI and SINGLE may be specified, and only one of the styles LEFT, CENTER, and RIGHT may be specified.

Note: The styles ICON_CANCEL and ICON_SEARCH are hints used in combination with SEARCH. When the platform supports the hint, the text control shows these icons. When an icon is selected, a default selection event is sent with the detail field set to one of ICON_CANCEL or ICON_SEARCH. Normally, application code does not need to check the detail. In the case of ICON_CANCEL, the text is cleared before the default selection event is sent causing the application to search for an empty string.

IMPORTANT: This class is not intended to be subclassed.

Field Summary
 int tabs     
 int oldStart     
 int oldEnd     
 boolean doubleClick     
 boolean ignoreModify     
 boolean ignoreVerify     
 boolean ignoreCharacter     
 String message     
public static final  int LIMIT    The maximum number of characters that can be entered into a text widget.

Note that this value is platform dependent, based upon the native widget implementation.

 
public static final  String DELIMITER    The delimiter used by multi-line text widgets. When text is queried and from the widget, it will be delimited using this delimiter. 
static final  int EditProc     
static final  TCHAR EditClass     
Fields inherited from org.eclipse.swt.widgets.Scrollable:
horizontalBar,  verticalBar
Fields inherited from org.eclipse.swt.widgets.Control:
handle,  parent,  cursor,  menu,  toolTipText,  layoutData,  accessible,  backgroundImage,  region,  font,  drawCount,  foreground,  background
Fields inherited from org.eclipse.swt.widgets.Widget:
style,  state,  display,  eventTable,  data,  DISPOSED,  CANVAS,  KEYED_DATA,  DISABLED,  HIDDEN,  LAYOUT_NEEDED,  LAYOUT_CHANGED,  LAYOUT_CHILD,  THEME_BACKGROUND,  DRAW_BACKGROUND,  PARENT_BACKGROUND,  RELEASED,  DISPOSE_SENT,  TRACK_MOUSE,  FOREIGN_HANDLE,  DRAG_DETECT,  MOVE_OCCURRED,  MOVE_DEFERRED,  RESIZE_OCCURRED,  RESIZE_DEFERRED,  IGNORE_WM_CHANGEUISTATE,  DEFAULT_WIDTH,  DEFAULT_HEIGHT,  MAJOR,  MINOR
Constructor:
 public Text(Composite parent,
    int style) 
    Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.

    The style value is either one of the style constants defined in class SWT which is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using the int "|" operator) two or more of those SWT style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.

    Parameters:
    parent - a composite control which will be the parent of the new instance (cannot be null)
    style - the style of control to construct
    Throws:
    IllegalArgumentException -
    • ERROR_NULL_ARGUMENT - if the parent is null

    SWTException -
    • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent
    • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass

    Also see:
    SWT#SINGLE
    SWT#MULTI
    SWT#READ_ONLY
    SWT#WRAP
    SWT#LEFT
    SWT#RIGHT
    SWT#CENTER
    SWT#PASSWORD
    SWT#SEARCH
    SWT#ICON_SEARCH
    SWT#ICON_CANCEL
    Widget#checkSubclass
    Widget#getStyle
    exception: IllegalArgumentException -
    • ERROR_NULL_ARGUMENT - if the parent is null

    exception: SWTException -
    • ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent
    • ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass

Method from org.eclipse.swt.widgets.Text Summary:
WM_CHAR,   WM_CLEAR,   WM_CUT,   WM_ERASEBKGND,   WM_GETDLGCODE,   WM_IME_CHAR,   WM_LBUTTONDBLCLK,   WM_LBUTTONDOWN,   WM_PASTE,   WM_UNDO,   addModifyListener,   addSelectionListener,   addVerifyListener,   append,   callWindowProc,   checkStyle,   clearSelection,   computeSize,   computeTrim,   copy,   createHandle,   createWidget,   cut,   defaultBackground,   dragDetect,   fixAlignment,   getBorderWidth,   getCaretLineNumber,   getCaretLocation,   getCaretPosition,   getCharCount,   getDoubleClickEnabled,   getEchoChar,   getEditable,   getLineCount,   getLineDelimiter,   getLineHeight,   getMessage,   getOrientation,   getPosition,   getSelection,   getSelectionCount,   getSelectionText,   getTabWidth,   getTabs,   getText,   getText,   getTextLimit,   getTopIndex,   getTopPixel,   insert,   mbcsToWcsPos,   paste,   releaseWidget,   removeModifyListener,   removeSelectionListener,   removeVerifyListener,   selectAll,   sendKeyEvent,   setBounds,   setDefaultFont,   setDoubleClickEnabled,   setEchoChar,   setEditable,   setFont,   setMargins,   setMessage,   setOrientation,   setRedraw,   setSelection,   setSelection,   setSelection,   setTabStops,   setTabs,   setText,   setTextLimit,   setTopIndex,   showSelection,   verifyText,   wcsToMbcsPos,   widgetStyle,   windowClass,   windowProc,   windowProc,   wmClipboard,   wmColorChild,   wmCommandChild
Methods from org.eclipse.swt.widgets.Scrollable:
WM_HSCROLL,   WM_MOUSEWHEEL,   WM_SIZE,   WM_VSCROLL,   callWindowProc,   computeTrim,   createScrollBar,   createWidget,   destroyScrollBar,   getClientArea,   getHorizontalBar,   getVerticalBar,   releaseChildren,   scrolledHandle,   widgetExtStyle,   widgetStyle,   windowClass,   windowProc,   wmNCPaint,   wmScroll,   wmScrollWheel
Methods from org.eclipse.swt.widgets.Control:
WM_ACTIVATE,   WM_CAPTURECHANGED,   WM_CHANGEUISTATE,   WM_CHAR,   WM_CLEAR,   WM_CLOSE,   WM_COMMAND,   WM_CONTEXTMENU,   WM_CTLCOLOR,   WM_CUT,   WM_DESTROY,   WM_DRAWITEM,   WM_ENDSESSION,   WM_ENTERIDLE,   WM_ERASEBKGND,   WM_GETDLGCODE,   WM_GETFONT,   WM_GETMINMAXINFO,   WM_GETOBJECT,   WM_HELP,   WM_HOTKEY,   WM_HSCROLL,   WM_IME_CHAR,   WM_IME_COMPOSITION,   WM_IME_COMPOSITION_START,   WM_IME_ENDCOMPOSITION,   WM_INITMENUPOPUP,   WM_INPUTLANGCHANGE,   WM_KEYDOWN,   WM_KEYUP,   WM_KILLFOCUS,   WM_LBUTTONDBLCLK,   WM_LBUTTONDOWN,   WM_LBUTTONUP,   WM_MBUTTONDBLCLK,   WM_MBUTTONDOWN,   WM_MBUTTONUP,   WM_MEASUREITEM,   WM_MENUCHAR,   WM_MENUSELECT,   WM_MOUSEACTIVATE,   WM_MOUSEHOVER,   WM_MOUSELEAVE,   WM_MOUSEMOVE,   WM_MOUSEWHEEL,   WM_MOVE,   WM_NCACTIVATE,   WM_NCCALCSIZE,   WM_NCHITTEST,   WM_NCLBUTTONDOWN,   WM_NCPAINT,   WM_NOTIFY,   WM_PAINT,   WM_PALETTECHANGED,   WM_PARENTNOTIFY,   WM_PASTE,   WM_PRINT,   WM_PRINTCLIENT,   WM_QUERYENDSESSION,   WM_QUERYNEWPALETTE,   WM_QUERYOPEN,   WM_RBUTTONDBLCLK,   WM_RBUTTONDOWN,   WM_RBUTTONUP,   WM_SETCURSOR,   WM_SETFOCUS,   WM_SETFONT,   WM_SETREDRAW,   WM_SETTINGCHANGE,   WM_SHOWWINDOW,   WM_SIZE,   WM_SYSCHAR,   WM_SYSCOLORCHANGE,   WM_SYSCOMMAND,   WM_SYSKEYDOWN,   WM_SYSKEYUP,   WM_TIMER,   WM_UNDO,   WM_UPDATEUISTATE,   WM_VSCROLL,   WM_WINDOWPOSCHANGED,   WM_WINDOWPOSCHANGING,   WM_XBUTTONDBLCLK,   WM_XBUTTONDOWN,   WM_XBUTTONUP,   addControlListener,   addDragDetectListener,   addFocusListener,   addHelpListener,   addKeyListener,   addMenuDetectListener,   addMouseListener,   addMouseMoveListener,   addMouseTrackListener,   addMouseWheelListener,   addPaintListener,   addTraverseListener,   borderHandle,   checkBackground,   checkBorder,   checkBuffered,   checkComposited,   checkHandle,   checkMirrored,   computeSize,   computeSize,   computeTabGroup,   computeTabList,   computeTabRoot,   createHandle,   createWidget,   defaultBackground,   defaultFont,   defaultForeground,   deregister,   destroyWidget,   dragDetect,   dragDetect,   dragDetect,   drawBackground,   drawBackground,   drawBackground,   drawImageBackground,   drawThemeBackground,   enableDrag,   enableWidget,   fillBackground,   fillImageBackground,   fillThemeBackground,   findBackgroundControl,   findBrush,   findCursor,   findImageControl,   findMenus,   findMnemonic,   findThemeControl,   fixChildren,   fixFocus,   forceFocus,   forceResize,   getAccessible,   getBackground,   getBackgroundImage,   getBackgroundPixel,   getBorderWidth,   getBounds,   getClipboardText,   getCodePage,   getCursor,   getDragDetect,   getDrawing,   getEnabled,   getFont,   getForeground,   getForegroundPixel,   getLayoutData,   getLocation,   getMenu,   getMonitor,   getParent,   getPath,   getRegion,   getShell,   getSize,   getToolTipText,   getVisible,   hasCursor,   hasFocus,   internal_dispose_GC,   internal_new_GC,   isActive,   isEnabled,   isFocusAncestor,   isFocusControl,   isReparentable,   isShowing,   isTabGroup,   isTabItem,   isVisible,   mapEvent,   markLayout,   menuShell,   mnemonicHit,   mnemonicMatch,   moveAbove,   moveBelow,   new_Accessible,   new_GC,   pack,   pack,   print,   printWidget,   redraw,   redraw,   redraw,   redrawChildren,   register,   releaseHandle,   releaseParent,   releaseWidget,   removeControlListener,   removeDragDetectListener,   removeFocusListener,   removeHelpListener,   removeKeyListener,   removeMenuDetectListener,   removeMouseListener,   removeMouseMoveListener,   removeMouseTrackListener,   removeMouseWheelListener,   removePaintListener,   removeTraverseListener,   sendFocusEvent,   sendMove,   sendResize,   setBackground,   setBackground,   setBackgroundImage,   setBackgroundImage,   setBackgroundPixel,   setBounds,   setBounds,   setBounds,   setBounds,   setCapture,   setCursor,   setCursor,   setDefaultFont,   setDragDetect,   setEnabled,   setFixedFocus,   setFocus,   setFont,   setForeground,   setForegroundPixel,   setLayoutData,   setLocation,   setLocation,   setMenu,   setParent,   setRadioFocus,   setRadioSelection,   setRedraw,   setRegion,   setSavedFocus,   setSize,   setSize,   setTabItemFocus,   setToolTipText,   setToolTipText,   setVisible,   showWidget,   sort,   subclass,   toControl,   toControl,   toDisplay,   toDisplay,   topHandle,   translateAccelerator,   translateMnemonic,   translateMnemonic,   translateTraversal,   traverse,   traverse,   traverseEscape,   traverseGroup,   traverseItem,   traverseMnemonic,   traversePage,   traverseReturn,   unsubclass,   update,   update,   updateBackgroundColor,   updateBackgroundImage,   updateBackgroundMode,   updateFont,   updateImages,   updateLayout,   widgetCreateStruct,   widgetExtStyle,   widgetParent,   widgetStyle,   windowClass,   windowProc,   windowProc,   wmColorChild,   wmCommandChild,   wmDrawChild,   wmMeasureChild,   wmNotify,   wmNotifyChild,   wmScrollChild
Methods from org.eclipse.swt.widgets.Widget:
DeferWindowPos,   SetWindowPos,   _addListener,   addDisposeListener,   addListener,   callWindowProc,   checkBits,   checkOpened,   checkOrientation,   checkParent,   checkSubclass,   checkWidget,   destroyWidget,   dispose,   dragDetect,   error,   filters,   findItem,   fixMnemonic,   fixMnemonic,   getData,   getData,   getDisplay,   getListeners,   getMenu,   getName,   getNameText,   getStyle,   hooks,   isDisposed,   isListening,   isValidSubclass,   isValidThread,   mapEvent,   new_GC,   notifyListeners,   postEvent,   postEvent,   release,   releaseChildren,   releaseHandle,   releaseParent,   releaseWidget,   removeDisposeListener,   removeListener,   removeListener,   sendDragEvent,   sendDragEvent,   sendEvent,   sendEvent,   sendEvent,   sendEvent,   sendFocusEvent,   sendKeyEvent,   sendKeyEvent,   sendMouseEvent,   sendMouseEvent,   setData,   setData,   setInputState,   setKeyState,   setTabGroupFocus,   setTabItemFocus,   showMenu,   toString,   wmCaptureChanged,   wmChar,   wmContextMenu,   wmIMEChar,   wmKeyDown,   wmKeyUp,   wmKillFocus,   wmLButtonDblClk,   wmLButtonDown,   wmLButtonUp,   wmMButtonDblClk,   wmMButtonDown,   wmMButtonUp,   wmMouseHover,   wmMouseLeave,   wmMouseMove,   wmMouseWheel,   wmNCPaint,   wmPaint,   wmPrint,   wmRButtonDblClk,   wmRButtonDown,   wmRButtonUp,   wmSetFocus,   wmSysChar,   wmSysKeyDown,   wmSysKeyUp,   wmXButtonDblClk,   wmXButtonDown,   wmXButtonUp
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.eclipse.swt.widgets.Text Detail:
 LRESULT WM_CHAR(int wParam,
    int lParam) 
 LRESULT WM_CLEAR(int wParam,
    int lParam) 
 LRESULT WM_CUT(int wParam,
    int lParam) 
 LRESULT WM_ERASEBKGND(int wParam,
    int lParam) 
 LRESULT WM_GETDLGCODE(int wParam,
    int lParam) 
 LRESULT WM_IME_CHAR(int wParam,
    int lParam) 
 LRESULT WM_LBUTTONDBLCLK(int wParam,
    int lParam) 
 LRESULT WM_LBUTTONDOWN(int wParam,
    int lParam) 
 LRESULT WM_PASTE(int wParam,
    int lParam) 
 LRESULT WM_UNDO(int wParam,
    int lParam) 
 public  void addModifyListener(ModifyListener listener) 
    Adds the listener to the collection of listeners who will be notified when the receiver's text is modified, by sending it one of the messages defined in the ModifyListener interface.
 public  void addSelectionListener(SelectionListener listener) 
    Adds the listener to the collection of listeners who will be notified when the control is selected by the user, by sending it one of the messages defined in the SelectionListener interface.

    widgetSelected is not called for texts. widgetDefaultSelected is typically called when ENTER is pressed in a single-line text, or when ENTER is pressed in a search text. If the receiver has the SWT.SEARCH | SWT.CANCEL style and the user cancels the search, the event object detail field contains the value SWT.CANCEL.

 public  void addVerifyListener(VerifyListener listener) 
    Adds the listener to the collection of listeners who will be notified when the receiver's text is verified, by sending it one of the messages defined in the VerifyListener interface.
 public  void append(String string) 
    Appends a string.

    The new text is appended to the text at the end of the widget.

 int callWindowProc(int hwnd,
    int msg,
    int wParam,
    int lParam) 
 static int checkStyle(int style) 
 public  void clearSelection() 
    Clears the selection.
 public Point computeSize(int wHint,
    int hHint,
    boolean changed) 
 public Rectangle computeTrim(int x,
    int y,
    int width,
    int height) 
 public  void copy() 
    Copies the selected text.

    The current selection is copied to the clipboard.

  void createHandle() 
  void createWidget() 
 public  void cut() 
    Cuts the selected text.

    The current selection is first copied to the clipboard and then deleted from the widget.

 int defaultBackground() 
 boolean dragDetect(int hwnd,
    int x,
    int y,
    boolean filter,
    boolean[] detect,
    boolean[] consume) 
  void fixAlignment() 
 public int getBorderWidth() 
 public int getCaretLineNumber() 
    Returns the line number of the caret.

    The line number of the caret is returned.

 public Point getCaretLocation() 
    Returns a point describing the receiver's location relative to its parent (or its display if its parent is null).

    The location of the caret is returned.

 public int getCaretPosition() 
    Returns the character position of the caret.

    Indexing is zero based.

 public int getCharCount() 
    Returns the number of characters.
 public boolean getDoubleClickEnabled() 
    Returns the double click enabled flag.

    The double click flag enables or disables the default action of the text widget when the user double clicks.

 public char getEchoChar() 
    Returns the echo character.

    The echo character is the character that is displayed when the user enters text or the text is changed by the programmer.

 public boolean getEditable() 
    Returns the editable state.
 public int getLineCount() 
    Returns the number of lines.
 public String getLineDelimiter() 
    Returns the line delimiter.
 public int getLineHeight() 
    Returns the height of a line.
 public String getMessage() 
    Returns the widget message. The message text is displayed as a hint for the user, indicating the purpose of the field.

    Typically this is used in conjunction with SWT.SEARCH.

 public int getOrientation() 
    Returns the orientation of the receiver, which will be one of the constants SWT.LEFT_TO_RIGHT or SWT.RIGHT_TO_LEFT.
 int getPosition(Point point) 
    Returns the character position at the given point in the receiver or -1 if no such position exists. The point is in the coordinate system of the receiver.

    Indexing is zero based.

 public Point getSelection() 
    Returns a Point whose x coordinate is the character position representing the start of the selected text, and whose y coordinate is the character position representing the end of the selection. An "empty" selection is indicated by the x and y coordinates having the same value.

    Indexing is zero based. The range of a selection is from 0..N where N is the number of characters in the widget.

 public int getSelectionCount() 
    Returns the number of selected characters.
 public String getSelectionText() 
    Gets the selected text, or an empty string if there is no current selection.
 int getTabWidth(int tabs) 
 public int getTabs() 
    Returns the number of tabs.

    Tab stop spacing is specified in terms of the space (' ') character. The width of a single tab stop is the pixel width of the spaces.

 public String getText() 
    Returns the widget text.

    The text for a text widget is the characters in the widget, or an empty string if this has never been set.

 public String getText(int start,
    int end) 
    Returns a range of text. Returns an empty string if the start of the range is greater than the end.

    Indexing is zero based. The range of a selection is from 0..N-1 where N is the number of characters in the widget.

 public int getTextLimit() 
    Returns the maximum number of characters that the receiver is capable of holding.

    If this has not been changed by setTextLimit(), it will be the constant Text.LIMIT.

 public int getTopIndex() 
    Returns the zero-relative index of the line which is currently at the top of the receiver.

    This index can change when lines are scrolled or new lines are added or removed.

 public int getTopPixel() 
    Returns the top pixel.

    The top pixel is the pixel position of the line that is currently at the top of the widget. On some platforms, a text widget can be scrolled by pixels instead of lines so that a partial line is displayed at the top of the widget.

    The top pixel changes when the widget is scrolled. The top pixel does not include the widget trimming.

 public  void insert(String string) 
    Inserts a string.

    The old selection is replaced with the new text.

 int mbcsToWcsPos(int mbcsPos) 
 public  void paste() 
    Pastes text from clipboard.

    The selected text is deleted from the widget and new text inserted from the clipboard.

  void releaseWidget() 
 public  void removeModifyListener(ModifyListener listener) 
    Removes the listener from the collection of listeners who will be notified when the receiver's text is modified.
 public  void removeSelectionListener(SelectionListener listener) 
    Removes the listener from the collection of listeners who will be notified when the control is selected by the user.
 public  void removeVerifyListener(VerifyListener listener) 
    Removes the listener from the collection of listeners who will be notified when the control is verified.
 public  void selectAll() 
    Selects all the text in the receiver.
 boolean sendKeyEvent(int type,
    int msg,
    int wParam,
    int lParam,
    Event event) 
  void setBounds(int x,
    int y,
    int width,
    int height,
    int flags) 
  void setDefaultFont() 
 public  void setDoubleClickEnabled(boolean doubleClick) 
    Sets the double click enabled flag.

    The double click flag enables or disables the default action of the text widget when the user double clicks.

    Note: This operation is a hint and is not supported on platforms that do not have this concept.

 public  void setEchoChar(char echo) 
    Sets the echo character.

    The echo character is the character that is displayed when the user enters text or the text is changed by the programmer. Setting the echo character to '\0' clears the echo character and redraws the original text. If for any reason the echo character is invalid, or if the platform does not allow modification of the echo character, the default echo character for the platform is used.

 public  void setEditable(boolean editable) 
    Sets the editable state.
 public  void setFont(Font font) 
  void setMargins() 
 public  void setMessage(String message) 
    Sets the widget message. The message text is displayed as a hint for the user, indicating the purpose of the field.

    Typically this is used in conjunction with SWT.SEARCH.

 public  void setOrientation(int orientation) 
    Sets the orientation of the receiver, which must be one of the constants SWT.LEFT_TO_RIGHT or SWT.RIGHT_TO_LEFT.

    Note: This operation is a hint and is not supported on platforms that do not have this concept.

 public  void setRedraw(boolean redraw) 
 public  void setSelection(int start) 
    Sets the selection.

    Indexing is zero based. The range of a selection is from 0..N where N is the number of characters in the widget.

    Text selections are specified in terms of caret positions. In a text widget that contains N characters, there are N+1 caret positions, ranging from 0..N. This differs from other functions that address character position such as getText () that use the regular array indexing rules.

 public  void setSelection(Point selection) 
    Sets the selection to the range specified by the given point, where the x coordinate represents the start index and the y coordinate represents the end index.

    Indexing is zero based. The range of a selection is from 0..N where N is the number of characters in the widget.

    Text selections are specified in terms of caret positions. In a text widget that contains N characters, there are N+1 caret positions, ranging from 0..N. This differs from other functions that address character position such as getText () that use the usual array indexing rules.

 public  void setSelection(int start,
    int end) 
    Sets the selection to the range specified by the given start and end indices.

    Indexing is zero based. The range of a selection is from 0..N where N is the number of characters in the widget.

    Text selections are specified in terms of caret positions. In a text widget that contains N characters, there are N+1 caret positions, ranging from 0..N. This differs from other functions that address character position such as getText () that use the usual array indexing rules.

  void setTabStops(int tabs) 
 public  void setTabs(int tabs) 
    Sets the number of tabs.

    Tab stop spacing is specified in terms of the space (' ') character. The width of a single tab stop is the pixel width of the spaces.

 public  void setText(String string) 
    Sets the contents of the receiver to the given string. If the receiver has style SINGLE and the argument contains multiple lines of text, the result of this operation is undefined and may vary from platform to platform.
 public  void setTextLimit(int limit) 
    Sets the maximum number of characters that the receiver is capable of holding to be the argument.

    Instead of trying to set the text limit to zero, consider creating a read-only text widget.

    To reset this value to the default, use setTextLimit(Text.LIMIT). Specifying a limit value larger than Text.LIMIT sets the receiver's limit to Text.LIMIT.

 public  void setTopIndex(int index) 
    Sets the zero-relative index of the line which is currently at the top of the receiver. This index can change when lines are scrolled or new lines are added and removed.
 public  void showSelection() 
    Shows the selection.

    If the selection is already showing in the receiver, this method simply returns. Otherwise, lines are scrolled until the selection is visible.

 String verifyText(String string,
    int start,
    int end,
    Event keyEvent) 
 int wcsToMbcsPos(int wcsPos) 
 int widgetStyle() 
 TCHAR windowClass() 
 int windowProc() 
 int windowProc(int hwnd,
    int msg,
    int wParam,
    int lParam) 
 LRESULT wmClipboard(int msg,
    int wParam,
    int lParam) 
 LRESULT wmColorChild(int wParam,
    int lParam) 
 LRESULT wmCommandChild(int wParam,
    int lParam)