If the Document structure changed as result of the insertion, the details of what Elements were inserted and removed in response to the change will also be contained in the generated DocumentEvent. It is up to the implementation of a Document to decide how the structure should change in response to an insertion.
If the Document supports undo/redo, an UndoableEditEvent will also be generated. @param offset the offset into the document to insert the content >= 0.All positions that track change at or after the given location will move. @param str the string to insert @param a the attributes to associate with the insertedcontent. This may be null if there are no attributes. @exception BadLocationException the given insert position is not a validposition within the document @see javax.swing.event.DocumentEvent @see javax.swing.event.DocumentListener @see javax.swing.event.UndoableEditEvent @see javax.swing.event.UndoableEditListener
If the Document structure changed as result of the insertion, the details of what Elements were inserted and removed in response to the change will also be contained in the generated DocumentEvent. It is up to the implementation of a Document to decide how the structure should change in response to an insertion. If the Document supports undo/redo, an UndoableEditEvent will also be generated. @param offset the offset into the document to insert the content >= 0. All positions that track change at or afterthe given location will move. @param str the string to insert @param a the attributes to associate with the inserted content. This may be null if there are no attributes. @throws BadLocationException the given insert position is not a valid position within the document @see DocumentEvent @see DocumentListener @see UndoableEditEvent @see UndoableEditListener
|
|