|
JSR-209 (Final Approval Ballot) | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use BadLocationException | |
javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. |
javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. |
Uses of BadLocationException in javax.swing |
Methods in javax.swing that throw BadLocationException | |
int |
JTextArea.getLineOfOffset(int offset)
Translates an offset into the components text to a line number. |
int |
JTextArea.getLineStartOffset(int line)
Determines the offset of the start of the given line. |
int |
JTextArea.getLineEndOffset(int line)
Determines the offset of the end of the given line. |
Uses of BadLocationException in javax.swing.text |
Methods in javax.swing.text that throw BadLocationException | |
int |
View.getNextVisualPositionFrom(int pos,
Position.Bias b,
Shape a,
int direction,
Position.Bias[] biasRet)
Provides a way to determine the next visually represented model location at which one might place a caret. |
abstract Shape |
View.modelToView(int pos,
Shape a,
Position.Bias b)
Provides a mapping, for a given character, from the document model coordinate space to the view coordinate space. |
Shape |
View.modelToView(int p0,
Position.Bias b0,
int p1,
Position.Bias b1,
Shape a)
Provides a mapping, for a given region, from the document model coordinate space to the view coordinate space. |
java.lang.String |
JTextComponent.getText(int offs,
int len)
Fetches a portion of the text represented by the component. |
Rectangle |
JTextComponent.modelToView(int pos)
Converts the given location in the model to a place in the view coordinate system. |
java.lang.Object |
Highlighter.addHighlight(int p0,
int p1,
Highlighter.HighlightPainter p)
Adds a highlight to the view. |
void |
Highlighter.changeHighlight(java.lang.Object tag,
int p0,
int p1)
Changes the given highlight to span a different portion of the document. |
abstract void |
EditorKit.read(java.io.InputStream in,
Document doc,
int pos)
Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler. |
abstract void |
EditorKit.write(java.io.OutputStream out,
Document doc,
int pos,
int len)
Writes content from a document to the given stream in a format appropriate for this kind of content handler. |
abstract void |
EditorKit.read(java.io.Reader in,
Document doc,
int pos)
Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler. |
abstract void |
EditorKit.write(java.io.Writer out,
Document doc,
int pos,
int len)
Writes content from a document to the given stream in a format appropriate for this kind of content handler. |
void |
Document.remove(int offs,
int len)
Removes a portion of the content of the document. |
void |
Document.insertString(int offset,
java.lang.String str,
AttributeSet a)
Inserts a string of content. |
java.lang.String |
Document.getText(int offset,
int length)
Fetches the text contained within the given portion of the document. |
void |
Document.getText(int offset,
int length,
Segment txt)
Fetches the text contained within the given portion of the document. |
Position |
Document.createPosition(int offs)
This method allows an application to mark a place in a sequence of character content. |
void |
DocumentFilter.remove(DocumentFilter.FilterBypass fb,
int offset,
int length)
Invoked prior to removal of the specified region in the specified Document. |
void |
DocumentFilter.insertString(DocumentFilter.FilterBypass fb,
int offset,
java.lang.String string,
AttributeSet attr)
Invoked prior to insertion of text into the specified Document. |
void |
DocumentFilter.replace(DocumentFilter.FilterBypass fb,
int offset,
int length,
java.lang.String text,
AttributeSet attrs)
Invoked prior to replacing a region of text in the specified Document. |
abstract void |
DocumentFilter.FilterBypass.remove(int offset,
int length)
Removes the specified region of text, bypassing the DocumentFilter. |
abstract void |
DocumentFilter.FilterBypass.insertString(int offset,
java.lang.String string,
AttributeSet attr)
Inserts the specified text, bypassing the DocumentFilter. |
abstract void |
DocumentFilter.FilterBypass.replace(int offset,
int length,
java.lang.String string,
AttributeSet attrs)
Deletes the region of text from offset to
offset + length , and replaces it with
text . |
void |
AbstractDocument.remove(int offs,
int len)
Removes some content from the document. |
void |
AbstractDocument.replace(int offset,
int length,
java.lang.String text,
AttributeSet attrs)
Deletes the region of text from offset to
offset + length , and replaces it with text . |
void |
AbstractDocument.insertString(int offs,
java.lang.String str,
AttributeSet a)
Inserts some content into the document. |
java.lang.String |
AbstractDocument.getText(int offset,
int length)
Gets a sequence of text from the document. |
void |
AbstractDocument.getText(int offset,
int length,
Segment txt)
Fetches the text contained within the given portion of the document. |
Position |
AbstractDocument.createPosition(int offs)
Returns a position that will track change as the document is altered. |
Position |
AbstractDocument.Content.createPosition(int offset)
Creates a position within the content that will track change as the content is mutated. |
UndoableEdit |
AbstractDocument.Content.insertString(int where,
java.lang.String str)
Inserts a string of characters into the sequence. |
UndoableEdit |
AbstractDocument.Content.remove(int where,
int nitems)
Removes some portion of the sequence. |
java.lang.String |
AbstractDocument.Content.getString(int where,
int len)
Fetches a string of characters contained in the sequence. |
void |
AbstractDocument.Content.getChars(int where,
int len,
Segment txt)
Gets a sequence of characters and copies them into a Segment. |
int |
NavigationFilter.getNextVisualPositionFrom(JTextComponent text,
int pos,
Position.Bias bias,
int direction,
Position.Bias[] biasRet)
Returns the next visual position to place the caret at from an existing position. |
|
JSR-209 (Final Approval Ballot) | ||||||||||
PREV NEXT | FRAMES NO FRAMES |