⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 documentbuffer.html

📁 jsXe 是java简单的XML编辑器。 它使用的Swing工具
💻 HTML
📖 第 1 页 / 共 3 页
字号:
 used by the DocumentBuffer to interact with the XML document in memory.<P><DD><DL><DT><B>Returns:</B><DD>the XMLDocument for this DocumentBuffer</DL></DD></DL><HR><A NAME="isDirty()"><!-- --></A><H3>isDirty</H3><PRE>public boolean <B>isDirty</B>()</PRE><DL><DD>Gets whether the DocumentBuffer is dirty.<P><DD><DL><DT><B>Returns:</B><DD>true if the information in the document in memory is newer than         that of the document on disk.</DL></DD></DL><HR><A NAME="isUntitled()"><!-- --></A><H3>isUntitled</H3><PRE>public boolean <B>isUntitled</B>()</PRE><DL><DD>Gets whether this DocumentBuffer is untitled.<P><DD><DL><DT><B>Returns:</B><DD>true if the document has no corresponding file on disk.</DL></DD></DL><HR><A NAME="reload(net.sourceforge.jsxe.gui.TabbedView)"><!-- --></A><H3>reload</H3><PRE>public boolean <B>reload</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>Reloads the file for this DocumentBuffer. If the document is dirty then the user is prompted if they want to continue. If the user decides to cancel at that point then the reload is aborted and this method returns false.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>view</CODE> - the view that requested the reload operation<DT><B>Returns:</B><DD>true if the document was reloaded sucessfully<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></DL></DD></DL><HR><A NAME="save(net.sourceforge.jsxe.gui.TabbedView)"><!-- --></A><H3>save</H3><PRE>public boolean <B>save</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>Saves the document buffer to disk in the current file. If the document is untitled the user is prompted for a file to save to.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>view</CODE> - the TabbedView that made this save request<DT><B>Returns:</B><DD>true if the save was successful and the used did not intervene.         false if the user canceled the save.<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 could not be written due to an I/O                     error.</DL></DD></DL><HR><A NAME="saveAs(net.sourceforge.jsxe.gui.TabbedView)"><!-- --></A><H3>saveAs</H3><PRE>public boolean <B>saveAs</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>Displays a save dialog that the user uses to chose a file to save to and saves the document to it.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>view</CODE> - the view that made the save request.<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 could not be written due to an I/O                     error.</DL></DD></DL><HR><A NAME="saveAs(net.sourceforge.jsxe.gui.TabbedView, java.io.File)"><!-- --></A><H3>saveAs</H3><PRE>public boolean <B>saveAs</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>Saves the document to the given file. If the file is null then the user is prompted for a file to save to.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>view</CODE> - the TabbedView that requested this save<DD><CODE>file</CODE> - the file to save the document to.<DT><B>Returns:</B><DD>true if the document was saved successfully the user did not         intervene<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 could not be written due to an I/O                     error.</DL></DD></DL><HR><A NAME="equalsOnDisk(java.io.File)"><!-- --></A><H3>equalsOnDisk</H3><PRE>public boolean <B>equalsOnDisk</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)                     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>Indicates if the file given is the same file on disk as the file used by this DocumentBuffer are the same file on disk.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the File to compare this DocumentBuffer's file against<DT><B>Returns:</B><DD>true if the file given is the same file on disk as the file used         by this DocumentBuffer<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 files cannot be compared due to an I/O error</DL></DD></DL><HR><A NAME="equalsOnDisk(net.sourceforge.jsxe.DocumentBuffer)"><!-- --></A><H3>equalsOnDisk</H3><PRE>public boolean <B>equalsOnDisk</B>(<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>Indicates if the DocumentBuffer given represents the same file on disk as the file used by this DocumentBuffer.<P><DD><DL><DT><B>Returns:</B><DD>true if the DocumentBuffer given uses the same file on disk as         the file used by this DocumentBuffer<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 files cannot be compared due to an I/O error</DL></DD></DL><HR><A NAME="getOptionsPanel()"><!-- --></A><H3>getOptionsPanel</H3><PRE>public <A HREF="../../../net/sourceforge/jsxe/gui/OptionsPanel.html" title="class in net.sourceforge.jsxe.gui">OptionsPanel</A> <B>getOptionsPanel</B>()</PRE><DL><DD>Gets the panel for editing options for this DocumentBuffer.<P><DD><DL><DT><B>Returns:</B><DD>the options panel used to edit options specific to this         DocumentBuffer</DL></DD></DL><HR><A NAME="readFile(java.io.Reader)"><!-- --></A><H3>readFile</H3><PRE>public void <B>readFile</B>(<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><DL><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></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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../net/sourceforge/jsxe/CustomFileFilter.html" title="class in net.sourceforge.jsxe"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../net/sourceforge/jsxe/jsXe.html" title="class in net.sourceforge.jsxe"><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>  &nbsp;&nbsp;<A HREF="DocumentBuffer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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