📄 abstractundoableedit.html
字号:
<!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="AbstractUndoableEdit()"><!-- --></A><H3>AbstractUndoableEdit</H3><PRE>public <B>AbstractUndoableEdit</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="die()"><!-- --></A><H3>die</H3><PRE>public void <B>die</B>()</PRE><DL><DD>Sets alive to false. Note that this is a one way operation: dead edits cannot be resurrected. Sending undo() or redo() to a dead edit results in an exception being thrown. Typically an edit is killed when it is consolidated by another edit's addEdit() or replaceEdit() method, or when it is dequeued from an UndoManager<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html#die()">die</A></CODE> in interface <CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html">UndoableEdit</A></CODE></DL></DD><DD>Following copied from interface: <CODE>javax.swing.undo.UndoableEdit</CODE></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/undo/CompoundEdit.html#die()"><CODE>CompoundEdit.die()</CODE></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>Throws CannotUndoException if canUndo() returns false. Sets hasBeenDone to false. Subclasses should override to undo the operation represented by this edit. Override should begin with a call to super.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html#undo()">undo</A></CODE> in interface <CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html">UndoableEdit</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html#canUndo()"><CODE>canUndo()</CODE></A></DL></DD></DL><HR><A NAME="canUndo()"><!-- --></A><H3>canUndo</H3><PRE>public boolean <B>canUndo</B>()</PRE><DL><DD>Returns true if this edit is alive and hasBeenDone is true.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html#canUndo()">canUndo</A></CODE> in interface <CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html">UndoableEdit</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html#die()"><CODE>die()</CODE></A>, <A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html#undo()"><CODE>undo()</CODE></A>, <A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html#redo()"><CODE>redo()</CODE></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>Throws CannotRedoException if canRedo() returns false. Sets hasBeenDone to true. Subclasses should override to redo the operation represented by this edit. Override should begin with a call to super.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html#redo()">redo</A></CODE> in interface <CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html">UndoableEdit</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html#canRedo()"><CODE>canRedo()</CODE></A></DL></DD></DL><HR><A NAME="canRedo()"><!-- --></A><H3>canRedo</H3><PRE>public boolean <B>canRedo</B>()</PRE><DL><DD>Returns true if this edit is alive and hasBeenDone is false.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html#canRedo()">canRedo</A></CODE> in interface <CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html">UndoableEdit</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html#die()"><CODE>die()</CODE></A>, <A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html#undo()"><CODE>undo()</CODE></A>, <A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html#redo()"><CODE>redo()</CODE></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> anEdit)</PRE><DL><DD>This default implementation returns false.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html#addEdit(javax.swing.undo.UndoableEdit)">addEdit</A></CODE> in interface <CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html">UndoableEdit</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/undo/UndoableEdit.html#addEdit(javax.swing.undo.UndoableEdit)"><CODE>UndoableEdit.addEdit(javax.swing.undo.UndoableEdit)</CODE></A></DL></DD></DL><HR><A NAME="replaceEdit(javax.swing.undo.UndoableEdit)"><!-- --></A><H3>replaceEdit</H3><PRE>public boolean <B>replaceEdit</B>(<A HREF="../../../javax/swing/undo/UndoableEdit.html">UndoableEdit</A> anEdit)</PRE><DL><DD>This default implementation returns false.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html#replaceEdit(javax.swing.undo.UndoableEdit)">replaceEdit</A></CODE> in interface <CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html">UndoableEdit</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/undo/UndoableEdit.html#replaceEdit(javax.swing.undo.UndoableEdit)"><CODE>UndoableEdit.replaceEdit(javax.swing.undo.UndoableEdit)</CODE></A></DL></DD></DL><HR><A NAME="isSignificant()"><!-- --></A><H3>isSignificant</H3><PRE>public boolean <B>isSignificant</B>()</PRE><DL><DD>This default implementation returns true.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html#isSignificant()">isSignificant</A></CODE> in interface <CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html">UndoableEdit</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/undo/UndoableEdit.html#isSignificant()"><CODE>UndoableEdit.isSignificant()</CODE></A></DL></DD></DL><HR><A NAME="getPresentationName()"><!-- --></A><H3>getPresentationName</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>getPresentationName</B>()</PRE><DL><DD>This default implementation returns "". Used by getUndoPresentationName() and getRedoPresentationName() to construct the strings they return. Subclasses shoul override to return an appropriate description of the operation this edit represents.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html#getPresentationName()">getPresentationName</A></CODE> in interface <CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html">UndoableEdit</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html#getUndoPresentationName()"><CODE>getUndoPresentationName()</CODE></A>, <A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html#getRedoPresentationName()"><CODE>getRedoPresentationName()</CODE></A></DL></DD></DL><HR><A NAME="getUndoPresentationName()"><!-- --></A><H3>getUndoPresentationName</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>getUndoPresentationName</B>()</PRE><DL><DD>If getPresentationName() returns "", returns AbstractUndoableEdit.UndoName. Otherwise returns AbstractUndoableEdit.UndoName followed by a space and getPresentationName()<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html#getUndoPresentationName()">getUndoPresentationName</A></CODE> in interface <CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html">UndoableEdit</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html#getPresentationName()"><CODE>getPresentationName()</CODE></A></DL></DD></DL><HR><A NAME="getRedoPresentationName()"><!-- --></A><H3>getRedoPresentationName</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>getRedoPresentationName</B>()</PRE><DL><DD>If getPresentationName() returns "", returns AbstractUndoableEdit.RedoName. Otherwise returns AbstractUndoableEdit.RedoName followed by a space and getPresentationName()<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html#getRedoPresentationName()">getRedoPresentationName</A></CODE> in interface <CODE><A HREF="../../../javax/swing/undo/UndoableEdit.html">UndoableEdit</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/undo/AbstractUndoableEdit.html#getPresentationName()"><CODE>getPresentationName()</CODE></A></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Returns a string that displays and identifies this object's properties.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a String representation of this object</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" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbstractUndoableEdit.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../javax/swing/undo/CompoundEdit.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="AbstractUndoableEdit.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -