|
Java Platform 1.2 Beta 4 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use BadLocationException | |
com.sun.java.swing | Provides a set of "lightweight" (all-Java |
com.sun.java.swing.plaf | Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. |
com.sun.java.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. |
com.sun.java.swing.text.html | Provides the class (HTMLEditorKit) and supporting classes for creating HTML text editors. |
com.sun.java.swing.text.rtf | Provides a class (RTFEditorKit) for creating Rich-Text-Format text editors. |
Uses of BadLocationException in com.sun.java.swing |
Methods in com.sun.java.swing that throw BadLocationException | |
String | JPasswordField.getText(int offs,
int len)
Deprecated. As of JDK version 1.2, replaced by getPassword() . |
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 com.sun.java.swing.plaf |
Methods in com.sun.java.swing.plaf that throw BadLocationException | |
abstract Rectangle | TextUI.modelToView(JTextComponent t,
int pos)
Converts the given location in the model to a place in the view coordinate system. |
Uses of BadLocationException in com.sun.java.swing.text |
Methods in com.sun.java.swing.text that throw BadLocationException | |
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. |
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 that one might place a caret. |
abstract Shape | View.modelToView(int pos,
Shape a,
Position.Bias b)
Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it. |
Shape | View.modelToView(int pos,
Shape a)
Deprecated. |
Shape | CompositeView.modelToView(int pos,
Shape a,
Position.Bias b)
Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it. |
Shape | BoxView.modelToView(int pos,
Shape a,
Position.Bias b)
Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it. |
protected int | PlainView.drawUnselectedText(Graphics g,
int x,
int y,
int p0,
int p1)
Renders the given range in the model as normal unselected text. |
protected int | PlainView.drawSelectedText(Graphics g,
int x,
int y,
int p0,
int p1)
Renders the given range in the model as selected text. |
Shape | PlainView.modelToView(int pos,
Shape a,
Position.Bias b)
Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it. |
Shape | FieldView.modelToView(int pos,
Shape a,
Position.Bias b)
Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it. |
protected int | PasswordView.drawUnselectedText(Graphics g,
int x,
int y,
int p0,
int p1)
Renders the given range in the model as normal unselected text. |
protected int | PasswordView.drawSelectedText(Graphics g,
int x,
int y,
int p0,
int p1)
Renders the given range in the model as selected text. |
void | Document.remove(int offs,
int len)
Removes a portion of the content of the document. |
void | Document.insertString(int offset,
String str,
AttributeSet a)
Inserts a string of content. |
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)
Returns a position that will track change as the document is altered. |
Object | DefaultHighlighter.addHighlight(int p0,
int p1,
Highlighter.HighlightPainter p)
Adds a highlight to the view. |
void | DefaultHighlighter.changeHighlight(Object tag,
int p0,
int p1)
Changes a highlight. |
protected int | WrappedPlainView.drawUnselectedText(Graphics g,
int x,
int y,
int p0,
int p1)
Renders the given range in the model as normal unselected text. |
protected int | WrappedPlainView.drawSelectedText(Graphics g,
int x,
int y,
int p0,
int p1)
Renders the given range in the model as selected text. |
void | AbstractDocument.remove(int offs,
int len)
Removes some content from the document. |
void | AbstractDocument.insertString(int offs,
String str,
AttributeSet a)
Inserts some content into the document. |
String | AbstractDocument.getText(int offset,
int length)
Gets a sequence of text from the document. |
void | AbstractDocument.getText(int offset,
int length,
Segment txt)
Gets some text from the document potentially without making a copy. |
Position | AbstractDocument.createPosition(int offs)
Returns a position that will track change as the document is altered. |
protected void | DefaultStyledDocument.insert(int offset,
DefaultStyledDocument.ElementSpec[] data)
Inserts new elements in bulk. |
abstract void | EditorKit.read(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(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(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(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 | DefaultEditorKit.read(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. |
void | DefaultEditorKit.write(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. |
void | DefaultEditorKit.read(Reader in,
Document doc,
int pos)
Inserts content from the given stream, which will be treated as plain text. |
void | DefaultEditorKit.write(Writer out,
Document doc,
int pos,
int len)
Writes content from a document to the given stream as plain text. |
Shape | ComponentView.modelToView(int pos,
Shape a,
Position.Bias b)
Provides a mapping from the coordinate space of the model to that of the view. |
Shape | IconView.modelToView(int pos,
Shape a,
Position.Bias b)
Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it. |
UndoableEdit | StringContent.insertString(int where,
String str)
Inserts a string into the content. |
UndoableEdit | StringContent.remove(int where,
int nitems)
Removes part of the content. where + nitems must be < length(). |
String | StringContent.getString(int where,
int len)
Retrieves a portion of the content. where + len must be <= length(). |
void | StringContent.getChars(int where,
int len,
Segment chars)
Retrieves a portion of the content. where + len must be <= length() |
Position | StringContent.createPosition(int offset)
Creates a position within the content that will track change as the content is mutated. |
Shape | LabelView.modelToView(int pos,
Shape a,
Position.Bias b)
Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it. |
protected abstract void | AbstractWriter.write()
This abstract method needs to be implemented by subclasses. |
protected String | AbstractWriter.getText(Element elem)
Returns the text associated with the element. |
protected void | AbstractWriter.text(Element elem)
Writes out text. |
Object | Highlighter.addHighlight(int p0,
int p1,
Highlighter.HighlightPainter p)
Adds a highlight to the view. |
void | Highlighter.changeHighlight(Object tag,
int p0,
int p1)
Changes the given highlight to span a different portion of the document. |
UndoableEdit | GapContent.insertString(int where,
String str)
Inserts a string into the content. |
UndoableEdit | GapContent.remove(int where,
int nitems)
Removes part of the content. |
String | GapContent.getString(int where,
int len)
Retrieves a portion of the content. |
void | GapContent.getChars(int where,
int len,
Segment chars)
Retrieves a portion of the content. |
Position | GapContent.createPosition(int offset)
Creates a position within the content that will track change as the content is mutated. |
static int | Utilities.getRowStart(JTextComponent c,
int offs)
Determines the starting row model position of the row that contains the specified model position. |
static int | Utilities.getRowEnd(JTextComponent c,
int offs)
Determines the ending row model position of the row that contains the specified model position. |
static int | Utilities.getPositionAbove(JTextComponent c,
int offs,
int x)
Determines the position in the model that is closest to the given view location in the row above. |
static int | Utilities.getPositionBelow(JTextComponent c,
int offs,
int x)
Determines the position in the model that is closest to the given view location in the row below. |
static int | Utilities.getWordStart(JTextComponent c,
int offs)
Determines the start of a word for the given model location. |
static int | Utilities.getWordEnd(JTextComponent c,
int offs)
Determines the end of a word for the given location. |
static int | Utilities.getNextWord(JTextComponent c,
int offs)
Determines the start of the next word for the given location. |
static int | Utilities.getPreviousWord(JTextComponent c,
int offs)
Determine the start of the next word for the given location. |
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,
String str)
Inserts a string of characters into the sequence. |
UndoableEdit | AbstractDocument.Content.remove(int where,
int nitems)
Removes some portion of the sequence. |
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. |
Uses of BadLocationException in com.sun.java.swing.text.html |
Methods in com.sun.java.swing.text.html that throw BadLocationException | |
void | HTMLEditorKit.read(Reader in,
Document doc,
int pos)
Create and initialize a model from the given stream which is expected to be in a format appropriate for this kind of editor. |
void | HTMLEditorKit.write(Writer out,
Document doc,
int pos,
int len)
Write content from a document to the given stream in a format appropriate for this kind of content handler. |
void | HTMLEditorKit.ParserCallback.flush()
|
void | HTMLWriter.write()
This is method that iterates over the the Element tree and controls the writing out of all the tags and its attributes. |
protected void | HTMLWriter.emptyTag(Element elem)
Writes out all empty elements i.e tags that have no corresponding end tag. |
protected void | HTMLWriter.comment(Element elem)
Writes out comments. |
protected void | HTMLDocument.insert(int offset,
DefaultStyledDocument.ElementSpec[] data)
Inserts new elements in bulk. |
void | HTMLDocument.HTMLReader.flush()
This is the last method called on the reader. |
void | MinimalHTMLWriter.write()
This method is responsible for generating html output from a StyledDocument. |
protected void | MinimalHTMLWriter.text(Element elem)
This method is responsible for writing text out. |
protected void | MinimalHTMLWriter.writeBody()
This method iterates over the elements in the document and processes elements based on whether they are branch elements or leaf elements. |
protected void | MinimalHTMLWriter.writeContent(Element elem,
boolean needsIndenting)
This method handles writing out text. |
Uses of BadLocationException in com.sun.java.swing.text.rtf |
Methods in com.sun.java.swing.text.rtf that throw BadLocationException | |
void | RTFEditorKit.read(InputStream in,
Document doc,
int pos)
Insert content from the given stream which is expected to be in a format appropriate for this kind of content handler. |
void | RTFEditorKit.write(OutputStream out,
Document doc,
int pos,
int len)
Write content from a document to the given stream in a format appropriate for this kind of content handler. |
void | RTFEditorKit.read(Reader in,
Document doc,
int pos)
Insert content from the given stream, which will be treated as plain text. |
void | RTFEditorKit.write(Writer out,
Document doc,
int pos,
int len)
Write content from a document to the given stream as plain text. |
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |