public class TextRange extends Object
| Constructor and Description |
|---|
TextRange(Document doc) |
TextRange(DocumentEvent e) |
TextRange(Document document,
Position begin,
Position end) |
| Modifier and Type | Method and Description |
|---|---|
TextRange |
compactWith(DocumentEvent e) |
int |
compare(int index)
Compare with the current text range.
|
int |
getBegin() |
Document |
getDocument() |
int |
getEnd() |
boolean |
isEmpty() |
boolean |
isInside(int index) |
boolean |
isRemove() |
String |
toString() |
public TextRange(DocumentEvent e) throws BadLocationException
BadLocationExceptionpublic TextRange(Document doc)
public int compare(int index)
index - index to comparepublic TextRange compactWith(DocumentEvent e) throws BadLocationException
BadLocationExceptionpublic boolean isInside(int index)
public int getBegin()
public int getEnd()
public boolean isEmpty()
public boolean isRemove()
public Document getDocument()
Copyright © 2020. All rights reserved.