org.eclipse.swt.custom
Class JaretStyledText

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by org.eclipse.swt.widgets.Canvas
                      extended by org.eclipse.swt.custom.StyledText
                          extended by org.eclipse.swt.custom.JaretStyledText
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

public class JaretStyledText
extends org.eclipse.swt.custom.StyledText

Extension (HACK!) of the styled text widget to add a method for setting the caret offset without clearing the selection.

Version:
$Id: JaretStyledText.java 242 2007-02-11 21:05:07Z olk $
Author:
Peter Kliem

Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
JaretStyledText(org.eclipse.swt.widgets.Composite arg0, int arg1)
           
 
Method Summary
 void setCaretOffsetJaret(int offset)
           
 
Methods inherited from class org.eclipse.swt.custom.StyledText
addBidiSegmentListener, addExtendedModifyListener, addLineBackgroundListener, addLineStyleListener, addModifyListener, addPaintObjectListener, addSelectionListener, addVerifyKeyListener, addVerifyListener, append, computeSize, copy, copy, cut, getAlignment, getBackground, getBaseline, getBaseline, getBidiColoring, getCaretOffset, getCharCount, getContent, getDoubleClickEnabled, getEditable, getForeground, getHorizontalIndex, getHorizontalPixel, getIndent, getJustify, getKeyBinding, getLineAlignment, getLineAtOffset, getLineBackground, getLineBullet, getLineCount, getLineDelimiter, getLineHeight, getLineHeight, getLineIndent, getLineIndex, getLineJustify, getLinePixel, getLineSpacing, getLocationAtOffset, getOffsetAtLine, getOffsetAtLocation, getOrientation, getRanges, getRanges, getSelection, getSelectionBackground, getSelectionCount, getSelectionForeground, getSelectionRange, getSelectionText, getStyle, getStyleRangeAtOffset, getStyleRanges, getStyleRanges, getStyleRanges, getStyleRanges, getTabs, getText, getText, getTextBounds, getTextLimit, getTextRange, getTopIndex, getTopPixel, getWordWrap, insert, invokeAction, paste, print, print, print, redraw, redraw, redrawRange, removeBidiSegmentListener, removeExtendedModifyListener, removeLineBackgroundListener, removeLineStyleListener, removeModifyListener, removePaintObjectListener, removeSelectionListener, removeVerifyKeyListener, removeVerifyListener, replaceStyleRanges, replaceTextRange, scroll, selectAll, setAlignment, setBackground, setBidiColoring, setCaret, setCaretOffset, setContent, setCursor, setDoubleClickEnabled, setEditable, setFont, setForeground, setHorizontalIndex, setHorizontalPixel, setIndent, setJustify, setKeyBinding, setLineAlignment, setLineBackground, setLineBullet, setLineIndent, setLineJustify, setLineSpacing, setOrientation, setSelection, setSelection, setSelection, setSelectionBackground, setSelectionForeground, setSelectionRange, setStyleRange, setStyleRanges, setStyleRanges, setStyleRanges, setTabs, setText, setTextLimit, setTopIndex, setTopPixel, setWordWrap, showSelection
 
Methods inherited from class org.eclipse.swt.widgets.Canvas
drawBackground, getCaret
 
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackgroundImage, getBorderWidth, getBounds, getEnabled, getFont, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackgroundImage, setBounds, setBounds, setCapture, setEnabled, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JaretStyledText

public JaretStyledText(org.eclipse.swt.widgets.Composite arg0,
                       int arg1)
Method Detail

setCaretOffsetJaret

public void setCaretOffsetJaret(int offset)


Copyright © 2013. All Rights Reserved.