jsxe.html

来自「jsXe 是java简单的XML编辑器。 它使用的Swing工具」· HTML 代码 · 共 803 行 · 第 1/3 页

HTML
803 行
字号
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicates whether jsXe is exiting i.e.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/sourceforge/jsxe/jsXe.html#main(java.lang.String[])">main</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The main method of jsXe</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/sourceforge/jsxe/jsXe.html#openXMLDocument(net.sourceforge.jsxe.gui.TabbedView, java.io.File)">openXMLDocument</A></B>(<A HREF="../../../net/sourceforge/jsxe/gui/TabbedView.html" title="class in net.sourceforge.jsxe.gui">TabbedView</A>&nbsp;view,                <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/File.html" title="class or interface in java.io">File</A>&nbsp;file)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempts to open an XML document in jsXe from a file on disk.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/sourceforge/jsxe/jsXe.html#openXMLDocument(net.sourceforge.jsxe.gui.TabbedView, java.io.File, java.util.Properties, java.lang.String)">openXMLDocument</A></B>(<A HREF="../../../net/sourceforge/jsxe/gui/TabbedView.html" title="class in net.sourceforge.jsxe.gui">TabbedView</A>&nbsp;view,                <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/File.html" title="class or interface in java.io">File</A>&nbsp;file,                <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html" title="class or interface in java.util">Properties</A>&nbsp;properties,                <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;viewName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempts to open an XML document in jsXe from a file on disk.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/sourceforge/jsxe/jsXe.html#openXMLDocument(net.sourceforge.jsxe.gui.TabbedView, java.io.Reader)">openXMLDocument</A></B>(<A HREF="../../../net/sourceforge/jsxe/gui/TabbedView.html" title="class in net.sourceforge.jsxe.gui">TabbedView</A>&nbsp;view,                <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/Reader.html" title="class or interface in java.io">Reader</A>&nbsp;reader)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempts to open an XML document in the form of a Reader object as an untitled document..</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/sourceforge/jsxe/jsXe.html#openXMLDocument(net.sourceforge.jsxe.gui.TabbedView, java.lang.String)">openXMLDocument</A></B>(<A HREF="../../../net/sourceforge/jsxe/gui/TabbedView.html" title="class in net.sourceforge.jsxe.gui">TabbedView</A>&nbsp;view,                <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;doc)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempts to open an XML document in the form of a String object as an untitled document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/sourceforge/jsxe/jsXe.html#setProperty(java.lang.String, java.lang.String)">setProperty</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;key,            <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a global property to jsXe.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../net/sourceforge/jsxe/jsXe.html#showOpenFileDialog(net.sourceforge.jsxe.gui.TabbedView)">showOpenFileDialog</A></B>(<A HREF="../../../net/sourceforge/jsxe/gui/TabbedView.html" title="class in net.sourceforge.jsxe.gui">TabbedView</A>&nbsp;view)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shows an open file dialog for jsXe.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="jsXe()"><!-- --></A><H3>jsXe</H3><PRE>public <B>jsXe</B>()</PRE><DL></DL><!-- ============ 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="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[]&nbsp;args)</PRE><DL><DD>The main method of jsXe<P><DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - The command line arguments</DL></DD></DL><HR><A NAME="getVersion()"><!-- --></A><H3>getVersion</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getVersion</B>()</PRE><DL><DD>Gets the current version of jsXe.<P><DD><DL><DT><B>Returns:</B><DD>The current version of jsXe.</DL></DD></DL><HR><A NAME="showOpenFileDialog(net.sourceforge.jsxe.gui.TabbedView)"><!-- --></A><H3>showOpenFileDialog</H3><PRE>public static boolean <B>showOpenFileDialog</B>(<A HREF="../../../net/sourceforge/jsxe/gui/TabbedView.html" title="class in net.sourceforge.jsxe.gui">TabbedView</A>&nbsp;view)                                  throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Shows an open file dialog for jsXe. When a file is selected jsXe attempts to open it.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>view</CODE> - The view that is to be the parent of the file dialog<DT><B>Returns:</B><DD>true if the file is selected and opened successfully.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if the document does not validate or cannot be opened for some reason.</DL></DD></DL><HR><A NAME="openXMLDocument(net.sourceforge.jsxe.gui.TabbedView, java.io.File)"><!-- --></A><H3>openXMLDocument</H3><PRE>public static boolean <B>openXMLDocument</B>(<A HREF="../../../net/sourceforge/jsxe/gui/TabbedView.html" title="class in net.sourceforge.jsxe.gui">TabbedView</A>&nbsp;view,                                      <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/File.html" title="class or interface in java.io">File</A>&nbsp;file)                               throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Attempts to open an XML document in jsXe from a file on disk. If the file is already open then the view's focus is set to that document.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>view</CODE> - The view to open the document in.<DD><CODE>file</CODE> - The file to open.<DT><B>Returns:</B><DD>true if the file is opened successfully.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if the document does not validate or cannot be opened for some reason.</DL></DD></DL><HR><A NAME="openXMLDocument(net.sourceforge.jsxe.gui.TabbedView, java.io.File, java.util.Properties, java.lang.String)"><!-- --></A><H3>openXMLDocument</H3><PRE>public static boolean <B>openXMLDocument</B>(<A HREF="../../../net/sourceforge/jsxe/gui/TabbedView.html" title="class in net.sourceforge.jsxe.gui">TabbedView</A>&nbsp;view,                                      <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/File.html" title="class or interface in java.io">File</A>&nbsp;file,                                      <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Properties.html" title="class or interface in java.util">Properties</A>&nbsp;properties,                                      <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;viewName)                               throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Attempts to open an XML document in jsXe from a file on disk. If the file is already open then the view's focus is set to that document. The properties and view name given are ignored if the document is already open. If the view name is null then the document is opened in the default DocumentView.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>view</CODE> - The view to open the document in.<DD><CODE>file</CODE> - The file to open.<DD><CODE>properties</CODE> - the properties to set to the new document<DD><CODE>viewName</CODE> - the name of the view to open this document in<DT><B>Returns:</B><DD>true if the file is opened successfully.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if the document does not validate or cannot be opened for some reason.</DL></DD></DL><HR><A NAME="openXMLDocument(net.sourceforge.jsxe.gui.TabbedView, java.lang.String)"><!-- --></A><H3>openXMLDocument</H3><PRE>public static boolean <B>openXMLDocument</B>(<A HREF="../../../net/sourceforge/jsxe/gui/TabbedView.html" title="class in net.sourceforge.jsxe.gui">TabbedView</A>&nbsp;view,                                      <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;doc)                               throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Attempts to open an XML document in the form of a String object as an untitled document.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>view</CODE> - The view to open the document in.<DD><CODE>doc</CODE> - The String document to open.<DT><B>Returns:</B><DD>true if the file is opened successfully.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if the document does not validate or cannot be opened for some reason.</DL></DD></DL><HR><A NAME="openXMLDocument(net.sourceforge.jsxe.gui.TabbedView, java.io.Reader)"><!-- --></A><H3>openXMLDocument</H3><PRE>public static boolean <B>openXMLDocument</B>(<A HREF="../../../net/sourceforge/jsxe/gui/TabbedView.html" title="class in net.sourceforge.jsxe.gui">TabbedView</A>&nbsp;view,                                      <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/Reader.html" title="class or interface in java.io">Reader</A>&nbsp;reader)                               throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Attempts to open an XML document in the form of a Reader object as an untitled document..<P><DD><DL><DT><B>Parameters:</B><DD><CODE>view</CODE> - The view to open the document in.<DD><CODE>reader</CODE> - The Reader document to open.<DT><B>Returns:</B><DD>true if the file is opened successfully.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if the document does not validate or cannot be opened for some reason.</DL></DD></DL><HR><A NAME="getOpenBuffer(java.io.File)"><!-- --></A><H3>getOpenBuffer</H3><PRE>public static <A HREF="../../../net/sourceforge/jsxe/DocumentBuffer.html" title="class in net.sourceforge.jsxe">DocumentBuffer</A> <B>getOpenBuffer</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/File.html" title="class or interface in java.io">File</A>&nbsp;file)</PRE><DL><DD>Gets the DocumentBuffer for this file if the file is open already. Returns null if the file is not open.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - The file that is open in jsXe<DT><B>Returns:</B><DD>the DocumentBuffer for the given file or null if the file not open.</DL></DD></DL><HR><A NAME="closeDocumentBuffer(net.sourceforge.jsxe.gui.TabbedView, net.sourceforge.jsxe.DocumentBuffer)"><!-- --></A><H3>closeDocumentBuffer</H3><PRE>public static boolean <B>closeDocumentBuffer</B>(<A HREF="../../../net/sourceforge/jsxe/gui/TabbedView.html" title="class in net.sourceforge.jsxe.gui">TabbedView</A>&nbsp;view,                                          <A HREF="../../../net/sourceforge/jsxe/DocumentBuffer.html" title="class in net.sourceforge.jsxe">DocumentBuffer</A>&nbsp;buffer)                                   throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Closes an open DocumentBuffer. If dirty then the user will be prompted to save.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>view</CODE> - The view that contains the buffer.<DD><CODE>buffer</CODE> - The buffer to close.<DT><B>Returns:</B><DD>true if the buffer was closed successfully. May return false if         user hits cancel when asked to save changes.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if the user chooses to save and the file cannot be saved                     because of an I/O error.</DL>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?