|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.openide.text.PositionBounds
A range bounded by two PositionRefs.
| Constructor Summary | |
PositionBounds(PositionRef begin,
PositionRef end)
Creates new PositionBounds. |
|
| Method Summary | |
PositionRef |
getBegin()
Get the starting position of this range. |
PositionRef |
getEnd()
Get the ending position of this range. |
String |
getText()
Finds the text contained in this range. |
PositionBounds |
insertAfter(String text)
Inserts the text after this PositionBounds. |
void |
setText(String text)
Replaces the text contained in this range. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PositionBounds(PositionRef begin,
PositionRef end)
PositionBounds.begin - the start position of the rangeend - the end position of the range| Method Detail |
public PositionRef getBegin()
public PositionRef getEnd()
public void setText(String text)
throws IOException,
BadLocationException
If you are running this from user-oriented code, you may want to wrap it in NbDocument.runAtomicAsUser(javax.swing.text.StyledDocument, java.lang.Runnable).
text - new text to insert over existing textIOException - if any problem occurred during document loading (if that was necessary)BadLocationException - if the positions are out of the bounds of the document
public PositionBounds insertAfter(String text)
throws IOException,
BadLocationException
text - The text to insert. The text must not be empty.IOException - if any problem occurred during document loading (if that was necessary)BadLocationException - if the positions are out of the bounds of the document
public String getText()
throws BadLocationException,
IOException
IOException - if any I/O problem occurred during document loading (if that was necessary)BadLocationException - if the positions are out of the bounds of the documentpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||