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

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

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

org::gjt::sp::jedit::textarea::JEditEmbeddedTextArea org::gjt::sp::jedit::textarea::JEditTextArea org::gjt::sp::jedit::textarea::StandaloneTextArea

List of all members.

Detailed Description

Abstract TextArea component.

The concrete instance used by jEdit itself is called the JEditTextArea.

This class uses a minimal set of jEdit APIs because it is the base class of the JEditEmbeddedTextArea and StandaloneTextArea, so it needs to be embeddable and separable.

Slava Pestov

kpouer (rafactoring into standalone text area)

TextArea.java 16763 2009-12-28 16:20:33Z k_satoda

Definition at line 70 of file TextArea.java.

Public Member Functions

void addActionSet (JEditActionSet< JEditBeanShellAction > actionSet)
final void addCaretListener (CaretListener listener)
void addExplicitFold () throws TextAreaException
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 () throws TextAreaException
< JEditBeanShellAction,
< 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 ()
Iterator< SelectiongetSelectionIterator ()
StructureMatcher.Match getStructureMatch ()
String getText ()
final void getText (int start, int len, Segment segment)
final String getText (int start, int len)
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 ()
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 ()
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)
void setText (String text)
void setTransferHandler (TransferHandler newHandler)
void shiftIndentLeft ()
void shiftIndentRight ()
void showPopupMenu ()
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 Attributes

static final int ELECTRIC_SCROLL = 2
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)
 TextArea (IPropertyManager propertyManager, InputHandlerProvider inputHandlerProvider)
void userInputTab ()

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 Member Functions

void _changeLine (boolean select, int newCaret)
void _setHorizontalOffset (int horizontalOffset)
void delete (boolean forward)
void finishCaretUpdate (int oldCaretLine, int scrollMode, boolean fireCaretEvent)
void fireBracketSelected (int line, String text)
void fireCaretEvent ()
void fireScrollEvent (boolean vertical)
void fireStatusChanged (int flag, boolean value)
RectParams getRectParams (int caret, int newCaret)
void insertTab ()
void invalidateSelectedLines ()
void joinLineAt (int line)
boolean lineContainsSpaceAndTabs (int lineIndex)
void rangeLineComment ()
void setMaxLineLength (int maxLineLen)
void shiftTallCaretLeft (Selection.Rect s)
void showStructureStatusMessage (boolean backward)
void tallCaretDelete (Selection.Rect s, boolean forward)
void updateStructureHighlight ()

Static Private Member Functions

static void showPopupMenu (JPopupMenu popup, Component comp, int x, int y, boolean point)
static void updateBracketHighlightWithDelay ()

Private Attributes

< JEditBeanShellAction,
< JEditBeanShellAction > > 
boolean caretBlinks
final MutableCaretEvent caretEvent
int caretScreenLine
boolean ctrlForRectangularSelection
boolean dndEnabled
boolean dndInProgress
int electricScroll
final Gutter gutter
final JScrollBar horizontal
int horizontalOffset
InputMethodSupport inputMethodSupport
boolean joinNonWordChars
final EventListenerList listenerList
int magicCaret
StructureMatcher.Match match
int oldCaretLine
boolean overwrite
int physLastLine
boolean popupEnabled
boolean queuedCaretUpdate
boolean queuedFireCaretEvent
int queuedScrollMode
boolean quickCopy
boolean rectangularSelectionMode
int screenLastLine
final java.util.List
< StructureMatcher
final JScrollBar vertical
final Box verticalBox
int visibleLines

Static Private Attributes

static final Timer caretTimer
static final Timer structureTimer


class  AdjustHandler
class  CaretBlinker
class  FocusHandler
class  MouseWheelHandler
class  MutableCaretEvent
class  RectParams

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

Generated by  Doxygen 1.6.0   Back to index