<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Tue Jun 29 06:01:00 GMT+01:00 1999 -->
<TITLE>
Swing 1.1 API Specification: Class  AbstractDocument.DefaultDocumentEvent
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/AbstractDocument.DefaultDocumentEvent.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../javax/swing/text/AbstractDocument.BranchElement.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/swing/text/AbstractDocument.ElementEdit.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="AbstractDocument.DefaultDocumentEvent.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.undo.CompoundEdit">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
javax.swing.text</FONT>
<BR>
Class  AbstractDocument.DefaultDocumentEvent</H2>
<PRE>
java.lang.Object
  |
  +--<A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html">javax.swing.undo.AbstractUndoableEdit</A>
        |
        +--<A HREF="../../../javax/swing/undo/CompoundEdit.html">javax.swing.undo.CompoundEdit</A>
              |
              +--<B>javax.swing.text.AbstractDocument.DefaultDocumentEvent</B>
</PRE>
<HR>
<DL>
<DT>public class <B>AbstractDocument.DefaultDocumentEvent</B><DT>extends <A HREF="../../../javax/swing/undo/CompoundEdit.html">CompoundEdit</A><DT>implements <A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A></DL>

<P>
Stores document changes as the document is being
 modified.  Can subsequently be used for change notification
 when done with the document modification transaction.
 This is used by the AbstractDocument class and its extensions
 for broadcasting change information to the document listeners.
<P>
<DL>
<DT><B>See Also: </B><DD><A HREF="../../../serialized-form.html#javax.swing.text.AbstractDocument.DefaultDocumentEvent">Serialized Form</A></DL>
<HR>

<P>
<!-- ======== INNER CLASS SUMMARY ======== -->


<!-- =========== FIELD SUMMARY =========== -->

<A NAME="fields_inherited_from_class_javax.swing.undo.CompoundEdit"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Fields inherited from class javax.swing.undo.<A HREF="../../../javax/swing/undo/CompoundEdit.html">CompoundEdit</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../javax/swing/undo/CompoundEdit.html#edits">edits</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_javax.swing.undo.AbstractUndoableEdit"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Fields inherited from class javax.swing.undo.<A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html">AbstractUndoableEdit</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html#RedoName">RedoName</A>,  
<A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html#UndoName">UndoName</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html#AbstractDocument.DefaultDocumentEvent(javax.swing.text.AbstractDocument, int, int, javax.swing.event.DocumentEvent.EventType)">AbstractDocument.DefaultDocumentEvent</A></B>(int&nbsp;offs,
                                      int&nbsp;len,
                                      <A HREF="../../../javax/swing/event/DocumentEvent.EventType.html">DocumentEvent.EventType</A>&nbsp;type)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a change record.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html#addEdit(javax.swing.undo.UndoableEdit)">addEdit</A></B>(<A HREF="../../../javax/swing/undo/UndoableEdit.html">UndoableEdit</A>&nbsp;anEdit)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a document edit.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/event/DocumentEvent.ElementChange.html">DocumentEvent.ElementChange</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html#getChange(javax.swing.text.Element)">getChange</A></B>(<A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the changes for an element.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/text/Document.html">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html#getDocument()">getDocument</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the document that sourced the change event.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html#getLength()">getLength</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the length of the change.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html#getOffset()">getOffset</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the offset within the document of the start of the change.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html#getPresentationName()">getPresentationName</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provides a localized, human readable description of this edit
 suitable for use in, say, a change log.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html#getRedoPresentationName()">getRedoPresentationName</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provides a localized, human readable description of the redoable
 form of this edit, e.g.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/event/DocumentEvent.EventType.html">DocumentEvent.EventType</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html#getType()">getType</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the type of event.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html#getUndoPresentationName()">getUndoPresentationName</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provides a localized, human readable description of the undoable
 form of this edit, e.g.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html#isSignificant()">isSignificant</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DefaultDocument events are significant.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html#redo()">redo</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Redoes a change.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html#toString()">toString</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string description of the change event.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html#undo()">undo</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Undoes a change.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.undo.CompoundEdit"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class javax.swing.undo.<A HREF="../../../javax/swing/undo/CompoundEdit.html">CompoundEdit</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../javax/swing/undo/CompoundEdit.html#canRedo()">canRedo</A>, 
<A HREF="../../../javax/swing/undo/CompoundEdit.html#canUndo()">canUndo</A>, 
<A HREF="../../../javax/swing/undo/CompoundEdit.html#die()">die</A>, 
<A HREF="../../../javax/swing/undo/CompoundEdit.html#end()">end</A>, 
<A HREF="../../../javax/swing/undo/CompoundEdit.html#isInProgress()">isInProgress</A>, 
<A HREF="../../../javax/swing/undo/CompoundEdit.html#lastEdit()">lastEdit</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.undo.AbstractUndoableEdit"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class javax.swing.undo.<A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html">AbstractUndoableEdit</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html#replaceEdit(javax.swing.undo.UndoableEdit)">replaceEdit</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
wait, 
wait, 
wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="AbstractDocument.DefaultDocumentEvent(javax.swing.text.AbstractDocument, int, int, javax.swing.event.DocumentEvent.EventType)"><!-- --></A><H3>
AbstractDocument.DefaultDocumentEvent</H3>
<PRE>
public <B>AbstractDocument.DefaultDocumentEvent</B>(int&nbsp;offs,
                                             int&nbsp;len,
                                             <A HREF="../../../javax/swing/event/DocumentEvent.EventType.html">DocumentEvent.EventType</A>&nbsp;type)</PRE>
<DL>
<DD>Constructs a change record.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>offs</CODE> - the offset into the document of the change >= 0<DD><CODE>len</CODE> - the length of the change >= 0<DD><CODE>type</CODE> - the type of event (DocumentEvent.EventType)</DL>
</DD>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>Returns a string description of the change event.<DD><DL>
<DT><B>Returns:</B><DD>a string<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/undo/CompoundEdit.html#toString()">toString</A> in class <A HREF="../../../javax/swing/undo/CompoundEdit.html">CompoundEdit</A></DL>
</DD>
</DL>
<HR>

<A NAME="addEdit(javax.swing.undo.UndoableEdit)"><!-- --></A><H3>
addEdit</H3>
<PRE>
public boolean <B>addEdit</B>(<A HREF="../../../javax/swing/undo/UndoableEdit.html">UndoableEdit</A>&nbsp;anEdit)</PRE>
<DL>
<DD>Adds a document edit.  If the number of edits crosses
 a threshold, this switches on a hashtable lookup for
 ElementChange implementations since access of these
 needs to be relatively quick.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>anEdit</CODE> - a document edit record<DT><B>Returns:</B><DD>true if the edit was added<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/undo/CompoundEdit.html#addEdit(javax.swing.undo.UndoableEdit)">addEdit</A> in class <A HREF="../../../javax/swing/undo/CompoundEdit.html">CompoundEdit</A></DL>
</DD>
</DL>
<HR>

<A NAME="redo()"><!-- --></A><H3>
redo</H3>
<PRE>
public void <B>redo</B>()
          throws <A HREF="../../../javax/swing/undo/CannotRedoException.html">CannotRedoException</A></PRE>
<DL>
<DD>Redoes a change.<DD><DL>
<DT><B>Throws:</B><DD><A HREF="../../../javax/swing/undo/CannotRedoException.html">CannotRedoException</A> - if the change cannot be redone<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/undo/CompoundEdit.html#redo()">redo</A> in class <A HREF="../../../javax/swing/undo/CompoundEdit.html">CompoundEdit</A></DL>
</DD>
</DL>
<HR>

<A NAME="undo()"><!-- --></A><H3>
undo</H3>
<PRE>
public void <B>undo</B>()
          throws <A HREF="../../../javax/swing/undo/CannotUndoException.html">CannotUndoException</A></PRE>
<DL>
<DD>Undoes a change.<DD><DL>
<DT><B>Throws:</B><DD><A HREF="../../../javax/swing/undo/CannotUndoException.html">CannotUndoException</A> - if the change cannot be undone<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/undo/CompoundEdit.html#undo()">undo</A> in class <A HREF="../../../javax/swing/undo/CompoundEdit.html">CompoundEdit</A></DL>
</DD>
</DL>
<HR>

<A NAME="isSignificant()"><!-- --></A><H3>
isSignificant</H3>
<PRE>
public boolean <B>isSignificant</B>()</PRE>
<DL>
<DD>DefaultDocument events are significant.  If you wish to aggregate
 DefaultDocumentEvents to present them as a single edit to the user
 place them into a CompoundEdit.<DD><DL>
<DT><B>Returns:</B><DD>whether the event is significant for edit undo purposes<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/undo/CompoundEdit.html#isSignificant()">isSignificant</A> in class <A HREF="../../../javax/swing/undo/CompoundEdit.html">CompoundEdit</A></DL>
</DD>
</DL>
<HR>

<A NAME="getPresentationName()"><!-- --></A><H3>
getPresentationName</H3>
<PRE>
public java.lang.String <B>getPresentationName</B>()</PRE>
<DL>
<DD>Provides a localized, human readable description of this edit
 suitable for use in, say, a change log.<DD><DL>
<DT><B>Returns:</B><DD>the description<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/undo/CompoundEdit.html#getPresentationName()">getPresentationName</A> in class <A HREF="../../../javax/swing/undo/CompoundEdit.html">CompoundEdit</A></DL>
</DD>
</DL>
<HR>

<A NAME="getUndoPresentationName()"><!-- --></A><H3>
getUndoPresentationName</H3>
<PRE>
public java.lang.String <B>getUndoPresentationName</B>()</PRE>
<DL>
<DD>Provides a localized, human readable description of the undoable
 form of this edit, e.g. for use as an Undo menu item. Typically
 derived from getDescription();<DD><DL>
<DT><B>Returns:</B><DD>the description<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/undo/CompoundEdit.html#getUndoPresentationName()">getUndoPresentationName</A> in class <A HREF="../../../javax/swing/undo/CompoundEdit.html">CompoundEdit</A></DL>
</DD>
</DL>
<HR>

<A NAME="getRedoPresentationName()"><!-- --></A><H3>
getRedoPresentationName</H3>
<PRE>
public java.lang.String <B>getRedoPresentationName</B>()</PRE>
<DL>
<DD>Provides a localized, human readable description of the redoable
 form of this edit, e.g. for use as a Redo menu item. Typically
 derived from getPresentationName();<DD><DL>
<DT><B>Returns:</B><DD>the description<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/undo/CompoundEdit.html#getRedoPresentationName()">getRedoPresentationName</A> in class <A HREF="../../../javax/swing/undo/CompoundEdit.html">CompoundEdit</A></DL>
</DD>
</DL>
<HR>

<A NAME="getType()"><!-- --></A><H3>
getType</H3>
<PRE>
public <A HREF="../../../javax/swing/event/DocumentEvent.EventType.html">DocumentEvent.EventType</A> <B>getType</B>()</PRE>
<DL>
<DD>Returns the type of event.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/event/DocumentEvent.html#getType()">getType</A> in interface <A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A><DT><B>Returns:</B><DD>the event type as a DocumentEvent.EventType<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/event/DocumentEvent.html#getType()"><CODE>DocumentEvent.getType()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getOffset()"><!-- --></A><H3>
getOffset</H3>
<PRE>
public int <B>getOffset</B>()</PRE>
<DL>
<DD>Returns the offset within the document of the start of the change.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/event/DocumentEvent.html#getOffset()">getOffset</A> in interface <A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A><DT><B>Returns:</B><DD>the offset >= 0<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/event/DocumentEvent.html#getOffset()"><CODE>DocumentEvent.getOffset()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getLength()"><!-- --></A><H3>
getLength</H3>
<PRE>
public int <B>getLength</B>()</PRE>
<DL>
<DD>Returns the length of the change.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/event/DocumentEvent.html#getLength()">getLength</A> in interface <A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A><DT><B>Returns:</B><DD>the length >= 0<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/event/DocumentEvent.html#getLength()"><CODE>DocumentEvent.getLength()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getDocument()"><!-- --></A><H3>
getDocument</H3>
<PRE>
public <A HREF="../../../javax/swing/text/Document.html">Document</A> <B>getDocument</B>()</PRE>
<DL>
<DD>Gets the document that sourced the change event.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/event/DocumentEvent.html#getDocument()">getDocument</A> in interface <A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A><DT><B>Returns:</B><DD>the document<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/event/DocumentEvent.html#getDocument()"><CODE>DocumentEvent.getDocument()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getChange(javax.swing.text.Element)"><!-- --></A><H3>
getChange</H3>
<PRE>
public <A HREF="../../../javax/swing/event/DocumentEvent.ElementChange.html">DocumentEvent.ElementChange</A> <B>getChange</B>(<A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)</PRE>
<DL>
<DD>Gets the changes for an element.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/event/DocumentEvent.html#getChange(javax.swing.text.Element)">getChange</A> in interface <A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A><DT><B>Parameters:</B><DD><CODE>elem</CODE> - the element<DT><B>Returns:</B><DD>the changes</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/AbstractDocument.DefaultDocumentEvent.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../javax/swing/text/AbstractDocument.BranchElement.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/swing/text/AbstractDocument.ElementEdit.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="AbstractDocument.DefaultDocumentEvent.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.undo.CompoundEdit">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>Java is a trademark or registered trademark of Sun Microsystems,  Inc. in the US and other countries.<br>Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font>
</BODY>
</HTML>
