Logo Search packages:      
Sourcecode: jedit version File versions  Download package

org::gjt::sp::jedit::textarea::JEditTextArea Class Reference

Inheritance diagram for org::gjt::sp::jedit::textarea::JEditTextArea:

org::gjt::sp::jedit::textarea::TextArea

List of all members.


Detailed Description

jEdit's text component.

Unlike most other text editors, the selection API permits selection and concurrent manipulation of multiple, non-contiguous regions of text. Methods in this class that deal with selecting text rely upon classes derived the Selection class.

Author:
Slava Pestov

John Gellene (API documentation)

Version:
Id
JEditTextArea.java 16763 2009-12-28 16:20:33Z k_satoda

Definition at line 53 of file JEditTextArea.java.


Public Member Functions

void addActionSet (JEditActionSet< JEditBeanShellAction > actionSet)
final void addCaretListener (CaretListener listener)
void addExplicitFold ()
void addLeftOfScrollBar (Component comp)
void addNotify ()
final void addScrollListener (ScrollListener listener)
final void addStatusListener (StatusListener listener)
void addStructureMatcher (StructureMatcher matcher)
void addTopComponent (Component comp)
void addToSelection (Selection selection)
void addToSelection (Selection[] selection)
void backspace ()
void backspaceWord (boolean eatWhitespace)
void backspaceWord ()
final void blinkCaret ()
boolean caretAutoScroll ()
void centerCaret ()
void collapseFold (int line)
void collapseFold ()
void createPopupMenu (MouseEvent evt)
void delete ()
void deleteLine ()
void deleteParagraph ()
void deleteToEndOfLine ()
void deleteToStartOfLine ()
void deleteWord (boolean eatWhitespace)
void deleteWord ()
void dispose ()
void end (boolean select)
void expandFold (boolean fully)
void extendSelection (int offset, int end, int extraStartVirt, int extraEndVirt)
void extendSelection (int offset, int end)
void formatParagraph ()
JEditActionContext
< JEditBeanShellAction,
JEditActionSet
< JEditBeanShellAction > > 
getActionContext ()
final JEditBuffer getBuffer ()
final int getBufferLength ()
int getCaretLine ()
int getCaretPosition ()
DisplayManager getDisplayManager ()
final int getElectricScroll ()
final int getFirstLine ()
final int getFirstPhysicalLine ()
boolean getFocusCycleRoot ()
boolean getFocusTraversalKeysEnabled ()
FoldPainter getFoldPainter ()
final Gutter getGutter ()
final int getHorizontalOffset ()
AbstractInputHandler getInputHandler ()
InputMethodRequests getInputMethodRequests ()
boolean getJoinNonWordChars ()
final int getLastPhysicalLine ()
int getLastScreenLine ()
final int getLineCount ()
int getLineEndOffset (int line)
int getLineLength (int line)
final int getLineOfOffset (int offset)
int getLineStartOffset (int line)
final void getLineText (int lineIndex, Segment segment)
final String getLineText (int lineIndex)
int getMagicCaretPosition ()
final int getMarkLine ()
final int getMarkPosition ()
final TextAreaPainter getPainter ()
int getPhysicalLineOfScreenLine (int screenLine)
final JPopupMenu getRightClickPopup ()
int getScreenLineEndOffset (int line)
int getScreenLineOfOffset (int offset)
int getScreenLineStartOffset (int line)
int[] getSelectedLines ()
String getSelectedText ()
String getSelectedText (String separator)
String getSelectedText (Selection s)
Selection getSelection (int index)
Selection[] getSelection ()
Selection getSelectionAtOffset (int offset)
int getSelectionCount ()
int getSelectionEnd (int line)
final int getSelectionEnd ()
final int getSelectionEndLine ()
Iterator< SelectiongetSelectionIterator ()
int getSelectionStart (int line)
final int getSelectionStart ()
final int getSelectionStartLine ()
StructureMatcher.Match getStructureMatch ()
String getText ()
final void getText (int start, int len, Segment segment)
final String getText (int start, int len)
View getView ()
final int getVisibleLines ()
void goToBufferEnd (boolean select)
void goToBufferStart (boolean select)
void goToEndOfCode (boolean select)
void goToEndOfLine (boolean select)
void goToEndOfWhiteSpace (boolean select)
void goToFirstVisibleLine (boolean select)
void goToLastVisibleLine (boolean select)
void goToMatchingBracket ()
void goToNextBracket (boolean select)
void goToNextCharacter (boolean select)
void goToNextFold (boolean select)
void goToNextLine (boolean select)
void goToNextPage (boolean select)
void goToNextParagraph (boolean select)
void goToNextWord (boolean select, boolean eatWhitespace)
void goToNextWord (boolean select)
void goToParentFold ()
void goToPrevBracket (boolean select)
void goToPrevCharacter (boolean select)
void goToPrevFold (boolean select)
void goToPrevLine (boolean select)
void goToPrevPage (boolean select)
void goToPrevParagraph (boolean select)
void goToPrevWord (boolean select, boolean eatWhitespace)
void goToPrevWord (boolean select)
void goToStartOfLine (boolean select)
void goToStartOfWhiteSpace (boolean select)
void handlePopupTrigger (MouseEvent evt)
void home (boolean select)
void indentSelectedLines ()
void initInputHandler ()
void insertEnterAndIndent ()
void insertTabAndIndent ()
void invalidateLine (int line)
void invalidateLineRange (int start, int end)
void invalidateScreenLineRange (int start, int end)
final void invertSelection ()
final boolean isCaretBlinkEnabled ()
boolean isCtrlForRectangularSelection ()
boolean isDragEnabled ()
boolean isDragInProgress ()
final boolean isEditable ()
final boolean isMultipleSelectionEnabled ()
final boolean isOverwriteEnabled ()
final boolean isQuickCopyEnabled ()
final boolean isRectangularSelectionEnabled ()
boolean isRightClickPopupEnabled ()
boolean isSelectionRectangular ()
 JEditTextArea (View view)
void joinLines ()
void lineComment ()
boolean lineInStructureScope (int line)
void moveCaretPosition (int newCaret, int scrollMode)
void moveCaretPosition (int newCaret, boolean doElectricScroll)
void moveCaretPosition (int newCaret)
void narrowToFold ()
void narrowToSelection ()
Point offsetToXY (int line, int offset, Point retVal)
Point offsetToXY (int line, int offset)
Point offsetToXY (int offset)
void processKeyEvent (KeyEvent evt)
void propertiesChanged ()
void rangeComment ()
final void removeCaretListener (CaretListener listener)
void removeFromSelection (int offset)
void removeFromSelection (Selection sel)
void removeLeftOfScrollBar (Component comp)
void removeNotify ()
final void removeScrollListener (ScrollListener listener)
final void removeStatusListener (StatusListener listener)
void removeStructureMatcher (StructureMatcher matcher)
void removeTopComponent (Component comp)
void removeTrailingWhiteSpace ()
int replaceSelection (String selectedText)
void resizeSelection (int offset, int end, int extraEndVirt, boolean rect)
void scrollAndCenterCaret ()
void scrollDownLine ()
void scrollDownPage ()
void scrollTo (int line, int offset, boolean doElectricScroll)
void scrollTo (int offset, boolean doElectricScroll)
void scrollToCaret (boolean doElectricScroll)
void scrollUpLine ()
void scrollUpPage ()
void select (int start, int end, boolean doElectricScroll)
void select (int start, int end)
final void selectAll ()
void selectBlock ()
void selectFold (int line)
void selectFold ()
void selectLine ()
void selectNone ()
void selectParagraph ()
void selectToMatchingBracket ()
Selection selectToMatchingBracket (int position, boolean quickCopy)
void selectWord ()
void setBuffer (JEditBuffer buffer)
void setCaretBlinkEnabled (boolean caretBlinks)
void setCaretPosition (int newCaret, boolean doElectricScroll)
void setCaretPosition (int newCaret)
void setCtrlForRectangularSelection (boolean ctrlForRectangularSelection)
void setDragEnabled (boolean dndEnabled)
void setDragInProgress (boolean dndInProgress)
final void setElectricScroll (int electricScroll)
void setFirstLine (int firstLine)
void setFirstPhysicalLine (int physFirstLine, int skew)
void setFirstPhysicalLine (int physFirstLine)
void setHorizontalOffset (int horizontalOffset)
void setJoinNonWordChars (boolean joinNonWordChars)
void setMagicCaretPosition (int magicCaret)
void setMouseHandler (MouseInputAdapter mouseInputAdapter)
final void setMultipleSelectionEnabled (boolean multi)
final void setOverwriteEnabled (boolean overwrite)
final void setQuickCopyEnabled (boolean quickCopy)
final void setRectangularSelectionEnabled (boolean rectangularSelectionMode)
final void setRightClickPopup (JPopupMenu popup)
void setRightClickPopupEnabled (boolean popupEnabled)
void setSelectedText (String selectedText, boolean moveCaret)
void setSelectedText (String selectedText)
void setSelectedText (Selection s, String selectedText)
void setSelection (Selection selection)
void setSelection (Selection[] selection)
final void setSelectionEnd (int selectionEnd)
final void setSelectionStart (int selectionStart)
void setText (String text)
void setTransferHandler (TransferHandler newHandler)
void shiftIndentLeft ()
void shiftIndentRight ()
void showGoToLineDialog ()
void showPopupMenu ()
void showWordCountDialog ()
void smartEnd (boolean select)
void smartHome (boolean select)
void spacesToTabs ()
void tabsToSpaces ()
final void toggleMultipleSelectionEnabled ()
final void toggleOverwriteEnabled ()
final void toggleRectangularSelectionEnabled ()
void toLowerCase ()
String toString ()
void toUpperCase ()
void userInput (char ch)
int xToScreenLineOffset (int screenLine, int x, boolean round)
int xyToOffset (int x, int y, boolean round)
int xyToOffset (int x, int y)

Static Public Member Functions

static String getFoldPainterName ()

Static Public Attributes

static final String DEFAULT_FOLD_PAINTER_SERVICE = "Triangle"
static final int ELECTRIC_SCROLL = 2
static final String FOLD_PAINTER_PROPERTY = "foldPainter"
static final String FOLD_PAINTER_SERVICE = "org.gjt.sp.jedit.textarea.FoldPainter"
static final int NO_SCROLL = 0
static final int NORMAL_SCROLL = 1

Protected Member Functions

int addExplicitFold (int caretStart, int caretEnd, int lineStart, int lineEnd)
boolean doWordWrap (boolean spaceInserted)
void insert (String str, boolean indent)
void userInputTab ()

Static Protected Member Functions

static void doWordCount (View view, String text)

Protected Attributes

JEditBuffer buffer
int caret
int caretLine
Cursor hiddenCursor
InputHandlerProvider inputHandlerProvider
boolean multi
final TextAreaPainter painter
JPopupMenu popup

Package Functions

void _finishCaretUpdate ()
void fireNarrowActive ()
void foldStructureChanged ()
void invalidateStructureMatch ()
final boolean isCaretVisible ()
final boolean isStructureHighlightVisible ()
void recalculateLastPhysicalLine ()
void recalculateVisibleLines ()
void startDragAndDrop (InputEvent evt, boolean copy)
void updateMaxHorizontalScrollWidth ()
void updateScrollBar ()

Static Package Functions

 [static initializer]

Package Attributes

boolean blink
boolean bufferChanging
int charWidth
final ChunkCache chunkCache
DisplayManager displayManager
boolean hardWrap
boolean lastLinePartial
final Segment lineSegment = new Segment()
int maxHorizontalScrollWidth
int maxLineLen
MouseInputAdapter mouseHandler
final Point offsetXY
boolean scrollBarsInitialized
final SelectionManager selectionManager
boolean softWrap
float tabSize
String wrap
int wrapMargin
boolean wrapToWidth

Static Package Attributes

static TextArea focusedComponent

Private Attributes

View view

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index