PageRenderTime 67ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 1ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/buffer/JEditBuffer.html

#
HTML | 1503 lines | 1326 code | 166 blank | 11 comment | 0 complexity | b0107cf6eea425b52ebd3d300370e27a MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:13:50 GMT-08:00 2008 -->
  6. <TITLE>
  7. JEditBuffer (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.buffer.JEditBuffer class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
  11. <NOSCRIPT>
  12. </NOSCRIPT>
  13. </HEAD>
  14. <BODY BGCOLOR="white" >
  15. <!-- ========= START OF TOP NAVBAR ======= -->
  16. <A NAME="navbar_top"><!-- --></A>
  17. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  18. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  19. <TR>
  20. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  21. <A NAME="navbar_top_firstrow"><!-- --></A>
  22. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  23. <TR ALIGN="center" VALIGN="top">
  24. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  25. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  26. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  27. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JEditBuffer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  32. </TR>
  33. </TABLE>
  34. </TD>
  35. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  36. </EM>
  37. </TD>
  38. </TR>
  39. <TR>
  40. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  41. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/buffer/IndentFoldHandler.html" title="class in org.gjt.sp.jedit.buffer"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.PropValue.html" title="class in org.gjt.sp.jedit.buffer"><B>NEXT CLASS</B></A></FONT></TD>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. <A HREF="../../../../../index.html?org/gjt/sp/jedit/buffer/JEditBuffer.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="JEditBuffer.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  46. &nbsp;
  47. <NOSCRIPT>
  48. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  49. </NOSCRIPT>
  50. </FONT></TD>
  51. </TR>
  52. <TR>
  53. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  54. SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  55. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  56. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  57. </TR>
  58. </TABLE>
  59. <A NAME="skip-navbar_top"></A>
  60. <!-- ========= END OF TOP NAVBAR ========= -->
  61. <HR>
  62. <!-- ======== START OF CLASS DATA ======== -->
  63. <H2>
  64. <FONT SIZE="-1">
  65. org.gjt.sp.jedit.buffer</FONT>
  66. <BR>
  67. Class JEditBuffer</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.buffer.JEditBuffer</B>
  71. </PRE>
  72. <DL>
  73. <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../org/gjt/sp/jedit/Buffer.html" title="class in org.gjt.sp.jedit">Buffer</A></DD>
  74. </DL>
  75. <HR>
  76. <DL>
  77. <DT><PRE>public class <B>JEditBuffer</B><DT>extends java.lang.Object</DL>
  78. </PRE>
  79. <P>
  80. A <code>JEditBuffer</code> represents the contents of an open text
  81. file as it is maintained in the computer's memory (as opposed to
  82. how it may be stored on a disk).<p>
  83. This class is partially thread-safe, however you must pay attention to two
  84. very important guidelines:
  85. <ul>
  86. <li>Changes to a buffer can only be made from the AWT thread.
  87. <li>When accessing the buffer from another thread, you must
  88. grab a read lock if you plan on performing more than one call, to ensure that
  89. the buffer contents are not changed by the AWT thread for the duration of the
  90. lock. Only methods whose descriptions specify thread safety can be invoked
  91. from other threads.
  92. </ul>
  93. <P>
  94. <P>
  95. <DL>
  96. <DT><B>Since:</B></DT>
  97. <DD>jEdit 4.3pre3</DD>
  98. </DL>
  99. <HR>
  100. <P>
  101. <!-- ======== NESTED CLASS SUMMARY ======== -->
  102. <A NAME="nested_class_summary"><!-- --></A>
  103. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  104. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  105. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  106. <B>Nested Class Summary</B></FONT></TH>
  107. </TR>
  108. <TR BGCOLOR="white" CLASS="TableRowColor">
  109. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  110. <CODE>protected static&nbsp;class</CODE></FONT></TD>
  111. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.PropValue.html" title="class in org.gjt.sp.jedit.buffer">JEditBuffer.PropValue</A></B></CODE>
  112. <BR>
  113. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  114. </TR>
  115. </TABLE>
  116. &nbsp;<!-- =========== FIELD SUMMARY =========== -->
  117. <A NAME="field_summary"><!-- --></A>
  118. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  119. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  120. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  121. <B>Field Summary</B></FONT></TH>
  122. </TR>
  123. <TR BGCOLOR="white" CLASS="TableRowColor">
  124. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  125. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  126. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#ENCODING">ENCODING</A></B></CODE>
  127. <BR>
  128. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Character encoding used when loading and saving.</TD>
  129. </TR>
  130. <TR BGCOLOR="white" CLASS="TableRowColor">
  131. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  132. <CODE>static&nbsp;int</CODE></FONT></TD>
  133. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#HIGH_PRIORITY">HIGH_PRIORITY</A></B></CODE>
  134. <BR>
  135. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  136. </TR>
  137. <TR BGCOLOR="white" CLASS="TableRowColor">
  138. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  139. <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
  140. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#LINESEP">LINESEP</A></B></CODE>
  141. <BR>
  142. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Line separator property.</TD>
  143. </TR>
  144. <TR BGCOLOR="white" CLASS="TableRowColor">
  145. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  146. <CODE>protected &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/Mode.html" title="class in org.gjt.sp.jedit">Mode</A></CODE></FONT></TD>
  147. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#mode">mode</A></B></CODE>
  148. <BR>
  149. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  150. </TR>
  151. <TR BGCOLOR="white" CLASS="TableRowColor">
  152. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  153. <CODE>static&nbsp;int</CODE></FONT></TD>
  154. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#NORMAL_PRIORITY">NORMAL_PRIORITY</A></B></CODE>
  155. <BR>
  156. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  157. </TR>
  158. <TR BGCOLOR="white" CLASS="TableRowColor">
  159. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  160. <CODE>protected &nbsp;javax.swing.text.Segment</CODE></FONT></TD>
  161. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#seg">seg</A></B></CODE>
  162. <BR>
  163. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  164. </TR>
  165. <TR BGCOLOR="white" CLASS="TableRowColor">
  166. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  167. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  168. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#textMode">textMode</A></B></CODE>
  169. <BR>
  170. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  171. </TR>
  172. <TR BGCOLOR="white" CLASS="TableRowColor">
  173. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  174. <CODE>protected &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/buffer/UndoManager.html" title="class in org.gjt.sp.jedit.buffer">UndoManager</A></CODE></FONT></TD>
  175. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#undoMgr">undoMgr</A></B></CODE>
  176. <BR>
  177. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  178. </TR>
  179. </TABLE>
  180. &nbsp;
  181. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  182. <A NAME="constructor_summary"><!-- --></A>
  183. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  184. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  185. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  186. <B>Constructor Summary</B></FONT></TH>
  187. </TR>
  188. <TR BGCOLOR="white" CLASS="TableRowColor">
  189. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#JEditBuffer()">JEditBuffer</A></B>()</CODE>
  190. <BR>
  191. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new JEditBuffer.</TD>
  192. </TR>
  193. <TR BGCOLOR="white" CLASS="TableRowColor">
  194. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#JEditBuffer(java.util.Map)">JEditBuffer</A></B>(java.util.Map&nbsp;props)</CODE>
  195. <BR>
  196. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  197. </TR>
  198. </TABLE>
  199. &nbsp;
  200. <!-- ========== METHOD SUMMARY =========== -->
  201. <A NAME="method_summary"><!-- --></A>
  202. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  203. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  204. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  205. <B>Method Summary</B></FONT></TH>
  206. </TR>
  207. <TR BGCOLOR="white" CLASS="TableRowColor">
  208. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  209. <CODE>&nbsp;void</CODE></FONT></TD>
  210. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#addBufferListener(org.gjt.sp.jedit.buffer.BufferListener)">addBufferListener</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/buffer/BufferListener.html" title="interface in org.gjt.sp.jedit.buffer">BufferListener</A>&nbsp;listener)</CODE>
  211. <BR>
  212. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a buffer change listener.</TD>
  213. </TR>
  214. <TR BGCOLOR="white" CLASS="TableRowColor">
  215. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  216. <CODE>&nbsp;void</CODE></FONT></TD>
  217. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#addBufferListener(org.gjt.sp.jedit.buffer.BufferListener, int)">addBufferListener</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/buffer/BufferListener.html" title="interface in org.gjt.sp.jedit.buffer">BufferListener</A>&nbsp;listener,
  218. int&nbsp;priority)</CODE>
  219. <BR>
  220. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a buffer change listener.</TD>
  221. </TR>
  222. <TR BGCOLOR="white" CLASS="TableRowColor">
  223. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  224. <CODE>&nbsp;void</CODE></FONT></TD>
  225. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#beginCompoundEdit()">beginCompoundEdit</A></B>()</CODE>
  226. <BR>
  227. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starts a compound edit.</TD>
  228. </TR>
  229. <TR BGCOLOR="white" CLASS="TableRowColor">
  230. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  231. <CODE>&nbsp;javax.swing.text.Position</CODE></FONT></TD>
  232. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#createPosition(int)">createPosition</A></B>(int&nbsp;offset)</CODE>
  233. <BR>
  234. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a floating position.</TD>
  235. </TR>
  236. <TR BGCOLOR="white" CLASS="TableRowColor">
  237. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  238. <CODE>&nbsp;void</CODE></FONT></TD>
  239. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#endCompoundEdit()">endCompoundEdit</A></B>()</CODE>
  240. <BR>
  241. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ends a compound edit.</TD>
  242. </TR>
  243. <TR BGCOLOR="white" CLASS="TableRowColor">
  244. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  245. <CODE>protected &nbsp;void</CODE></FONT></TD>
  246. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#fireBufferLoaded()">fireBufferLoaded</A></B>()</CODE>
  247. <BR>
  248. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  249. </TR>
  250. <TR BGCOLOR="white" CLASS="TableRowColor">
  251. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  252. <CODE>protected &nbsp;void</CODE></FONT></TD>
  253. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#fireContentInserted(int, int, int, int)">fireContentInserted</A></B>(int&nbsp;startLine,
  254. int&nbsp;offset,
  255. int&nbsp;numLines,
  256. int&nbsp;length)</CODE>
  257. <BR>
  258. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  259. </TR>
  260. <TR BGCOLOR="white" CLASS="TableRowColor">
  261. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  262. <CODE>protected &nbsp;void</CODE></FONT></TD>
  263. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#fireContentRemoved(int, int, int, int)">fireContentRemoved</A></B>(int&nbsp;startLine,
  264. int&nbsp;offset,
  265. int&nbsp;numLines,
  266. int&nbsp;length)</CODE>
  267. <BR>
  268. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  269. </TR>
  270. <TR BGCOLOR="white" CLASS="TableRowColor">
  271. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  272. <CODE>protected &nbsp;void</CODE></FONT></TD>
  273. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#fireFoldHandlerChanged()">fireFoldHandlerChanged</A></B>()</CODE>
  274. <BR>
  275. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  276. </TR>
  277. <TR BGCOLOR="white" CLASS="TableRowColor">
  278. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  279. <CODE>protected &nbsp;void</CODE></FONT></TD>
  280. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#fireFoldLevelChanged(int, int)">fireFoldLevelChanged</A></B>(int&nbsp;start,
  281. int&nbsp;end)</CODE>
  282. <BR>
  283. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  284. </TR>
  285. <TR BGCOLOR="white" CLASS="TableRowColor">
  286. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  287. <CODE>protected &nbsp;void</CODE></FONT></TD>
  288. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#firePreContentInserted(int, int, int, int)">firePreContentInserted</A></B>(int&nbsp;startLine,
  289. int&nbsp;offset,
  290. int&nbsp;numLines,
  291. int&nbsp;length)</CODE>
  292. <BR>
  293. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  294. </TR>
  295. <TR BGCOLOR="white" CLASS="TableRowColor">
  296. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  297. <CODE>protected &nbsp;void</CODE></FONT></TD>
  298. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#firePreContentRemoved(int, int, int, int)">firePreContentRemoved</A></B>(int&nbsp;startLine,
  299. int&nbsp;offset,
  300. int&nbsp;numLines,
  301. int&nbsp;length)</CODE>
  302. <BR>
  303. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  304. </TR>
  305. <TR BGCOLOR="white" CLASS="TableRowColor">
  306. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  307. <CODE>protected &nbsp;void</CODE></FONT></TD>
  308. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#fireTransactionComplete()">fireTransactionComplete</A></B>()</CODE>
  309. <BR>
  310. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  311. </TR>
  312. <TR BGCOLOR="white" CLASS="TableRowColor">
  313. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  314. <CODE>&nbsp;boolean</CODE></FONT></TD>
  315. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getBooleanProperty(java.lang.String)">getBooleanProperty</A></B>(java.lang.String&nbsp;name)</CODE>
  316. <BR>
  317. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of a boolean property.</TD>
  318. </TR>
  319. <TR BGCOLOR="white" CLASS="TableRowColor">
  320. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  321. <CODE>&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/buffer/BufferListener.html" title="interface in org.gjt.sp.jedit.buffer">BufferListener</A>[]</CODE></FONT></TD>
  322. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getBufferListeners()">getBufferListeners</A></B>()</CODE>
  323. <BR>
  324. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array of registered buffer change listeners.</TD>
  325. </TR>
  326. <TR BGCOLOR="white" CLASS="TableRowColor">
  327. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  328. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  329. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getContextSensitiveProperty(int, java.lang.String)">getContextSensitiveProperty</A></B>(int&nbsp;offset,
  330. java.lang.String&nbsp;name)</CODE>
  331. <BR>
  332. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Some settings, like comment start and end strings, can
  333. vary between different parts of a buffer (HTML text and inline
  334. JavaScript, for example).</TD>
  335. </TR>
  336. <TR BGCOLOR="white" CLASS="TableRowColor">
  337. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  338. <CODE>&nbsp;int</CODE></FONT></TD>
  339. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getCurrentIndentForLine(int, int[])">getCurrentIndentForLine</A></B>(int&nbsp;lineIndex,
  340. int[]&nbsp;whitespaceChars)</CODE>
  341. <BR>
  342. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the line's current leading indent.</TD>
  343. </TR>
  344. <TR BGCOLOR="white" CLASS="TableRowColor">
  345. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  346. <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
  347. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getDefaultProperty(java.lang.String)">getDefaultProperty</A></B>(java.lang.String&nbsp;key)</CODE>
  348. <BR>
  349. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  350. </TR>
  351. <TR BGCOLOR="white" CLASS="TableRowColor">
  352. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  353. <CODE>&nbsp;int[]</CODE></FONT></TD>
  354. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getFoldAtLine(int)">getFoldAtLine</A></B>(int&nbsp;line)</CODE>
  355. <BR>
  356. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array.</TD>
  357. </TR>
  358. <TR BGCOLOR="white" CLASS="TableRowColor">
  359. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  360. <CODE>&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html" title="class in org.gjt.sp.jedit.buffer">FoldHandler</A></CODE></FONT></TD>
  361. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getFoldHandler()">getFoldHandler</A></B>()</CODE>
  362. <BR>
  363. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the current buffer's fold handler.</TD>
  364. </TR>
  365. <TR BGCOLOR="white" CLASS="TableRowColor">
  366. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  367. <CODE>&nbsp;int</CODE></FONT></TD>
  368. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getFoldLevel(int)">getFoldLevel</A></B>(int&nbsp;line)</CODE>
  369. <BR>
  370. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the fold level of the specified line.</TD>
  371. </TR>
  372. <TR BGCOLOR="white" CLASS="TableRowColor">
  373. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  374. <CODE>&nbsp;int</CODE></FONT></TD>
  375. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getIdealIndentForLine(int)">getIdealIndentForLine</A></B>(int&nbsp;lineIndex)</CODE>
  376. <BR>
  377. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the ideal leading indent for the specified line.</TD>
  378. </TR>
  379. <TR BGCOLOR="white" CLASS="TableRowColor">
  380. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  381. <CODE>&nbsp;int</CODE></FONT></TD>
  382. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getIndentSize()">getIndentSize</A></B>()</CODE>
  383. <BR>
  384. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the indent size used in this buffer.</TD>
  385. </TR>
  386. <TR BGCOLOR="white" CLASS="TableRowColor">
  387. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  388. <CODE>&nbsp;int</CODE></FONT></TD>
  389. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getIntegerProperty(java.lang.String, int)">getIntegerProperty</A></B>(java.lang.String&nbsp;name,
  390. int&nbsp;defaultValue)</CODE>
  391. <BR>
  392. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of an integer property.</TD>
  393. </TR>
  394. <TR BGCOLOR="white" CLASS="TableRowColor">
  395. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  396. <CODE>&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/syntax/KeywordMap.html" title="class in org.gjt.sp.jedit.syntax">KeywordMap</A></CODE></FONT></TD>
  397. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getKeywordMapAtOffset(int)">getKeywordMapAtOffset</A></B>(int&nbsp;offset)</CODE>
  398. <BR>
  399. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the syntax highlighting keyword map in effect at the
  400. specified offset.</TD>
  401. </TR>
  402. <TR BGCOLOR="white" CLASS="TableRowColor">
  403. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  404. <CODE>&nbsp;int</CODE></FONT></TD>
  405. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getLength()">getLength</A></B>()</CODE>
  406. <BR>
  407. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of characters in the buffer.</TD>
  408. </TR>
  409. <TR BGCOLOR="white" CLASS="TableRowColor">
  410. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  411. <CODE>&nbsp;int</CODE></FONT></TD>
  412. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getLineCount()">getLineCount</A></B>()</CODE>
  413. <BR>
  414. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of physical lines in the buffer.</TD>
  415. </TR>
  416. <TR BGCOLOR="white" CLASS="TableRowColor">
  417. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  418. <CODE>&nbsp;int</CODE></FONT></TD>
  419. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getLineEndOffset(int)">getLineEndOffset</A></B>(int&nbsp;line)</CODE>
  420. <BR>
  421. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the end offset of the specified line.</TD>
  422. </TR>
  423. <TR BGCOLOR="white" CLASS="TableRowColor">
  424. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  425. <CODE>&nbsp;int</CODE></FONT></TD>
  426. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getLineLength(int)">getLineLength</A></B>(int&nbsp;line)</CODE>
  427. <BR>
  428. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the length of the specified line.</TD>
  429. </TR>
  430. <TR BGCOLOR="white" CLASS="TableRowColor">
  431. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  432. <CODE>&nbsp;int</CODE></FONT></TD>
  433. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getLineOfOffset(int)">getLineOfOffset</A></B>(int&nbsp;offset)</CODE>
  434. <BR>
  435. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the line containing the specified offset.</TD>
  436. </TR>
  437. <TR BGCOLOR="white" CLASS="TableRowColor">
  438. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  439. <CODE>&nbsp;java.lang.CharSequence</CODE></FONT></TD>
  440. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getLineSegment(int)">getLineSegment</A></B>(int&nbsp;line)</CODE>
  441. <BR>
  442. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text on the specified line.</TD>
  443. </TR>
  444. <TR BGCOLOR="white" CLASS="TableRowColor">
  445. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  446. <CODE>&nbsp;int</CODE></FONT></TD>
  447. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getLineStartOffset(int)">getLineStartOffset</A></B>(int&nbsp;line)</CODE>
  448. <BR>
  449. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the start offset of the specified line.</TD>
  450. </TR>
  451. <TR BGCOLOR="white" CLASS="TableRowColor">
  452. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  453. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  454. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getLineText(int)">getLineText</A></B>(int&nbsp;line)</CODE>
  455. <BR>
  456. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text on the specified line.</TD>
  457. </TR>
  458. <TR BGCOLOR="white" CLASS="TableRowColor">
  459. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  460. <CODE>&nbsp;void</CODE></FONT></TD>
  461. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getLineText(int, javax.swing.text.Segment)">getLineText</A></B>(int&nbsp;line,
  462. javax.swing.text.Segment&nbsp;segment)</CODE>
  463. <BR>
  464. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the specified line in a <code>Segment</code>.</TD>
  465. </TR>
  466. <TR BGCOLOR="white" CLASS="TableRowColor">
  467. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  468. <CODE>&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/Mode.html" title="class in org.gjt.sp.jedit">Mode</A></CODE></FONT></TD>
  469. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getMode()">getMode</A></B>()</CODE>
  470. <BR>
  471. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns this buffer's edit mode.</TD>
  472. </TR>
  473. <TR BGCOLOR="white" CLASS="TableRowColor">
  474. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  475. <CODE>&nbsp;int</CODE></FONT></TD>
  476. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getOffsetOfVirtualColumn(int, int, int[])">getOffsetOfVirtualColumn</A></B>(int&nbsp;line,
  477. int&nbsp;column,
  478. int[]&nbsp;totalVirtualWidth)</CODE>
  479. <BR>
  480. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the offset of a virtual column number (taking tabs
  481. into account) relative to the start of the line in question.</TD>
  482. </TR>
  483. <TR BGCOLOR="white" CLASS="TableRowColor">
  484. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  485. <CODE>&nbsp;java.util.regex.Pattern</CODE></FONT></TD>
  486. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getPatternProperty(java.lang.String, int)">getPatternProperty</A></B>(java.lang.String&nbsp;name,
  487. int&nbsp;flags)</CODE>
  488. <BR>
  489. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of a property as a regular expression.</TD>
  490. </TR>
  491. <TR BGCOLOR="white" CLASS="TableRowColor">
  492. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  493. <CODE>&nbsp;int</CODE></FONT></TD>
  494. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getPriorNonEmptyLine(int)">getPriorNonEmptyLine</A></B>(int&nbsp;lineIndex)</CODE>
  495. <BR>
  496. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Auto indent needs this.</TD>
  497. </TR>
  498. <TR BGCOLOR="white" CLASS="TableRowColor">
  499. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  500. <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
  501. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getProperty(java.lang.Object)">getProperty</A></B>(java.lang.Object&nbsp;name)</CODE>
  502. <BR>
  503. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of a buffer-local property.</TD>
  504. </TR>
  505. <TR BGCOLOR="white" CLASS="TableRowColor">
  506. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  507. <CODE>&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/syntax/ParserRuleSet.html" title="class in org.gjt.sp.jedit.syntax">ParserRuleSet</A></CODE></FONT></TD>
  508. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getRuleSetAtOffset(int)">getRuleSetAtOffset</A></B>(int&nbsp;offset)</CODE>
  509. <BR>
  510. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the syntax highlighting ruleset at the specified offset.</TD>
  511. </TR>
  512. <TR BGCOLOR="white" CLASS="TableRowColor">
  513. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  514. <CODE>&nbsp;java.lang.CharSequence</CODE></FONT></TD>
  515. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getSegment(int, int)">getSegment</A></B>(int&nbsp;start,
  516. int&nbsp;length)</CODE>
  517. <BR>
  518. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the specified text range.</TD>
  519. </TR>
  520. <TR BGCOLOR="white" CLASS="TableRowColor">
  521. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  522. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  523. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getStringProperty(java.lang.String)">getStringProperty</A></B>(java.lang.String&nbsp;name)</CODE>
  524. <BR>
  525. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the value of a string property.</TD>
  526. </TR>
  527. <TR BGCOLOR="white" CLASS="TableRowColor">
  528. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  529. <CODE>&nbsp;int</CODE></FONT></TD>
  530. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getTabSize()">getTabSize</A></B>()</CODE>
  531. <BR>
  532. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the tab size used in this buffer.</TD>
  533. </TR>
  534. <TR BGCOLOR="white" CLASS="TableRowColor">
  535. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  536. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  537. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getText(int, int)">getText</A></B>(int&nbsp;start,
  538. int&nbsp;length)</CODE>
  539. <BR>
  540. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the specified text range.</TD>
  541. </TR>
  542. <TR BGCOLOR="white" CLASS="TableRowColor">
  543. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  544. <CODE>&nbsp;void</CODE></FONT></TD>
  545. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getText(int, int, javax.swing.text.Segment)">getText</A></B>(int&nbsp;start,
  546. int&nbsp;length,
  547. javax.swing.text.Segment&nbsp;seg)</CODE>
  548. <BR>
  549. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the specified text range in a <code>Segment</code>.</TD>
  550. </TR>
  551. <TR BGCOLOR="white" CLASS="TableRowColor">
  552. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  553. <CODE>&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/syntax/TokenMarker.html" title="class in org.gjt.sp.jedit.syntax">TokenMarker</A></CODE></FONT></TD>
  554. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getTokenMarker()">getTokenMarker</A></B>()</CODE>
  555. <BR>
  556. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  557. </TR>
  558. <TR BGCOLOR="white" CLASS="TableRowColor">
  559. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  560. <CODE>&nbsp;int</CODE></FONT></TD>
  561. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#getVirtualWidth(int, int)">getVirtualWidth</A></B>(int&nbsp;line,
  562. int&nbsp;column)</CODE>
  563. <BR>
  564. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the virtual column number (taking tabs into account) of the
  565. specified position.</TD>
  566. </TR>
  567. <TR BGCOLOR="white" CLASS="TableRowColor">
  568. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  569. <CODE>&nbsp;boolean</CODE></FONT></TD>
  570. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#indentLine(int, boolean)">indentLine</A></B>(int&nbsp;lineIndex,
  571. boolean&nbsp;canDecreaseIndent)</CODE>
  572. <BR>
  573. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indents the specified line.</TD>
  574. </TR>
  575. <TR BGCOLOR="white" CLASS="TableRowColor">
  576. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  577. <CODE>&nbsp;boolean</CODE></FONT></TD>
  578. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#indentLine(int, boolean, boolean)">indentLine</A></B>(int&nbsp;lineIndex,
  579. boolean&nbsp;canIncreaseIndent,
  580. boolean&nbsp;canDecreaseIndent)</CODE>
  581. <BR>
  582. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#indentLine(int, boolean)"><CODE>indentLine(int,boolean)</CODE></A> instead.</I></TD>
  583. </TR>
  584. <TR BGCOLOR="white" CLASS="TableRowColor">
  585. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  586. <CODE>&nbsp;void</CODE></FONT></TD>
  587. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#indentLines(int[])">indentLines</A></B>(int[]&nbsp;lines)</CODE>
  588. <BR>
  589. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indents all specified lines.</TD>
  590. </TR>
  591. <TR BGCOLOR="white" CLASS="TableRowColor">
  592. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  593. <CODE>&nbsp;void</CODE></FONT></TD>
  594. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#indentLines(int, int)">indentLines</A></B>(int&nbsp;start,
  595. int&nbsp;end)</CODE>
  596. <BR>
  597. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indents all specified lines.</TD>
  598. </TR>
  599. <TR BGCOLOR="white" CLASS="TableRowColor">
  600. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  601. <CODE>&nbsp;void</CODE></FONT></TD>
  602. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#insert(int, javax.swing.text.Segment)">insert</A></B>(int&nbsp;offset,
  603. javax.swing.text.Segment&nbsp;seg)</CODE>
  604. <BR>
  605. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts a string into the buffer.</TD>
  606. </TR>
  607. <TR BGCOLOR="white" CLASS="TableRowColor">
  608. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  609. <CODE>&nbsp;void</CODE></FONT></TD>
  610. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#insert(int, java.lang.String)">insert</A></B>(int&nbsp;offset,
  611. java.lang.String&nbsp;str)</CODE>
  612. <BR>
  613. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts a string into the buffer.</TD>
  614. </TR>
  615. <TR BGCOLOR="white" CLASS="TableRowColor">
  616. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  617. <CODE>&nbsp;void</CODE></FONT></TD>
  618. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#insertAtColumn(int, int, java.lang.String)">insertAtColumn</A></B>(int&nbsp;line,
  619. int&nbsp;col,
  620. java.lang.String&nbsp;str)</CODE>
  621. <BR>
  622. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Like the <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#insert(int, java.lang.String)"><CODE>insert(int,String)</CODE></A> method, but inserts the string at
  623. the specified virtual column.</TD>
  624. </TR>
  625. <TR BGCOLOR="white" CLASS="TableRowColor">
  626. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  627. <CODE>&nbsp;int</CODE></FONT></TD>
  628. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#insertIndented(int, java.lang.String)">insertIndented</A></B>(int&nbsp;offset,
  629. java.lang.String&nbsp;text)</CODE>
  630. <BR>
  631. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts a string into the buffer, indenting each line of the string
  632. to match the indent of the first line.</TD>
  633. </TR>
  634. <TR BGCOLOR="white" CLASS="TableRowColor">
  635. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  636. <CODE>&nbsp;boolean</CODE></FONT></TD>
  637. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#insideCompoundEdit()">insideCompoundEdit</A></B>()</CODE>
  638. <BR>
  639. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns if a compound edit is currently active.</TD>
  640. </TR>
  641. <TR BGCOLOR="white" CLASS="TableRowColor">
  642. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  643. <CODE>&nbsp;void</CODE></FONT></TD>
  644. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#invalidateCachedFoldLevels()">invalidateCachedFoldLevels</A></B>()</CODE>
  645. <BR>
  646. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invalidates all cached fold level information.</TD>
  647. </TR>
  648. <TR BGCOLOR="white" CLASS="TableRowColor">
  649. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  650. <CODE>protected &nbsp;void</CODE></FONT></TD>
  651. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#invalidateFoldLevels()">invalidateFoldLevels</A></B>()</CODE>
  652. <BR>
  653. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  654. </TR>
  655. <TR BGCOLOR="white" CLASS="TableRowColor">
  656. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  657. <CODE>&nbsp;boolean</CODE></FONT></TD>
  658. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#isDirty()">isDirty</A></B>()</CODE>
  659. <BR>
  660. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether there have been unsaved changes to this buffer.</TD>
  661. </TR>
  662. <TR BGCOLOR="white" CLASS="TableRowColor">
  663. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  664. <CODE>&nbsp;boolean</CODE></FONT></TD>
  665. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#isEditable()">isEditable</A></B>()</CODE>
  666. <BR>
  667. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if this file is editable, false otherwise.</TD>
  668. </TR>
  669. <TR BGCOLOR="white" CLASS="TableRowColor">
  670. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  671. <CODE>&nbsp;boolean</CODE></FONT></TD>
  672. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#isElectricKey(char)">isElectricKey</A></B>(char&nbsp;ch)</CODE>
  673. <BR>
  674. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use #isElectricKey(char,int)</I></TD>
  675. </TR>
  676. <TR BGCOLOR="white" CLASS="TableRowColor">
  677. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  678. <CODE>&nbsp;boolean</CODE></FONT></TD>
  679. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#isElectricKey(char, int)">isElectricKey</A></B>(char&nbsp;ch,
  680. int&nbsp;line)</CODE>
  681. <BR>
  682. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Should inserting this character trigger a re-indent of
  683. the current line?</TD>
  684. </TR>
  685. <TR BGCOLOR="white" CLASS="TableRowColor">
  686. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  687. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  688. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#isFileReadOnly()">isFileReadOnly</A></B>()</CODE>
  689. <BR>
  690. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  691. </TR>
  692. <TR BGCOLOR="white" CLASS="TableRowColor">
  693. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  694. <CODE>&nbsp;boolean</CODE></FONT></TD>
  695. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#isFoldEnd(int)">isFoldEnd</A></B>(int&nbsp;line)</CODE>
  696. <BR>
  697. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns if the specified line ends a fold.</TD>
  698. </TR>
  699. <TR BGCOLOR="white" CLASS="TableRowColor">
  700. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  701. <CODE>&nbsp;boolean</CODE></FONT></TD>
  702. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#isFoldStart(int)">isFoldStart</A></B>(int&nbsp;line)</CODE>
  703. <BR>
  704. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns if the specified line begins a fold.</TD>
  705. </TR>
  706. <TR BGCOLOR="white" CLASS="TableRowColor">
  707. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  708. <CODE>&nbsp;boolean</CODE></FONT></TD>
  709. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#isLoading()">isLoading</A></B>()</CODE>
  710. <BR>
  711. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  712. </TR>
  713. <TR BGCOLOR="white" CLASS="TableRowColor">
  714. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  715. <CODE>&nbsp;boolean</CODE></FONT></TD>
  716. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#isPerformingIO()">isPerformingIO</A></B>()</CODE>
  717. <BR>
  718. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the buffer is currently performing I/O.</TD>
  719. </TR>
  720. <TR BGCOLOR="white" CLASS="TableRowColor">
  721. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  722. <CODE>&nbsp;boolean</CODE></FONT></TD>
  723. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#isReadOnly()">isReadOnly</A></B>()</CODE>
  724. <BR>
  725. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if this file is read only, false otherwise.</TD>
  726. </TR>
  727. <TR BGCOLOR="white" CLASS="TableRowColor">
  728. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  729. <CODE>&nbsp;boolean</CODE></FONT></TD>
  730. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#isTransactionInProgress()">isTransactionInProgress</A></B>()</CODE>
  731. <BR>
  732. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns if an undo or compound edit is currently in progress.</TD>
  733. </TR>
  734. <TR BGCOLOR="white" CLASS="TableRowColor">
  735. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  736. <CODE>&nbsp;boolean</CODE></FONT></TD>
  737. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#isUndoInProgress()">isUndoInProgress</A></B>()</CODE>
  738. <BR>
  739. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns if an undo or redo is currently being performed.</TD>
  740. </TR>
  741. <TR BGCOLOR="white" CLASS="TableRowColor">
  742. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  743. <CODE>protected &nbsp;void</CODE></FONT></TD>
  744. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#loadText(javax.swing.text.Segment, org.gjt.sp.util.IntegerArray)">loadText</A></B>(javax.swing.text.Segment&nbsp;seg,
  745. <A HREF="../../../../../org/gjt/sp/util/IntegerArray.html" title="class in org.gjt.sp.util">IntegerArray</A>&nbsp;endOffsets)</CODE>
  746. <BR>
  747. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  748. </TR>
  749. <TR BGCOLOR="white" CLASS="TableRowColor">
  750. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  751. <CODE>&nbsp;void</CODE></FONT></TD>
  752. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#markTokens(int, org.gjt.sp.jedit.syntax.TokenHandler)">markTokens</A></B>(int&nbsp;lineIndex,
  753. <A HREF="../../../../../org/gjt/sp/jedit/syntax/TokenHandler.html" title="interface in org.gjt.sp.jedit.syntax">TokenHandler</A>&nbsp;tokenHandler)</CODE>
  754. <BR>
  755. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the syntax tokens for the specified line.</TD>
  756. </TR>
  757. <TR BGCOLOR="white" CLASS="TableRowColor">
  758. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  759. <CODE>protected &nbsp;void</CODE></FONT></TD>
  760. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#parseBufferLocalProperties()">parseBufferLocalProperties</A></B>()</CODE>
  761. <BR>
  762. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  763. </TR>
  764. <TR BGCOLOR="white" CLASS="TableRowColor">
  765. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  766. <CODE>&nbsp;void</CODE></FONT></TD>
  767. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#propertiesChanged()">propertiesChanged</A></B>()</CODE>
  768. <BR>
  769. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reloads settings from the properties.</TD>
  770. </TR>
  771. <TR BGCOLOR="white" CLASS="TableRowColor">
  772. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  773. <CODE>&nbsp;void</CODE></FONT></TD>
  774. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#readLock()">readLock</A></B>()</CODE>
  775. <BR>
  776. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The buffer is guaranteed not to change between calls to
  777. <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#readLock()"><CODE>readLock()</CODE></A> and <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#readUnlock()"><CODE>readUnlock()</CODE></A>.</TD>
  778. </TR>
  779. <TR BGCOLOR="white" CLASS="TableRowColor">
  780. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  781. <CODE>&nbsp;void</CODE></FONT></TD>
  782. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#readUnlock()">readUnlock</A></B>()</CODE>
  783. <BR>
  784. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The buffer is guaranteed not to change between calls to
  785. <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#readLock()"><CODE>readLock()</CODE></A> and <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#readUnlock()"><CODE>readUnlock()</CODE></A>.</TD>
  786. </TR>
  787. <TR BGCOLOR="white" CLASS="TableRowColor">
  788. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  789. <CODE>&nbsp;void</CODE></FONT></TD>
  790. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#redo(org.gjt.sp.jedit.textarea.TextArea)">redo</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/textarea/TextArea.html" title="class in org.gjt.sp.jedit.textarea">TextArea</A>&nbsp;textArea)</CODE>
  791. <BR>
  792. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Redoes the most recently undone edit.</TD>
  793. </TR>
  794. <TR BGCOLOR="white" CLASS="TableRowColor">
  795. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  796. <CODE>&nbsp;void</CODE></FONT></TD>
  797. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#remove(int, int)">remove</A></B>(int&nbsp;offset,
  798. int&nbsp;length)</CODE>
  799. <BR>
  800. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the specified rang efrom the buffer.</TD>
  801. </TR>
  802. <TR BGCOLOR="white" CLASS="TableRowColor">
  803. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  804. <CODE>&nbsp;void</CODE></FONT></TD>
  805. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#removeBufferListener(org.gjt.sp.jedit.buffer.BufferListener)">removeBufferListener</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/buffer/BufferListener.html" title="interface in org.gjt.sp.jedit.buffer">BufferListener</A>&nbsp;listener)</CODE>
  806. <BR>
  807. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a buffer change listener.</TD>
  808. </TR>
  809. <TR BGCOLOR="white" CLASS="TableRowColor">
  810. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  811. <CODE>&nbsp;void</CODE></FONT></TD>
  812. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#removeTrailingWhiteSpace(int[])">removeTrailingWhiteSpace</A></B>(int[]&nbsp;lines)</CODE>
  813. <BR>
  814. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes trailing whitespace from all lines in the specified list.</TD>
  815. </TR>
  816. <TR BGCOLOR="white" CLASS="TableRowColor">
  817. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  818. <CODE>&nbsp;void</CODE></FONT></TD>
  819. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#resetCachedProperties()">resetCachedProperties</A></B>()</CODE>
  820. <BR>
  821. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  822. </TR>
  823. <TR BGCOLOR="white" CLASS="TableRowColor">
  824. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  825. <CODE>&nbsp;void</CODE></FONT></TD>
  826. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#setBooleanProperty(java.lang.String, boolean)">setBooleanProperty</A></B>(java.lang.String&nbsp;name,
  827. boolean&nbsp;value)</CODE>
  828. <BR>
  829. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a boolean property.</TD>
  830. </TR>
  831. <TR BGCOLOR="white" CLASS="TableRowColor">
  832. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  833. <CODE>&nbsp;void</CODE></FONT></TD>
  834. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#setDefaultProperty(java.lang.String, java.lang.Object)">setDefaultProperty</A></B>(java.lang.String&nbsp;name,
  835. java.lang.Object&nbsp;value)</CODE>
  836. <BR>
  837. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  838. </TR>
  839. <TR BGCOLOR="white" CLASS="TableRowColor">
  840. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  841. <CODE>&nbsp;void</CODE></FONT></TD>
  842. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#setDirty(boolean)">setDirty</A></B>(boolean&nbsp;d)</CODE>
  843. <BR>
  844. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the 'dirty' (changed since last save) flag of this buffer.</TD>
  845. </TR>
  846. <TR BGCOLOR="white" CLASS="TableRowColor">
  847. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  848. <CODE>protected &nbsp;void</CODE></FONT></TD>
  849. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#setFileReadOnly(boolean)">setFileReadOnly</A></B>(boolean&nbsp;readOnly)</CODE>
  850. <BR>
  851. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  852. </TR>
  853. <TR BGCOLOR="white" CLASS="TableRowColor">
  854. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  855. <CODE>&nbsp;void</CODE></FONT></TD>
  856. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#setFoldHandler(org.gjt.sp.jedit.buffer.FoldHandler)">setFoldHandler</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html" title="class in org.gjt.sp.jedit.buffer">FoldHandler</A>&nbsp;foldHandler)</CODE>
  857. <BR>
  858. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the buffer's fold handler.</TD>
  859. </TR>
  860. <TR BGCOLOR="white" CLASS="TableRowColor">
  861. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  862. <CODE>&nbsp;void</CODE></FONT></TD>
  863. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#setIntegerProperty(java.lang.String, int)">setIntegerProperty</A></B>(java.lang.String&nbsp;name,
  864. int&nbsp;value)</CODE>
  865. <BR>
  866. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets an integer property.</TD>
  867. </TR>
  868. <TR BGCOLOR="white" CLASS="TableRowColor">
  869. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  870. <CODE>&nbsp;void</CODE></FONT></TD>
  871. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#setLoading(boolean)">setLoading</A></B>(boolean&nbsp;loading)</CODE>
  872. <BR>
  873. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  874. </TR>
  875. <TR BGCOLOR="white" CLASS="TableRowColor">
  876. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  877. <CODE>&nbsp;void</CODE></FONT></TD>
  878. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#setMode(org.gjt.sp.jedit.Mode)">setMode</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/Mode.html" title="class in org.gjt.sp.jedit">Mode</A>&nbsp;mode)</CODE>
  879. <BR>
  880. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets this buffer's edit mode.</TD>
  881. </TR>
  882. <TR BGCOLOR="white" CLASS="TableRowColor">
  883. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  884. <CODE>&nbsp;void</CODE></FONT></TD>
  885. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#setMode(java.lang.String)">setMode</A></B>(java.lang.String&nbsp;mode)</CODE>
  886. <BR>
  887. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets this buffer's edit mode.</TD>
  888. </TR>
  889. <TR BGCOLOR="white" CLASS="TableRowColor">
  890. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  891. <CODE>&nbsp;void</CODE></FONT></TD>
  892. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#setPerformingIO(boolean)">setPerformingIO</A></B>(boolean&nbsp;io)</CODE>
  893. <BR>
  894. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the buffer is currently performing I/O.</TD>
  895. </TR>
  896. <TR BGCOLOR="white" CLASS="TableRowColor">
  897. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  898. <CODE>&nbsp;void</CODE></FONT></TD>
  899. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A></B>(java.lang.String&nbsp;name,
  900. java.lang.Object&nbsp;value)</CODE>
  901. <BR>
  902. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the value of a buffer-local property.</TD>
  903. </TR>
  904. <TR BGCOLOR="white" CLASS="TableRowColor">
  905. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  906. <CODE>&nbsp;void</CODE></FONT></TD>
  907. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#setReadOnly(boolean)">setReadOnly</A></B>(boolean&nbsp;readOnly)</CODE>
  908. <BR>
  909. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the read only flag.</TD>
  910. </TR>
  911. <TR BGCOLOR="white" CLASS="TableRowColor">
  912. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  913. <CODE>&nbsp;void</CODE></FONT></TD>
  914. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#setStringProperty(java.lang.String, java.lang.String)">setStringProperty</A></B>(java.lang.String&nbsp;name,
  915. java.lang.String&nbsp;value)</CODE>
  916. <BR>
  917. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets a string property.</TD>
  918. </TR>
  919. <TR BGCOLOR="white" CLASS="TableRowColor">
  920. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  921. <CODE>&nbsp;void</CODE></FONT></TD>
  922. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#setTokenMarker(org.gjt.sp.jedit.syntax.TokenMarker)">setTokenMarker</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/syntax/TokenMarker.html" title="class in org.gjt.sp.jedit.syntax">TokenMarker</A>&nbsp;tokenMarker)</CODE>
  923. <BR>
  924. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  925. </TR>
  926. <TR BGCOLOR="white" CLASS="TableRowColor">
  927. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  928. <CODE>&nbsp;void</CODE></FONT></TD>
  929. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#shiftIndentLeft(int[])">shiftIndentLeft</A></B>(int[]&nbsp;lines)</CODE>
  930. <BR>
  931. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shifts the indent of each line in the specified list to the left.</TD>
  932. </TR>
  933. <TR BGCOLOR="white" CLASS="TableRowColor">
  934. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  935. <CODE>&nbsp;void</CODE></FONT></TD>
  936. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#shiftIndentRight(int[])">shiftIndentRight</A></B>(int[]&nbsp;lines)</CODE>
  937. <BR>
  938. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shifts the indent of each line in the specified list to the right.</TD>
  939. </TR>
  940. <TR BGCOLOR="white" CLASS="TableRowColor">
  941. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  942. <CODE>&nbsp;void</CODE></FONT></TD>
  943. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#undo(org.gjt.sp.jedit.textarea.TextArea)">undo</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/textarea/TextArea.html" title="class in org.gjt.sp.jedit.textarea">TextArea</A>&nbsp;textArea)</CODE>
  944. <BR>
  945. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Undoes the most recent edit.</TD>
  946. </TR>
  947. <TR BGCOLOR="white" CLASS="TableRowColor">
  948. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  949. <CODE>&nbsp;void</CODE></FONT></TD>
  950. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#unsetProperty(java.lang.String)">unsetProperty</A></B>(java.lang.String&nbsp;name)</CODE>
  951. <BR>
  952. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears the value of a buffer-local property.</TD>
  953. </TR>
  954. <TR BGCOLOR="white" CLASS="TableRowColor">
  955. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  956. <CODE>&nbsp;void</CODE></FONT></TD>
  957. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#writeLock()">writeLock</A></B>()</CODE>
  958. <BR>
  959. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempting to obtain read lock will block between calls to
  960. <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#writeLock()"><CODE>writeLock()</CODE></A> and <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#writeUnlock()"><CODE>writeUnlock()</CODE></A>.</TD>
  961. </TR>
  962. <TR BGCOLOR="white" CLASS="TableRowColor">
  963. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  964. <CODE>&nbsp;void</CODE></FONT></TD>
  965. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#writeUnlock()">writeUnlock</A></B>()</CODE>
  966. <BR>
  967. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attempting to obtain read lock will block between calls to
  968. <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#writeLock()"><CODE>writeLock()</CODE></A> and <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#writeUnlock()"><CODE>writeUnlock()</CODE></A>.</TD>
  969. </TR>
  970. </TABLE>
  971. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  972. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  973. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  974. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  975. </TR>
  976. <TR BGCOLOR="white" CLASS="TableRowColor">
  977. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  978. </TR>
  979. </TABLE>
  980. &nbsp;
  981. <P>
  982. <!-- ============ FIELD DETAIL =========== -->
  983. <A NAME="field_detail"><!-- --></A>
  984. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  985. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  986. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  987. <B>Field Detail</B></FONT></TH>
  988. </TR>
  989. </TABLE>
  990. <A NAME="LINESEP"><!-- --></A><H3>
  991. LINESEP</H3>
  992. <PRE>
  993. public static final java.lang.String <B>LINESEP</B></PRE>
  994. <DL>
  995. <DD>Line separator property.
  996. <P>
  997. <DL>
  998. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.buffer.JEditBuffer.LINESEP">Constant Field Values</A></DL>
  999. </DL>
  1000. <HR>
  1001. <A NAME="ENCODING"><!-- --></A><H3>
  1002. ENCODING</H3>
  1003. <PRE>
  1004. public static final java.lang.String <B>ENCODING</B></PRE>
  1005. <DL>
  1006. <DD>Character encoding used when loading and saving.
  1007. <P>
  1008. <DL>
  1009. <DT><B>Since:</B></DT>
  1010. <DD>jEdit 3.2pre4</DD>
  1011. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.buffer.JEditBuffer.ENCODING">Constant Field Values</A></DL>
  1012. </DL>
  1013. <HR>
  1014. <A NAME="NORMAL_PRIORITY"><!-- --></A><H3>
  1015. NORMAL_PRIORITY</H3>
  1016. <PRE>
  1017. public static final int <B>NORMAL_PRIORITY</B></PRE>
  1018. <DL>
  1019. <DL>
  1020. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.buffer.JEditBuffer.NORMAL_PRIORITY">Constant Field Values</A></DL>
  1021. </DL>
  1022. <HR>
  1023. <A NAME="HIGH_PRIORITY"><!-- --></A><H3>
  1024. HIGH_PRIORITY</H3>
  1025. <PRE>
  1026. public static final int <B>HIGH_PRIORITY</B></PRE>
  1027. <DL>
  1028. <DL>
  1029. <DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.gjt.sp.jedit.buffer.JEditBuffer.HIGH_PRIORITY">Constant Field Values</A></DL>
  1030. </DL>
  1031. <HR>
  1032. <A NAME="mode"><!-- --></A><H3>
  1033. mode</H3>
  1034. <PRE>
  1035. protected <A HREF="../../../../../org/gjt/sp/jedit/Mode.html" title="class in org.gjt.sp.jedit">Mode</A> <B>mode</B></PRE>
  1036. <DL>
  1037. <DL>
  1038. </DL>
  1039. </DL>
  1040. <HR>
  1041. <A NAME="seg"><!-- --></A><H3>
  1042. seg</H3>
  1043. <PRE>
  1044. protected javax.swing.text.Segment <B>seg</B></PRE>
  1045. <DL>
  1046. <DL>
  1047. </DL>
  1048. </DL>
  1049. <HR>
  1050. <A NAME="textMode"><!-- --></A><H3>
  1051. textMode</H3>
  1052. <PRE>
  1053. protected boolean <B>textMode</B></PRE>
  1054. <DL>
  1055. <DL>
  1056. </DL>
  1057. </DL>
  1058. <HR>
  1059. <A NAME="undoMgr"><!-- --></A><H3>
  1060. undoMgr</H3>
  1061. <PRE>
  1062. protected <A HREF="../../../../../org/gjt/sp/jedit/buffer/UndoManager.html" title="class in org.gjt.sp.jedit.buffer">UndoManager</A> <B>undoMgr</B></PRE>
  1063. <DL>
  1064. <DL>
  1065. </DL>
  1066. </DL>
  1067. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  1068. <A NAME="constructor_detail"><!-- --></A>
  1069. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  1070. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  1071. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  1072. <B>Constructor Detail</B></FONT></TH>
  1073. </TR>
  1074. </TABLE>
  1075. <A NAME="JEditBuffer(java.util.Map)"><!-- --></A><H3>
  1076. JEditBuffer</H3>
  1077. <PRE>
  1078. public <B>JEditBuffer</B>(java.util.Map&nbsp;props)</PRE>
  1079. <DL>
  1080. </DL>
  1081. <HR>
  1082. <A NAME="JEditBuffer()"><!-- --></A><H3>
  1083. JEditBuffer</H3>
  1084. <PRE>
  1085. public <B>JEditBuffer</B>()</PRE>
  1086. <DL>
  1087. <DD>Create a new JEditBuffer.
  1088. It is used by independent textarea only
  1089. <P>
  1090. </DL>
  1091. <!-- ============ METHOD DETAIL ========== -->
  1092. <A NAME="method_detail"><!-- --></A>
  1093. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  1094. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  1095. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  1096. <B>Method Detail</B></FONT></TH>
  1097. </TR>
  1098. </TABLE>
  1099. <A NAME="isDirty()"><!-- --></A><H3>
  1100. isDirty</H3>
  1101. <PRE>
  1102. public boolean <B>isDirty</B>()</PRE>
  1103. <DL>
  1104. <DD>Returns whether there have been unsaved changes to this buffer.
  1105. This method is thread-safe.
  1106. <P>
  1107. <DD><DL>
  1108. </DL>
  1109. </DD>
  1110. </DL>
  1111. <HR>
  1112. <A NAME="isLoading()"><!-- --></A><H3>
  1113. isLoading</H3>
  1114. <PRE>
  1115. public boolean <B>isLoading</B>()</PRE>
  1116. <DL>
  1117. <DD><DL>
  1118. </DL>
  1119. </DD>
  1120. </DL>
  1121. <HR>
  1122. <A NAME="setLoading(boolean)"><!-- --></A><H3>
  1123. setLoading</H3>
  1124. <PRE>
  1125. public void <B>setLoading</B>(boolean&nbsp;loading)</PRE>
  1126. <DL>
  1127. <DD><DL>
  1128. </DL>
  1129. </DD>
  1130. </DL>
  1131. <HR>
  1132. <A NAME="isPerformingIO()"><!-- --></A><H3>
  1133. isPerformingIO</H3>
  1134. <PRE>
  1135. public boolean <B>isPerformingIO</B>()</PRE>
  1136. <DL>
  1137. <DD>Returns true if the buffer is currently performing I/O.
  1138. This method is thread-safe.
  1139. <P>
  1140. <DD><DL>
  1141. <DT><B>Since:</B></DT>
  1142. <DD>jEdit 2.7pre1</DD>
  1143. </DL>
  1144. </DD>
  1145. </DL>
  1146. <HR>
  1147. <A NAME="setPerformingIO(boolean)"><!-- --></A><H3>
  1148. setPerformingIO</H3>
  1149. <PRE>
  1150. public void <B>setPerformingIO</B>(boolean&nbsp;io)</PRE>
  1151. <DL>
  1152. <DD>Returns true if the buffer is currently performing I/O.
  1153. This method is thread-safe.
  1154. <P>
  1155. <DD><DL>
  1156. <DT><B>Since:</B></DT>
  1157. <DD>jEdit 2.7pre1</DD>
  1158. </DL>
  1159. </DD>
  1160. </DL>
  1161. <HR>
  1162. <A NAME="isEditable()"><!-- --></A><H3>
  1163. isEditable</H3>
  1164. <PRE>
  1165. public boolean <B>isEditable</B>()</PRE>
  1166. <DL>
  1167. <DD>Returns true if this file is editable, false otherwise. A file may
  1168. become uneditable if it is read only, or if I/O is in progress.
  1169. This method is thread-safe.
  1170. <P>
  1171. <DD><DL>
  1172. <DT><B>Since:</B></DT>
  1173. <DD>jEdit 2.7pre1</DD>
  1174. </DL>
  1175. </DD>
  1176. </DL>
  1177. <HR>
  1178. <A NAME="isReadOnly()"><!-- --></A><H3>
  1179. isReadOnly</H3>
  1180. <PRE>
  1181. public boolean <B>isReadOnly</B>()</PRE>
  1182. <DL>
  1183. <DD>Returns true if this file is read only, false otherwise.
  1184. This method is thread-safe.
  1185. <P>
  1186. <DD><DL>
  1187. </DL>
  1188. </DD>
  1189. </DL>
  1190. <HR>
  1191. <A NAME="setReadOnly(boolean)"><!-- --></A><H3>
  1192. setReadOnly</H3>
  1193. <PRE>
  1194. public void <B>setReadOnly</B>(boolean&nbsp;readOnly)</PRE>
  1195. <DL>
  1196. <DD>Sets the read only flag.
  1197. <P>
  1198. <DD><DL>
  1199. <DT><B>Parameters:</B><DD><CODE>readOnly</CODE> - The read only flag</DL>
  1200. </DD>
  1201. </DL>
  1202. <HR>
  1203. <A NAME="setDirty(boolean)"><!-- --></A><H3>
  1204. setDirty</H3>
  1205. <PRE>
  1206. public void <B>setDirty</B>(boolean&nbsp;d)</PRE>
  1207. <DL>
  1208. <DD>Sets the 'dirty' (changed since last save) flag of this buffer.
  1209. <P>
  1210. <DD><DL>
  1211. </DL>
  1212. </DD>
  1213. </DL>
  1214. <HR>
  1215. <A NAME="readLock()"><!-- --></A><H3>
  1216. readLock</H3>
  1217. <PRE>
  1218. public void <B>readLock</B>()</PRE>
  1219. <DL>
  1220. <DD>The buffer is guaranteed not to change between calls to
  1221. <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#readLock()"><CODE>readLock()</CODE></A> and <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#readUnlock()"><CODE>readUnlock()</CODE></A>.
  1222. <P>
  1223. <DD><DL>
  1224. </DL>
  1225. </DD>
  1226. </DL>
  1227. <HR>
  1228. <A NAME="readUnlock()"><!-- --></A><H3>
  1229. readUnlock</H3>
  1230. <PRE>
  1231. public void <B>readUnlock</B>()</PRE>
  1232. <DL>
  1233. <DD>The buffer is guaranteed not to change between calls to
  1234. <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#readLock()"><CODE>readLock()</CODE></A> and <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#readUnlock()"><CODE>readUnlock()</CODE></A>.
  1235. <P>
  1236. <DD><DL>
  1237. </DL>
  1238. </DD>
  1239. </DL>
  1240. <HR>
  1241. <A NAME="writeLock()"><!-- --></A><H3>
  1242. writeLock</H3>
  1243. <PRE>
  1244. public void <B>writeLock</B>()</PRE>
  1245. <DL>
  1246. <DD>Attempting to obtain read lock will block between calls to
  1247. <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#writeLock()"><CODE>writeLock()</CODE></A> and <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#writeUnlock()"><CODE>writeUnlock()</CODE></A>.
  1248. <P>
  1249. <DD><DL>
  1250. </DL>
  1251. </DD>
  1252. </DL>
  1253. <HR>
  1254. <A NAME="writeUnlock()"><!-- --></A><H3>
  1255. writeUnlock</H3>
  1256. <PRE>
  1257. public void <B>writeUnlock</B>()</PRE>
  1258. <DL>
  1259. <DD>Attempting to obtain read lock will block between calls to
  1260. <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#writeLock()"><CODE>writeLock()</CODE></A> and <A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html#writeUnlock()"><CODE>writeUnlock()</CODE></A>.
  1261. <P>
  1262. <DD><DL>
  1263. </DL>
  1264. </DD>
  1265. </DL>
  1266. <HR>
  1267. <A NAME="getLength()"><!-- --></A><H3>
  1268. getLength</H3>
  1269. <PRE>
  1270. public int <B>getLength</B>()</PRE>
  1271. <DL>
  1272. <DD>Returns the number of characters in the buffer. This method is thread-safe.
  1273. <P>
  1274. <DD><DL>
  1275. </DL>
  1276. </DD>
  1277. </DL>
  1278. <HR>
  1279. <A NAME="getLineCount()"><!-- --></A><H3>
  1280. getLineCount</H3>
  1281. <PRE>
  1282. public int <B>getLineCount</B>()</PRE>
  1283. <DL>
  1284. <DD>Returns the number of physical lines in the buffer.
  1285. This method is thread-safe.
  1286. <P>
  1287. <DD><DL>
  1288. <DT><B>Since:</B></DT>
  1289. <DD>jEdit 3.1pre1</DD>
  1290. </DL>
  1291. </DD>
  1292. </DL>
  1293. <HR>
  1294. <A NAME="getLineOfOffset(int)"><!-- --></A><H3>
  1295. getLineOfOffset</H3>
  1296. <PRE>
  1297. public int <B>getLineOfOffset</B>(int&nbsp;offset)</PRE>
  1298. <DL>
  1299. <DD>Returns the line containing the specified offset.
  1300. This method is thread-safe.
  1301. <P>
  1302. <DD><DL>
  1303. <DT><B>Parameters:</B><DD><CODE>offset</CODE> - The offset<DT><B>Since:</B></DT>
  1304. <DD>jEdit 4.0pre1</DD>
  1305. </DL>
  1306. </DD>
  1307. </DL>
  1308. <HR>
  1309. <A NAME="getLineStartOffset(int)"><!-- --></A><H3>
  1310. getLineStartOffset</H3>
  1311. <PRE>
  1312. public int <B>getLineStartOffset</B>(int&nbsp;line)</PRE>
  1313. <DL>
  1314. <DD>Returns the start offset of the specified line.
  1315. This method is thread-safe.
  1316. <P>
  1317. <DD><DL>
  1318. <DT><B>Parameters:</B><DD><CODE>line</CODE> - The line
  1319. <DT><B>Returns:</B><DD>The start offset of the specified line<DT><B>Since:</B></DT>
  1320. <DD>jEdit 4.0pre1</DD>
  1321. </DL>
  1322. </DD>
  1323. </DL>
  1324. <HR>
  1325. <A NAME="getLineEndOffset(int)"><!-- --></A><H3>
  1326. getLineEndOffset</H3>
  1327. <PRE>
  1328. public int <B>getLineEndOffset</B>(int&nbsp;line)</PRE>
  1329. <DL>
  1330. <DD>Returns the end offset of the specified line.
  1331. This method is thread-safe.
  1332. <P>
  1333. <DD><DL>
  1334. <DT><B>Parameters:</B><DD><CODE>line</CODE> - The line
  1335. <DT><B>Returns:</B><DD>The end offset of the specified line
  1336. invalid.<DT><B>Since:</B></DT>
  1337. <DD>jEdit 4.0pre1</DD>