Searched refs:BadLocationException (Results 1 - 25 of 92) sorted by relevance

1234

/openjdk7/jdk/src/share/classes/javax/swing/text/
H A DBadLocationException.java42 public class BadLocationException extends Exception class in inherits:Exception
45 * Creates a new BadLocationException object.
50 public BadLocationException(String s, int offs) { method in class:BadLocationException
H A DDocumentFilter.java73 * @exception BadLocationException some portion of the removal range
78 BadLocationException {
95 * @exception BadLocationException the given insert position is not a
99 AttributeSet attr) throws BadLocationException {
115 * @exception BadLocationException the given insert position is not a
119 AttributeSet attrs) throws BadLocationException {
146 * @exception BadLocationException some portion of the removal range
151 BadLocationException;
162 * @exception BadLocationException the given insert position is not a
167 BadLocationException;
[all...]
H A DDocument.java285 * @exception BadLocationException some portion of the removal range
293 public void remove(int offs, int len) throws BadLocationException;
322 * @exception BadLocationException the given insert position is not a valid
329 public void insertString(int offset, String str, AttributeSet a) throws BadLocationException;
339 * @exception BadLocationException some portion of the given range
343 public String getText(int offset, int length) throws BadLocationException;
378 * @exception BadLocationException Some portion of the given range
382 public void getText(int offset, int length, Segment txt) throws BadLocationException;
414 * @exception BadLocationException if the given position does not
417 public Position createPosition(int offs) throws BadLocationException;
[all...]
H A DEditorKit.java144 * @exception BadLocationException if pos represents an invalid
148 throws IOException, BadLocationException;
160 * @exception BadLocationException if pos represents an invalid
164 throws IOException, BadLocationException;
181 * @exception BadLocationException if pos represents an invalid
185 throws IOException, BadLocationException;
202 * @exception BadLocationException if pos represents an invalid
206 throws IOException, BadLocationException;
H A DHighlighter.java73 * @exception BadLocationException for an invalid range specification
75 public Object addHighlight(int p0, int p1, HighlightPainter p) throws BadLocationException;
98 * @exception BadLocationException for an invalid range specification
100 public void changeHighlight(Object tag, int p0, int p1) throws BadLocationException;
H A DStringContent.java93 * @exception BadLocationException if the specified position is invalid
96 public UndoableEdit insertString(int where, String str) throws BadLocationException {
98 throw new BadLocationException("Invalid location", count);
114 * @exception BadLocationException if the specified position is invalid
117 public UndoableEdit remove(int where, int nitems) throws BadLocationException {
119 throw new BadLocationException("Invalid range", count);
137 * @exception BadLocationException if the specified position is invalid
140 public String getString(int where, int len) throws BadLocationException {
142 throw new BadLocationException("Invalid range", count);
153 * @exception BadLocationException i
[all...]
H A DIconView.java126 * @exception BadLocationException if the given position does not
130 public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException {
141 throw new BadLocationException(pos + " not in range " + p0 + "," + p1, pos);
H A DNavigationFilter.java103 * @exception BadLocationException
110 throws BadLocationException {
H A DGapContent.java124 * @exception BadLocationException if the specified position is invalid
127 public UndoableEdit insertString(int where, String str) throws BadLocationException {
129 throw new BadLocationException("Invalid insert", length());
142 * @exception BadLocationException if the specified position is invalid
145 public UndoableEdit remove(int where, int nitems) throws BadLocationException {
147 throw new BadLocationException("Invalid remove", length() + 1);
162 * @exception BadLocationException if the specified position is invalid
165 public String getString(int where, int len) throws BadLocationException {
180 * @exception BadLocationException if the specified position is invalid
183 public void getChars(int where, int len, Segment chars) throws BadLocationException {
[all...]
H A DCompositeView.java245 * @exception BadLocationException if the given position does
249 public Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException {
275 throw new BadLocationException("Position not represented by view",
295 * @exception BadLocationException if the given position does
300 public Shape modelToView(int p0, Position.Bias b0, int p1, Position.Bias b1, Shape a) throws BadLocationException {
374 throw new BadLocationException("Position not represented by view", p0);
399 } catch (BadLocationException ble) { }
412 } catch (BadLocationException ble) { }
455 * @exception BadLocationException
460 throws BadLocationException {
[all...]
/openjdk7/jdk/src/share/classes/javax/swing/text/html/
H A DTextAreaDocument.java54 } catch (BadLocationException e) {
65 } catch (BadLocationException e) {
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/
H A DEditableAtEndDocument.java40 throws BadLocationException {
45 public void remove(int offs, int len) throws BadLocationException {
67 public String getMarkedText() throws BadLocationException {
77 catch (BadLocationException e) {
/openjdk7/jdk/src/share/demo/scripting/jconsole-plugin/src/com/sun/demo/scripting/jconsole/
H A DEditableAtEndDocument.java56 throws BadLocationException {
62 public void remove(int offs, int len) throws BadLocationException {
84 public String getMarkedText() throws BadLocationException {
93 } catch (BadLocationException e) {
/openjdk7/jdk/test/javax/swing/text/html/parser/Parser/7003777/
H A Dbug7003777.java31 import javax.swing.text.BadLocationException;
55 } catch (BadLocationException e) {
/openjdk7/jdk/src/share/classes/javax/swing/text/rtf/
H A DRTFEditorKit.java73 * @exception BadLocationException if pos represents an invalid
76 public void read(InputStream in, Document doc, int pos) throws IOException, BadLocationException {
100 * @exception BadLocationException if pos represents an invalid
104 throws IOException, BadLocationException {
120 * @exception BadLocationException if pos represents an invalid
124 throws IOException, BadLocationException {
146 * @exception BadLocationException if pos represents an invalid
150 throws IOException, BadLocationException {
/openjdk7/jdk/test/javax/swing/text/DefaultHighlighter/6771184/
H A Dbug6771184.java27 * @summary Some methods in text package don't throw BadLocationException when expected
32 import javax.swing.text.BadLocationException;
60 throw new RuntimeException("Method addHighlight() does not throw BadLocationException for (" +
62 } catch (BadLocationException e) {
70 } catch (BadLocationException e) {
77 throw new RuntimeException("Method changeHighlight() does not throw BadLocationException for (" +
79 } catch (BadLocationException e) {
/openjdk7/jdk/test/javax/swing/text/Utilities/
H A Dbug7045593.java34 import javax.swing.text.BadLocationException;
66 } catch (BadLocationException e) {
/openjdk7/jdk/src/share/classes/javax/swing/plaf/
H A DTextUI.java47 * @exception BadLocationException if the given position does not
50 public abstract Rectangle modelToView(JTextComponent t, int pos) throws BadLocationException;
58 * @exception BadLocationException if the given position does not
61 public abstract Rectangle modelToView(JTextComponent t, int pos, Position.Bias bias) throws BadLocationException;
108 * @exception BadLocationException
114 throws BadLocationException;
/openjdk7/jdk/src/share/classes/javax/swing/
H A DJTextArea.java369 * @exception BadLocationException thrown if the offset is
372 public int getLineOfOffset(int offset) throws BadLocationException {
375 throw new BadLocationException("Can't translate offset to line", -1);
377 throw new BadLocationException("Can't translate offset to line", doc.getLength()+1);
399 * @exception BadLocationException thrown if the line is
404 public int getLineStartOffset(int line) throws BadLocationException {
407 throw new BadLocationException("Negative line", -1);
409 throw new BadLocationException("No such line", getDocument().getLength()+1);
422 * @exception BadLocationException Thrown if the line is
427 public int getLineEndOffset(int line) throws BadLocationException {
[all...]
/openjdk7/jdk/test/javax/swing/text/WrappedPlainView/6857057/
H A DStubLeafElement.java38 } catch (BadLocationException e) {
H A DStubBranchElement.java40 } catch (BadLocationException e) {
/openjdk7/jdk/test/javax/swing/text/NavigationFilter/6735293/
H A Dbug6735293.java27 * @summary javax.swing.text.NavigationFilter.getNextVisualPositionFrom() not always throws BadLocationException
32 import javax.swing.text.BadLocationException;
66 // the following constants still will lead to "BadLocationException: Length must be positive"
75 throw new RuntimeException("BadLocationException was not thrown: position = " +
77 } catch (BadLocationException e) {
/openjdk7/jdk/src/share/classes/javax/swing/colorchooser/
H A DValueFormatter.java37 import javax.swing.text.BadLocationException;
54 public void remove(FilterBypass fb, int offset, int length) throws BadLocationException {
61 public void replace(FilterBypass fb, int offset, int length, String text, AttributeSet set) throws BadLocationException {
68 public void insertString(FilterBypass fb, int offset, String text, AttributeSet set) throws BadLocationException {
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/
H A DWindowsTextFieldUI.java144 } catch (BadLocationException ble) {}
166 } catch (BadLocationException ble) {}
/openjdk7/jdk/test/javax/swing/text/html/HTMLEditorKit/5043626/
H A Dbug5043626.java38 import javax.swing.text.BadLocationException;
89 } catch (BadLocationException ex) {

Completed in 507 milliseconds

1234