📄 commandmanager.html
字号:
<P>
<!-- ============ FIELD DETAIL =========== -->
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="instance()"><!-- --></A><H3>
instance</H3>
<PRE>
public static <A HREF="../../../jexi/core/command/CommandManager.html" title="class in jexi.core.command">CommandManager</A> <B>instance</B>()</PRE>
<DL>
<DD>Get the only instance of the CommandManager.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The instance of the CommandManager.</DL>
</DD>
</DL>
<HR>
<A NAME="undo()"><!-- --></A><H3>
undo</H3>
<PRE>
public void <B>undo</B>()</PRE>
<DL>
<DD>Undo the last command.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="canRedo()"><!-- --></A><H3>
canRedo</H3>
<PRE>
public boolean <B>canRedo</B>()</PRE>
<DL>
<DD>Can redo the last undo command?
<P>
<DD><DL>
<DT><B>Returns:</B><DD>True if can redo.</DL>
</DD>
</DL>
<HR>
<A NAME="redo()"><!-- --></A><H3>
redo</H3>
<PRE>
public void <B>redo</B>()</PRE>
<DL>
<DD>Redo the last cancelled command.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="canUndo()"><!-- --></A><H3>
canUndo</H3>
<PRE>
public boolean <B>canUndo</B>()</PRE>
<DL>
<DD>Can undo the last command?
<P>
<DD><DL>
<DT><B>Returns:</B><DD>True if can undo.</DL>
</DD>
</DL>
<HR>
<A NAME="newInsertCommand(jexi.core.Document, char)"><!-- --></A><H3>
newInsertCommand</H3>
<PRE>
public void <B>newInsertCommand</B>(<A HREF="../../../jexi/core/Document.html" title="class in jexi.core">Document</A> doc, char c)</PRE>
<DL>
<DD>Create a new insert command and execute it.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>doc</CODE> - The document object.<DD><CODE>c</CODE> - The char of the key.</DL>
</DD>
</DL>
<HR>
<A NAME="newInsertPictureCommand(jexi.core.Document, java.lang.String)"><!-- --></A><H3>
newInsertPictureCommand</H3>
<PRE>
public void <B>newInsertPictureCommand</B>(<A HREF="../../../jexi/core/Document.html" title="class in jexi.core">Document</A> doc, java.lang.String filename)</PRE>
<DL>
<DD>Create a new insert picture command and execute it.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>doc</CODE> - The document object.<DD><CODE>filename</CODE> - The picture file name.</DL>
</DD>
</DL>
<HR>
<A NAME="newFormatCommand(jexi.core.Document, java.lang.String, java.lang.Integer, java.lang.Boolean, java.lang.Boolean, java.lang.Boolean, jexi.ui.Color)"><!-- --></A><H3>
newFormatCommand</H3>
<PRE>
public void <B>newFormatCommand</B>(<A HREF="../../../jexi/core/Document.html" title="class in jexi.core">Document</A> doc, java.lang.String fontName, java.lang.Integer fontSize, java.lang.Boolean bold, java.lang.Boolean italic, java.lang.Boolean underlined, <A HREF="../../../jexi/ui/Color.html" title="interface in jexi.ui">Color</A> color)</PRE>
<DL>
<DD>Create a new format command and execute it.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>doc</CODE> - The document object.<DD><CODE>fontName</CODE> - The font name, or null if ignore.<DD><CODE>fontSize</CODE> - The font size, or null if ignore.<DD><CODE>bold</CODE> - The bold attribute, or null if ignore.<DD><CODE>italic</CODE> - The italic attribute, or null if ignore.<DD><CODE>underlined</CODE> - The underlined attribute, or null if ignore.<DD><CODE>color</CODE> - The color, or null if ignore.</DL>
</DD>
</DL>
<HR>
<A NAME="newDeleteCommand(jexi.core.Document)"><!-- --></A><H3>
newDeleteCommand</H3>
<PRE>
public void <B>newDeleteCommand</B>(<A HREF="../../../jexi/core/Document.html" title="class in jexi.core">Document</A> doc)</PRE>
<DL>
<DD>Create a new delete command and execute it.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>doc</CODE> - The document object.</DL>
</DD>
</DL>
<HR>
<A NAME="newSplitCommand(jexi.core.Document)"><!-- --></A><H3>
newSplitCommand</H3>
<PRE>
public void <B>newSplitCommand</B>(<A HREF="../../../jexi/core/Document.html" title="class in jexi.core">Document</A> doc)</PRE>
<DL>
<DD>Create a new break command and execute it.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>doc</CODE> - The document object.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<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/CommandManager.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>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../jexi/core/command/DeleteCommand.html" title="class in jexi.core.command"><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="CommandManager.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -