站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

Uses of Class org.netbeans.editor.BaseDocument (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

Uses of Class
org.netbeans.editor.BaseDocument

Packages that use BaseDocument
org.netbeans.editor   
org.netbeans.editor.ext Completion Design View 
 

Uses of BaseDocument in org.netbeans.editor
 

Subclasses of BaseDocument in org.netbeans.editor
 class GuardedDocument
          Extension to the guarded document that implements StyledDocument interface
 

Fields in org.netbeans.editor declared as BaseDocument
protected  BaseDocument MarkChain.doc
          Document for this mark
protected  BaseDocument MarkBlockChain.doc
          Document for this block
protected  BaseDocument MarkBlock.doc
           
protected  BaseDocument BaseElement.doc
          Reference to document this element is part of
 

Methods in org.netbeans.editor that return BaseDocument
 BaseDocument SyntaxSupport.getDocument()
          Getter for the document that this support is associated to.
 BaseDocument EditorUI.getDocument()
          Get the document to work on.
static BaseDocument Registry.getDocument(int docID)
          Deprecated. Get document when its ID is known.
static BaseDocument Utilities.getDocument(JTextComponent target)
          Helper method to obtain instance of BaseDocument from JTextComponent.
static BaseDocument Registry.getLeastActiveDocument()
          Deprecated.  
static BaseDocument Registry.getLessActiveDocument(BaseDocument doc)
          Deprecated.  
static BaseDocument Registry.getLessActiveDocument(int docID)
          Deprecated.  
static BaseDocument Registry.getMoreActiveDocument(BaseDocument doc)
          Deprecated.  
static BaseDocument Registry.getMoreActiveDocument(int docID)
          Deprecated.  
static BaseDocument Registry.getMostActiveDocument()
          Deprecated.  
 

Methods in org.netbeans.editor with parameters of type BaseDocument
static void Registry.activate(BaseDocument doc)
          Deprecated. Put the document to the first position in the array of last accessed documents.
static int Registry.addDocument(BaseDocument doc)
          Deprecated. Add document to registry.
 int AdjustFinder.adjustLimitPos(BaseDocument doc, int limitPos)
          Adjust the limit position of the search (it's the position where the search will end) to be either the same or greater.
 int AdjustFinder.adjustStartPos(BaseDocument doc, int startPos)
          Adjust start position of the search to be either the same or lower.
protected  void BaseKit.InsertBreakAction.afterBreak(JTextComponent target, BaseDocument doc, Caret caret, Object data)
          Hook called after the enter was inserted and cursor repositioned.
protected  Object BaseKit.InsertBreakAction.beforeBreak(JTextComponent target, BaseDocument doc, Caret caret)
          Hook called before any changes to the document.
 void Formatter.changeBlockIndent(BaseDocument doc, int startPos, int endPos, int shiftCnt)
          Increase/decrease indentation of the block of the code.
static boolean Utilities.changeCase(BaseDocument doc, int offset, int len, int type)
          Change the case for specified part of document
 void Formatter.changeRowIndent(BaseDocument doc, int pos, int newIndent)
          Change the indent of the given row.
protected  void BaseKit.DeleteCharAction.charBackspaced(BaseDocument doc, int dotPos, Caret caret, char ch)
           
protected  EditorUI BaseKit.createPrintEditorUI(BaseDocument doc)
          Deprecated. this method is no longer being called by EditorUI. BaseKit.createPrintEditorUI(BaseDocument, boolean, boolean) is being called instead.
protected  EditorUI BaseKit.createPrintEditorUI(BaseDocument doc, boolean usePrintColoringMap, boolean lineNumberEnabled)
          Create extended UI for printing a document.
 SyntaxSupport BaseKit.createSyntaxSupport(BaseDocument doc)
          Create syntax support
static String EditorDebug.debugBlocks(BaseDocument doc, int[] blocks)
           
static String Utilities.debugPosition(BaseDocument doc, int offset)
           
static void EditorDebug.dumpPlanes(BaseDocument doc)
           
static void EditorDebug.dumpSyntaxMarks(BaseDocument doc)
           
static int[] DocumentFinder.find(BaseDocument doc, int startOffset, int endOffset, Map props, boolean oppositeDir)
          Deprecated. Finds in document
static int[] DocumentFinder.findBlocks(BaseDocument doc, int startOffset, int endOffset, Map props, int[] blocks)
          Deprecated.  
static DocumentFinder.FindReplaceResult DocumentFinder.findReplaceResult(String replaceString, BaseDocument doc, int startOffset, int endOffset, Map props, boolean oppositeDir)
          Deprecated. Finds the searching string and substitute replace expression in case of regexp backreferences.
static int Utilities.getFirstNonEmptyRow(BaseDocument doc, int offset, boolean downDir)
           
static int Utilities.getFirstNonWhiteBwd(BaseDocument doc, int offset)
          Get first non-white character in document in backward direction.
static int Utilities.getFirstNonWhiteBwd(BaseDocument doc, int offset, int limitPos)
          Get first non-white character in document in backward direction.
static int Utilities.getFirstNonWhiteFwd(BaseDocument doc, int offset)
          Get first non-white character in document in forward direction
static int Utilities.getFirstNonWhiteFwd(BaseDocument doc, int offset, int limitPos)
          Get first non-white character in document in forward direction
static int Utilities.getFirstNonWhiteRow(BaseDocument doc, int offset, boolean downDir)
           
static int Utilities.getFirstWhiteBwd(BaseDocument doc, int offset)
          Get first white character in document in backward direction.
static int Utilities.getFirstWhiteBwd(BaseDocument doc, int offset, int limitPos)
          Get first white character in document in backward direction.
static int Utilities.getFirstWhiteFwd(BaseDocument doc, int offset)
          Get first white character in document in forward direction
static int Utilities.getFirstWhiteFwd(BaseDocument doc, int offset, int limitPos)
          Get first white character in document in forward direction
static int Registry.getID(BaseDocument doc)
          Deprecated. Get document ID from the document.
static String Utilities.getIdentifier(BaseDocument doc, int offset)
          Get the identifier around the given position or null if there's no identifier
static String Utilities.getIdentifierBefore(BaseDocument doc, int offset)
          Get the identifier before the given position (ending at given offset) or null if there's no identifier
static int[] Utilities.getIdentifierBlock(BaseDocument doc, int offset)
          Get the identifier around the given position or null if there's no identifier around the given position.
 String Formatter.getIndentString(BaseDocument doc, int indent)
           
static BaseDocument Registry.getLessActiveDocument(BaseDocument doc)
          Deprecated.  
static int Utilities.getLineOffset(BaseDocument doc, int offset)
          Return line offset (line number - 1) for some position in the document
static BaseDocument Registry.getMoreActiveDocument(BaseDocument doc)
          Deprecated.  
static int Utilities.getNextTabColumn(BaseDocument doc, int offset)
          Get the visual column corresponding to the position after pressing the TAB key.
static int Utilities.getNextWord(BaseDocument doc, int offset)
           
static int Utilities.getPreviousWord(BaseDocument doc, int offset)
           
static int Utilities.getRowCount(BaseDocument doc)
          Get the total count of lines in the document
static int Utilities.getRowCount(BaseDocument doc, int startPos, int endPos)
          Count of rows between these two positions
static int Utilities.getRowEnd(BaseDocument doc, int offset)
           
static int Utilities.getRowFirstNonWhite(BaseDocument doc, int offset)
          Get the first non-white character on the line.
static int Utilities.getRowIndent(BaseDocument doc, int offset)
          Get indentation on the current line.
static int Utilities.getRowIndent(BaseDocument doc, int offset, boolean downDir)
          Get indentation on the current line.
static int Utilities.getRowLastNonWhite(BaseDocument doc, int offset)
          Get the last non-white character on the line.
static int Utilities.getRowStart(BaseDocument doc, int offset)
          Get the starting position of the row.
static int Utilities.getRowStart(BaseDocument doc, int offset, int lineShift)
          Get the starting position of the row while providing relative count of row how the given position should be shifted.
static int Utilities.getRowStartFromLineOffset(BaseDocument doc, int lineIndex)
          Return start offset of the line
static String Utilities.getTabInsertString(BaseDocument doc, int offset)
          Deprecated.  
static int Utilities.getVisualColumn(BaseDocument doc, int offset)
          Return visual column (with expanded tabs) on the line.
static String Utilities.getWord(BaseDocument doc, int offset)
          Get the word at given position.
static int Utilities.getWordEnd(BaseDocument doc, int offset)
           
static int Utilities.getWordStart(BaseDocument doc, int offset)
           
static void BaseKit.PasteAction.indentBlock(BaseDocument doc, int startOffset, int endOffset)
           
protected  void BaseKit.initDocument(BaseDocument doc)
          Initialize document by adding the draw-layers for example.
static void Analyzer.initialRead(BaseDocument doc, Reader reader, boolean testLS)
          Do initial reading of document.
static void Utilities.insertMark(BaseDocument doc, Mark mark, int offset)
           
protected  void BaseKit.DefaultKeyTypedAction.insertString(BaseDocument doc, int dotPos, Caret caret, String str, boolean overwrite)
          Hook to insert the given string at the given position into the given document in insert-mode, no selection, writeable document.
 void Formatter.insertTabString(BaseDocument doc, int dotPos)
          Modify the line to move the text starting at dotPos one tab column to the right.
static boolean Utilities.isRowEmpty(BaseDocument doc, int offset)
          Tests whether the line contains no characters except the ending new-line.
static boolean Utilities.isRowWhite(BaseDocument doc, int offset)
          Tests whether the line contains only whitespace characters.
protected  void EditorUI.modelChanged(BaseDocument oldDoc, BaseDocument newDoc)
           
protected  void BaseCaret.modelChanged(BaseDocument oldDoc, BaseDocument newDoc)
           
static void Utilities.moveMark(BaseDocument doc, Mark mark, int newOffset)
           
static String Utilities.offsetToLineColumnString(BaseDocument doc, int offset)
           
 int TextBatchProcessor.processTextBatch(BaseDocument doc, int startPos, int endPos, boolean lastBatch)
          Process one batch of the text.
static int Utilities.reformat(BaseDocument doc, int startOffset, int endOffset)
          Reformat a block of code.
 int Formatter.reformat(BaseDocument doc, int startOffset, int endOffset)
          Reformat a block of code.
static void Utilities.reformatLine(BaseDocument doc, int pos)
          Reformat the line around the given position.
 void Formatter.shiftLine(BaseDocument doc, int dotPos, boolean right)
          Shift line either left or right
 

Constructors in org.netbeans.editor with parameters of type BaseDocument
Annotations(BaseDocument doc)
           
BaseDocumentEvent(BaseDocument doc, int offset, int length, DocumentEvent.EventType type)
          Construct document event instance.
BaseElement(BaseDocument doc, BaseElement parent, AttributeSet attrs)
           
DrawLayerFactory.AnnotationLayer(BaseDocument doc)
          Deprecated.  
DrawLayerFactory.StyleLayer(String layerName, BaseDocument doc, Style style)
          Deprecated.  
EditorUI(BaseDocument printDoc)
          Construct extended UI for printing the given document
EditorUI(BaseDocument printDoc, boolean usePrintColoringMap, boolean lineNumberEnabled)
          Construct extended UI for printing the given document and specify which set of colors should be used.
FinderFactory.NextWordFwdFinder(BaseDocument doc, boolean stopOnEOL, boolean stopOnWhitespace)
           
FinderFactory.NonWhiteBwdFinder(BaseDocument doc)
           
FinderFactory.NonWhiteFwdFinder(BaseDocument doc)
           
FinderFactory.PreviousWordBwdFinder(BaseDocument doc, boolean stopOnEOL, boolean stopOnWhitespace)
           
FinderFactory.WhiteBwdFinder(BaseDocument doc)
           
FinderFactory.WhiteFwdFinder(BaseDocument doc)
           
FinderFactory.WholeWordsBlocksFinder(BaseDocument doc, String s, boolean matchCase)
           
FinderFactory.WholeWordsBwdFinder(BaseDocument doc, String s, boolean matchCase)
           
FinderFactory.WholeWordsFwdFinder(BaseDocument doc, String s, boolean matchCase)
           
LeafElement(BaseDocument doc, BaseElement parent, AttributeSet attrs, int startOffset, int endOffset, boolean bol, boolean eol)
          Create new document instance
MarkBlock(BaseDocument doc, int startPos, int endPos)
          Construct block with given marks
MarkBlock(BaseDocument doc, Mark startMark, Mark endMark)
           
MarkBlock(BaseDocument doc, Mark startMark, Mark endMark, int startPos, int endPos)
          Construct block from positions on some document
MarkBlockChain.LayerChain(BaseDocument doc, String layerName)
           
MarkBlockChain(BaseDocument doc)
          Construct chain using regular base marks
MarkChain(BaseDocument doc, String layerName)
          Construct chain using draw marks
SyntaxSupport(BaseDocument doc)
           
 

Uses of BaseDocument in org.netbeans.editor.ext
 

Methods in org.netbeans.editor.ext with parameters of type BaseDocument
 int ExtFinderFactory.LineFwdFinder.adjustLimitPos(BaseDocument doc, int limitPos)
           
 int ExtFinderFactory.LineBwdFinder.adjustLimitPos(BaseDocument doc, int limitPos)
           
 int ExtFinderFactory.LineBlocksFinder.adjustLimitPos(BaseDocument doc, int limitPos)
           
 int ExtFinderFactory.LineFwdFinder.adjustStartPos(BaseDocument doc, int startPos)
           
 int ExtFinderFactory.LineBwdFinder.adjustStartPos(BaseDocument doc, int startPos)
           
 int ExtFinderFactory.LineBlocksFinder.adjustStartPos(BaseDocument doc, int startPos)
           
 SyntaxSupport ExtKit.createSyntaxSupport(BaseDocument doc)
           
protected  int ExtFormatter.getEOLOffset(BaseDocument bdoc, int offset)
          Returns offset of EOL for the white line
protected  int ExtFormatter.Simple.getEOLOffset(BaseDocument bdoc, int offset)
          Returns offset of EOL for the white line
protected  int ExtKit.GotoAction.getOffsetFromLine(BaseDocument doc, int lineOffset)
          This method is called by the dialog support to translate the line offset to the document position.
protected  void ExtCaret.modelChanged(BaseDocument oldDoc, BaseDocument newDoc)
           
 int ExtFormatter.reformat(BaseDocument doc, int startOffset, int endOffset)
          Fix of #5620 - same method exists in Formatter (predecessor
 Writer ExtFormatter.reformat(BaseDocument doc, int startOffset, int endOffset, boolean indentOnly)
          Reformat a block of code.
 

Constructors in org.netbeans.editor.ext with parameters of type BaseDocument
ExtSyntaxSupport(BaseDocument doc)
           
 


org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.