PageRenderTime 128ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
HTML | 281 lines | 235 code | 33 blank | 13 comment | 0 complexity | 399a9b1c84ab34d514142cabcf6772ff 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. IndentFoldHandler (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.buffer.IndentFoldHandler 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/IndentFoldHandler.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/FoldHandlerProvider.html" title="interface in org.gjt.sp.jedit.buffer"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.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/IndentFoldHandler.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="IndentFoldHandler.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;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.gjt.sp.jedit.buffer.FoldHandler">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;FIELD&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 IndentFoldHandler</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html" title="class in org.gjt.sp.jedit.buffer">org.gjt.sp.jedit.buffer.FoldHandler</A>
  71. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.buffer.IndentFoldHandler</B>
  72. </PRE>
  73. <HR>
  74. <DL>
  75. <DT><PRE>public class <B>IndentFoldHandler</B><DT>extends <A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html" title="class in org.gjt.sp.jedit.buffer">FoldHandler</A></DL>
  76. </PRE>
  77. <P>
  78. A fold handler that folds lines based on their indent level.
  79. <P>
  80. <P>
  81. <DL>
  82. <DT><B>Since:</B></DT>
  83. <DD>jEdit 4.0pre1</DD>
  84. </DL>
  85. <HR>
  86. <P>
  87. <!-- =========== FIELD SUMMARY =========== -->
  88. <A NAME="field_summary"><!-- --></A>
  89. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  90. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  91. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  92. <B>Field Summary</B></FONT></TH>
  93. </TR>
  94. </TABLE>
  95. &nbsp;<A NAME="fields_inherited_from_class_org.gjt.sp.jedit.buffer.FoldHandler"><!-- --></A>
  96. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  97. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  98. <TH ALIGN="left"><B>Fields inherited from class org.gjt.sp.jedit.buffer.<A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html" title="class in org.gjt.sp.jedit.buffer">FoldHandler</A></B></TH>
  99. </TR>
  100. <TR BGCOLOR="white" CLASS="TableRowColor">
  101. <TD><CODE><A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html#foldHandlerProvider">foldHandlerProvider</A>, <A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html#SERVICE">SERVICE</A></CODE></TD>
  102. </TR>
  103. </TABLE>
  104. &nbsp;
  105. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  106. <A NAME="constructor_summary"><!-- --></A>
  107. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  108. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  109. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  110. <B>Constructor Summary</B></FONT></TH>
  111. </TR>
  112. <TR BGCOLOR="white" CLASS="TableRowColor">
  113. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/IndentFoldHandler.html#IndentFoldHandler()">IndentFoldHandler</A></B>()</CODE>
  114. <BR>
  115. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  116. </TR>
  117. </TABLE>
  118. &nbsp;
  119. <!-- ========== METHOD SUMMARY =========== -->
  120. <A NAME="method_summary"><!-- --></A>
  121. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  122. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  123. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  124. <B>Method Summary</B></FONT></TH>
  125. </TR>
  126. <TR BGCOLOR="white" CLASS="TableRowColor">
  127. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  128. <CODE>&nbsp;int</CODE></FONT></TD>
  129. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/buffer/IndentFoldHandler.html#getFoldLevel(org.gjt.sp.jedit.buffer.JEditBuffer, int, javax.swing.text.Segment)">getFoldLevel</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html" title="class in org.gjt.sp.jedit.buffer">JEditBuffer</A>&nbsp;buffer,
  130. int&nbsp;lineIndex,
  131. javax.swing.text.Segment&nbsp;seg)</CODE>
  132. <BR>
  133. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the fold level of the specified line.</TD>
  134. </TR>
  135. </TABLE>
  136. &nbsp;<A NAME="methods_inherited_from_class_org.gjt.sp.jedit.buffer.FoldHandler"><!-- --></A>
  137. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  138. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  139. <TH ALIGN="left"><B>Methods inherited from class org.gjt.sp.jedit.buffer.<A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html" title="class in org.gjt.sp.jedit.buffer">FoldHandler</A></B></TH>
  140. </TR>
  141. <TR BGCOLOR="white" CLASS="TableRowColor">
  142. <TD><CODE><A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html#getFoldHandler(java.lang.String)">getFoldHandler</A>, <A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html#getFoldModes()">getFoldModes</A>, <A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html#getName()">getName</A>, <A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html#hashCode()">hashCode</A>, <A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html#toString()">toString</A></CODE></TD>
  143. </TR>
  144. </TABLE>
  145. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  146. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  147. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  148. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  149. </TR>
  150. <TR BGCOLOR="white" CLASS="TableRowColor">
  151. <TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
  152. </TR>
  153. </TABLE>
  154. &nbsp;
  155. <P>
  156. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  157. <A NAME="constructor_detail"><!-- --></A>
  158. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  159. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  160. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  161. <B>Constructor Detail</B></FONT></TH>
  162. </TR>
  163. </TABLE>
  164. <A NAME="IndentFoldHandler()"><!-- --></A><H3>
  165. IndentFoldHandler</H3>
  166. <PRE>
  167. public <B>IndentFoldHandler</B>()</PRE>
  168. <DL>
  169. </DL>
  170. <!-- ============ METHOD DETAIL ========== -->
  171. <A NAME="method_detail"><!-- --></A>
  172. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  173. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  174. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  175. <B>Method Detail</B></FONT></TH>
  176. </TR>
  177. </TABLE>
  178. <A NAME="getFoldLevel(org.gjt.sp.jedit.buffer.JEditBuffer, int, javax.swing.text.Segment)"><!-- --></A><H3>
  179. getFoldLevel</H3>
  180. <PRE>
  181. public int <B>getFoldLevel</B>(<A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html" title="class in org.gjt.sp.jedit.buffer">JEditBuffer</A>&nbsp;buffer,
  182. int&nbsp;lineIndex,
  183. javax.swing.text.Segment&nbsp;seg)</PRE>
  184. <DL>
  185. <DD>Returns the fold level of the specified line.
  186. <P>
  187. <DD><DL>
  188. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html#getFoldLevel(org.gjt.sp.jedit.buffer.JEditBuffer, int, javax.swing.text.Segment)">getFoldLevel</A></CODE> in class <CODE><A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandler.html" title="class in org.gjt.sp.jedit.buffer">FoldHandler</A></CODE></DL>
  189. </DD>
  190. <DD><DL>
  191. <DT><B>Parameters:</B><DD><CODE>buffer</CODE> - The buffer in question<DD><CODE>lineIndex</CODE> - The line index<DD><CODE>seg</CODE> - A segment the fold handler can use to obtain any
  192. text from the buffer, if necessary
  193. <DT><B>Returns:</B><DD>The fold level of the specified line<DT><B>Since:</B></DT>
  194. <DD>jEdit 4.0pre1</DD>
  195. </DL>
  196. </DD>
  197. </DL>
  198. <!-- ========= END OF CLASS DATA ========= -->
  199. <HR>
  200. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  201. <A NAME="navbar_bottom"><!-- --></A>
  202. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  203. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  204. <TR>
  205. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  206. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  207. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  208. <TR ALIGN="center" VALIGN="top">
  209. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  210. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  211. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  212. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/IndentFoldHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  213. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  214. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  215. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  216. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  217. </TR>
  218. </TABLE>
  219. </TD>
  220. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  221. </EM>
  222. </TD>
  223. </TR>
  224. <TR>
  225. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  226. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/buffer/FoldHandlerProvider.html" title="interface in org.gjt.sp.jedit.buffer"><B>PREV CLASS</B></A>&nbsp;
  227. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html" title="class in org.gjt.sp.jedit.buffer"><B>NEXT CLASS</B></A></FONT></TD>
  228. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  229. <A HREF="../../../../../index.html?org/gjt/sp/jedit/buffer/IndentFoldHandler.html" target="_top"><B>FRAMES</B></A> &nbsp;
  230. &nbsp;<A HREF="IndentFoldHandler.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  231. &nbsp;
  232. <NOSCRIPT>
  233. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  234. </NOSCRIPT>
  235. </FONT></TD>
  236. </TR>
  237. <TR>
  238. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  239. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.gjt.sp.jedit.buffer.FoldHandler">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  240. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  241. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  242. </TR>
  243. </TABLE>
  244. <A NAME="skip-navbar_bottom"></A>
  245. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  246. <HR>
  247. </BODY>
  248. </HTML>