PageRenderTime 97ms CodeModel.GetById 58ms app.highlight 33ms RepoModel.GetById 1ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/gui/FilteredListModel.html

#
HTML | 636 lines | 557 code | 65 blank | 14 comment | 0 complexity | 7d307b11f180455db60b8f597d478082 MD5 | raw file
  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:55 GMT-08:00 2008 -->
  6<TITLE>
  7FilteredListModel (jEdit API)
  8</TITLE>
  9
 10<META NAME="keywords" CONTENT="org.gjt.sp.jedit.gui.FilteredListModel class">
 11
 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
 13
 14
 15<NOSCRIPT>
 16</NOSCRIPT>
 17
 18</HEAD>
 19
 20<BODY BGCOLOR="white" >
 21
 22
 23<!-- ========= START OF TOP NAVBAR ======= -->
 24<A NAME="navbar_top"><!-- --></A>
 25<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 26<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 27<TR>
 28<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 29<A NAME="navbar_top_firstrow"><!-- --></A>
 30<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 31  <TR ALIGN="center" VALIGN="top">
 32  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 33  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 34  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 35  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/FilteredListModel.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 36  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 37  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 38  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 39  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 40  </TR>
 41</TABLE>
 42</TD>
 43<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 44</EM>
 45</TD>
 46</TR>
 47
 48<TR>
 49<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 50&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/FilesChangedDialog.html" title="class in org.gjt.sp.jedit.gui"><B>PREV CLASS</B></A>&nbsp;
 51&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredTableModel.html" title="class in org.gjt.sp.jedit.gui"><B>NEXT CLASS</B></A></FONT></TD>
 52<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 53  <A HREF="../../../../../index.html?org/gjt/sp/jedit/gui/FilteredListModel.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 54&nbsp;<A HREF="FilteredListModel.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 55&nbsp;
 56<NOSCRIPT>
 57  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
 58</NOSCRIPT>
 59
 60
 61</FONT></TD>
 62</TR>
 63<TR>
 64<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 65  SUMMARY:&nbsp;NESTED&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>
 66<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 67DETAIL:&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>
 68</TR>
 69</TABLE>
 70<A NAME="skip-navbar_top"></A>
 71<!-- ========= END OF TOP NAVBAR ========= -->
 72
 73<HR>
 74<!-- ======== START OF CLASS DATA ======== -->
 75<H2>
 76<FONT SIZE="-1">
 77org.gjt.sp.jedit.gui</FONT>
 78<BR>
 79Class FilteredListModel&lt;E extends javax.swing.ListModel&gt;</H2>
 80<PRE>
 81java.lang.Object
 82  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">javax.swing.AbstractListModel
 83      <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.gui.FilteredListModel&lt;E&gt;</B>
 84</PRE>
 85<DL>
 86<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, java.util.EventListener, javax.swing.event.ListDataListener, javax.swing.ListModel</DD>
 87</DL>
 88<HR>
 89<DL>
 90<DT><PRE>public abstract class <B>FilteredListModel&lt;E extends javax.swing.ListModel&gt;</B><DT>extends javax.swing.AbstractListModel<DT>implements javax.swing.event.ListDataListener</DL>
 91</PRE>
 92
 93<P>
 94This ListModel delegates another model to add some filtering features to any
 95 JList.
 96 To use it you must implement the abstract method passFilter().
 97 This method is called for each row, and must return true if the row should be
 98 visible, and false otherwise.
 99 It is also possible to override the method prepareFilter() that allow you to
100 transform the filter String. Usually you can return it as lowercase
101 It is not mandatory but highly recommended to give the JList instance to the
102 model in order to keep the selection after the filter has been updated
103<P>
104
105<P>
106<DL>
107<DT><B>Since:</B></DT>
108  <DD>jEdit 4.3pre11</DD>
109<DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#org.gjt.sp.jedit.gui.FilteredListModel">Serialized Form</A></DL>
110<HR>
111
112<P>
113<!-- =========== FIELD SUMMARY =========== -->
114
115<A NAME="field_summary"><!-- --></A>
116<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
117<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
118<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
119<B>Field Summary</B></FONT></TH>
120</TR>
121<TR BGCOLOR="white" CLASS="TableRowColor">
122<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
123<CODE>protected &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html" title="type parameter in FilteredListModel">E</A></CODE></FONT></TD>
124<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html#delegated">delegated</A></B></CODE>
125
126<BR>
127&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The delegated table model.</TD>
128</TR>
129</TABLE>
130&nbsp;<A NAME="fields_inherited_from_class_javax.swing.AbstractListModel"><!-- --></A>
131<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
132<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
133<TH ALIGN="left"><B>Fields inherited from class javax.swing.AbstractListModel</B></TH>
134</TR>
135<TR BGCOLOR="white" CLASS="TableRowColor">
136<TD><CODE>listenerList</CODE></TD>
137</TR>
138</TABLE>
139&nbsp;
140<!-- ======== CONSTRUCTOR SUMMARY ======== -->
141
142<A NAME="constructor_summary"><!-- --></A>
143<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
144<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
145<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
146<B>Constructor Summary</B></FONT></TH>
147</TR>
148<TR BGCOLOR="white" CLASS="TableRowColor">
149<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
150<CODE>protected </CODE></FONT></TD>
151<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html#FilteredListModel(E)">FilteredListModel</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html" title="type parameter in FilteredListModel">E</A>&nbsp;delegated)</CODE>
152
153<BR>
154&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
155</TR>
156</TABLE>
157&nbsp;
158<!-- ========== METHOD SUMMARY =========== -->
159
160<A NAME="method_summary"><!-- --></A>
161<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
162<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
163<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
164<B>Method Summary</B></FONT></TH>
165</TR>
166<TR BGCOLOR="white" CLASS="TableRowColor">
167<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168<CODE>&nbsp;void</CODE></FONT></TD>
169<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html#contentsChanged(javax.swing.event.ListDataEvent)">contentsChanged</A></B>(javax.swing.event.ListDataEvent&nbsp;e)</CODE>
170
171<BR>
172&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
173</TR>
174<TR BGCOLOR="white" CLASS="TableRowColor">
175<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176<CODE>&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html" title="type parameter in FilteredListModel">E</A></CODE></FONT></TD>
177<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html#getDelegated()">getDelegated</A></B>()</CODE>
178
179<BR>
180&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
181</TR>
182<TR BGCOLOR="white" CLASS="TableRowColor">
183<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
184<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
185<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html#getElementAt(int)">getElementAt</A></B>(int&nbsp;index)</CODE>
186
187<BR>
188&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
189</TR>
190<TR BGCOLOR="white" CLASS="TableRowColor">
191<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
192<CODE>&nbsp;int</CODE></FONT></TD>
193<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html#getInternal2ExternalRow(int)">getInternal2ExternalRow</A></B>(int&nbsp;internalRowIndex)</CODE>
194
195<BR>
196&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a row index from the delegated table model into a row index of the JTable.</TD>
197</TR>
198<TR BGCOLOR="white" CLASS="TableRowColor">
199<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200<CODE>&nbsp;int</CODE></FONT></TD>
201<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html#getSize()">getSize</A></B>()</CODE>
202
203<BR>
204&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
205</TR>
206<TR BGCOLOR="white" CLASS="TableRowColor">
207<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208<CODE>&nbsp;int</CODE></FONT></TD>
209<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html#getTrueRow(int)">getTrueRow</A></B>(int&nbsp;rowIndex)</CODE>
210
211<BR>
212&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a row index from the JTable to an internal row index from the delegated model.</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/gui/FilteredListModel.html#intervalAdded(javax.swing.event.ListDataEvent)">intervalAdded</A></B>(javax.swing.event.ListDataEvent&nbsp;e)</CODE>
218
219<BR>
220&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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/gui/FilteredListModel.html#intervalRemoved(javax.swing.event.ListDataEvent)">intervalRemoved</A></B>(javax.swing.event.ListDataEvent&nbsp;e)</CODE>
226
227<BR>
228&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
229</TR>
230<TR BGCOLOR="white" CLASS="TableRowColor">
231<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
232<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
233<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html#passFilter(int, java.lang.String)">passFilter</A></B>(int&nbsp;row,
234           java.lang.String&nbsp;filter)</CODE>
235
236<BR>
237&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This callback indicates if a row passes the filter.</TD>
238</TR>
239<TR BGCOLOR="white" CLASS="TableRowColor">
240<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
242<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html#prepareFilter(java.lang.String)">prepareFilter</A></B>(java.lang.String&nbsp;filter)</CODE>
243
244<BR>
245&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
246</TR>
247<TR BGCOLOR="white" CLASS="TableRowColor">
248<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249<CODE>protected &nbsp;void</CODE></FONT></TD>
250<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html#restoreSelection(java.util.Set)">restoreSelection</A></B>(java.util.Set&lt;java.lang.Integer&gt;&nbsp;selectedIndices)</CODE>
251
252<BR>
253&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
254</TR>
255<TR BGCOLOR="white" CLASS="TableRowColor">
256<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
257<CODE>protected &nbsp;java.util.Set&lt;java.lang.Integer&gt;</CODE></FONT></TD>
258<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html#saveSelection()">saveSelection</A></B>()</CODE>
259
260<BR>
261&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
262</TR>
263<TR BGCOLOR="white" CLASS="TableRowColor">
264<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
265<CODE>&nbsp;void</CODE></FONT></TD>
266<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html#setDelegated(E)">setDelegated</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html" title="type parameter in FilteredListModel">E</A>&nbsp;delegated)</CODE>
267
268<BR>
269&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
270</TR>
271<TR BGCOLOR="white" CLASS="TableRowColor">
272<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
273<CODE>&nbsp;void</CODE></FONT></TD>
274<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html#setFilter(java.lang.String)">setFilter</A></B>(java.lang.String&nbsp;filter)</CODE>
275
276<BR>
277&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
278</TR>
279<TR BGCOLOR="white" CLASS="TableRowColor">
280<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
281<CODE>&nbsp;void</CODE></FONT></TD>
282<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html#setList(javax.swing.JList)">setList</A></B>(javax.swing.JList&nbsp;list)</CODE>
283
284<BR>
285&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the JList that uses this model.</TD>
286</TR>
287</TABLE>
288&nbsp;<A NAME="methods_inherited_from_class_javax.swing.AbstractListModel"><!-- --></A>
289<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
290<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
291<TH ALIGN="left"><B>Methods inherited from class javax.swing.AbstractListModel</B></TH>
292</TR>
293<TR BGCOLOR="white" CLASS="TableRowColor">
294<TD><CODE>addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener</CODE></TD>
295</TR>
296</TABLE>
297&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
298<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
299<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
300<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
301</TR>
302<TR BGCOLOR="white" CLASS="TableRowColor">
303<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
304</TR>
305</TABLE>
306&nbsp;
307<P>
308
309<!-- ============ FIELD DETAIL =========== -->
310
311<A NAME="field_detail"><!-- --></A>
312<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
313<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
314<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
315<B>Field Detail</B></FONT></TH>
316</TR>
317</TABLE>
318
319<A NAME="delegated"><!-- --></A><H3>
320delegated</H3>
321<PRE>
322protected <A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html" title="type parameter in FilteredListModel">E</A> extends javax.swing.ListModel <B>delegated</B></PRE>
323<DL>
324<DD>The delegated table model.
325<P>
326<DL>
327</DL>
328</DL>
329
330<!-- ========= CONSTRUCTOR DETAIL ======== -->
331
332<A NAME="constructor_detail"><!-- --></A>
333<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
334<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
335<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
336<B>Constructor Detail</B></FONT></TH>
337</TR>
338</TABLE>
339
340<A NAME="FilteredListModel(javax.swing.ListModel)"><!-- --></A><A NAME="FilteredListModel(E)"><!-- --></A><H3>
341FilteredListModel</H3>
342<PRE>
343protected <B>FilteredListModel</B>(<A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html" title="type parameter in FilteredListModel">E</A>&nbsp;delegated)</PRE>
344<DL>
345</DL>
346
347<!-- ============ METHOD DETAIL ========== -->
348
349<A NAME="method_detail"><!-- --></A>
350<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
351<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
352<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
353<B>Method Detail</B></FONT></TH>
354</TR>
355</TABLE>
356
357<A NAME="setList(javax.swing.JList)"><!-- --></A><H3>
358setList</H3>
359<PRE>
360public void <B>setList</B>(javax.swing.JList&nbsp;list)</PRE>
361<DL>
362<DD>Set the JList that uses this model.
363 It is used to restore the selection after the filter has been applied
364 If it is null,
365<P>
366<DD><DL>
367</DL>
368</DD>
369<DD><DL>
370<DT><B>Parameters:</B><DD><CODE>list</CODE> - the list that uses the model</DL>
371</DD>
372</DL>
373<HR>
374
375<A NAME="getDelegated()"><!-- --></A><H3>
376getDelegated</H3>
377<PRE>
378public <A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html" title="type parameter in FilteredListModel">E</A> <B>getDelegated</B>()</PRE>
379<DL>
380<DD><DL>
381</DL>
382</DD>
383<DD><DL>
384</DL>
385</DD>
386</DL>
387<HR>
388
389<A NAME="setDelegated(javax.swing.ListModel)"><!-- --></A><A NAME="setDelegated(E)"><!-- --></A><H3>
390setDelegated</H3>
391<PRE>
392public void <B>setDelegated</B>(<A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredListModel.html" title="type parameter in FilteredListModel">E</A>&nbsp;delegated)</PRE>
393<DL>
394<DD><DL>
395</DL>
396</DD>
397<DD><DL>
398</DL>
399</DD>
400</DL>
401<HR>
402
403<A NAME="setFilter(java.lang.String)"><!-- --></A><H3>
404setFilter</H3>
405<PRE>
406public void <B>setFilter</B>(java.lang.String&nbsp;filter)</PRE>
407<DL>
408<DD><DL>
409</DL>
410</DD>
411<DD><DL>
412</DL>
413</DD>
414</DL>
415<HR>
416
417<A NAME="prepareFilter(java.lang.String)"><!-- --></A><H3>
418prepareFilter</H3>
419<PRE>
420public java.lang.String <B>prepareFilter</B>(java.lang.String&nbsp;filter)</PRE>
421<DL>
422<DD><DL>
423</DL>
424</DD>
425<DD><DL>
426</DL>
427</DD>
428</DL>
429<HR>
430
431<A NAME="passFilter(int, java.lang.String)"><!-- --></A><H3>
432passFilter</H3>
433<PRE>
434public abstract boolean <B>passFilter</B>(int&nbsp;row,
435                                   java.lang.String&nbsp;filter)</PRE>
436<DL>
437<DD>This callback indicates if a row passes the filter.
438<P>
439<DD><DL>
440</DL>
441</DD>
442<DD><DL>
443<DT><B>Parameters:</B><DD><CODE>row</CODE> - the row number the delegate row count<DD><CODE>filter</CODE> - the filter string
444<DT><B>Returns:</B><DD>true if the row must be visible</DL>
445</DD>
446</DL>
447<HR>
448
449<A NAME="saveSelection()"><!-- --></A><H3>
450saveSelection</H3>
451<PRE>
452protected java.util.Set&lt;java.lang.Integer&gt; <B>saveSelection</B>()</PRE>
453<DL>
454<DD><DL>
455</DL>
456</DD>
457<DD><DL>
458</DL>
459</DD>
460</DL>
461<HR>
462
463<A NAME="restoreSelection(java.util.Set)"><!-- --></A><H3>
464restoreSelection</H3>
465<PRE>
466protected void <B>restoreSelection</B>(java.util.Set&lt;java.lang.Integer&gt;&nbsp;selectedIndices)</PRE>
467<DL>
468<DD><DL>
469</DL>
470</DD>
471<DD><DL>
472</DL>
473</DD>
474</DL>
475<HR>
476
477<A NAME="getTrueRow(int)"><!-- --></A><H3>
478getTrueRow</H3>
479<PRE>
480public int <B>getTrueRow</B>(int&nbsp;rowIndex)</PRE>
481<DL>
482<DD>Converts a row index from the JTable to an internal row index from the delegated model.
483<P>
484<DD><DL>
485</DL>
486</DD>
487<DD><DL>
488<DT><B>Parameters:</B><DD><CODE>rowIndex</CODE> - the row index
489<DT><B>Returns:</B><DD>the row index in the delegated model</DL>
490</DD>
491</DL>
492<HR>
493
494<A NAME="getInternal2ExternalRow(int)"><!-- --></A><H3>
495getInternal2ExternalRow</H3>
496<PRE>
497public int <B>getInternal2ExternalRow</B>(int&nbsp;internalRowIndex)</PRE>
498<DL>
499<DD>Converts a row index from the delegated table model into a row index of the JTable.
500<P>
501<DD><DL>
502</DL>
503</DD>
504<DD><DL>
505<DT><B>Parameters:</B><DD><CODE>internalRowIndex</CODE> - the internal row index
506<DT><B>Returns:</B><DD>the table row index or -1 if this row is not visible</DL>
507</DD>
508</DL>
509<HR>
510
511<A NAME="getElementAt(int)"><!-- --></A><H3>
512getElementAt</H3>
513<PRE>
514public java.lang.Object <B>getElementAt</B>(int&nbsp;index)</PRE>
515<DL>
516<DD><DL>
517<DT><B>Specified by:</B><DD><CODE>getElementAt</CODE> in interface <CODE>javax.swing.ListModel</CODE></DL>
518</DD>
519<DD><DL>
520</DL>
521</DD>
522</DL>
523<HR>
524
525<A NAME="getSize()"><!-- --></A><H3>
526getSize</H3>
527<PRE>
528public int <B>getSize</B>()</PRE>
529<DL>
530<DD><DL>
531<DT><B>Specified by:</B><DD><CODE>getSize</CODE> in interface <CODE>javax.swing.ListModel</CODE></DL>
532</DD>
533<DD><DL>
534</DL>
535</DD>
536</DL>
537<HR>
538
539<A NAME="contentsChanged(javax.swing.event.ListDataEvent)"><!-- --></A><H3>
540contentsChanged</H3>
541<PRE>
542public void <B>contentsChanged</B>(javax.swing.event.ListDataEvent&nbsp;e)</PRE>
543<DL>
544<DD><DL>
545<DT><B>Specified by:</B><DD><CODE>contentsChanged</CODE> in interface <CODE>javax.swing.event.ListDataListener</CODE></DL>
546</DD>
547<DD><DL>
548</DL>
549</DD>
550</DL>
551<HR>
552
553<A NAME="intervalAdded(javax.swing.event.ListDataEvent)"><!-- --></A><H3>
554intervalAdded</H3>
555<PRE>
556public void <B>intervalAdded</B>(javax.swing.event.ListDataEvent&nbsp;e)</PRE>
557<DL>
558<DD><DL>
559<DT><B>Specified by:</B><DD><CODE>intervalAdded</CODE> in interface <CODE>javax.swing.event.ListDataListener</CODE></DL>
560</DD>
561<DD><DL>
562</DL>
563</DD>
564</DL>
565<HR>
566
567<A NAME="intervalRemoved(javax.swing.event.ListDataEvent)"><!-- --></A><H3>
568intervalRemoved</H3>
569<PRE>
570public void <B>intervalRemoved</B>(javax.swing.event.ListDataEvent&nbsp;e)</PRE>
571<DL>
572<DD><DL>
573<DT><B>Specified by:</B><DD><CODE>intervalRemoved</CODE> in interface <CODE>javax.swing.event.ListDataListener</CODE></DL>
574</DD>
575<DD><DL>
576</DL>
577</DD>
578</DL>
579<!-- ========= END OF CLASS DATA ========= -->
580<HR>
581
582
583<!-- ======= START OF BOTTOM NAVBAR ====== -->
584<A NAME="navbar_bottom"><!-- --></A>
585<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
586<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
587<TR>
588<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
589<A NAME="navbar_bottom_firstrow"><!-- --></A>
590<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
591  <TR ALIGN="center" VALIGN="top">
592  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
593  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
594  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
595  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/FilteredListModel.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
596  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
597  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
598  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
599  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
600  </TR>
601</TABLE>
602</TD>
603<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
604</EM>
605</TD>
606</TR>
607
608<TR>
609<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
610&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/FilesChangedDialog.html" title="class in org.gjt.sp.jedit.gui"><B>PREV CLASS</B></A>&nbsp;
611&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/FilteredTableModel.html" title="class in org.gjt.sp.jedit.gui"><B>NEXT CLASS</B></A></FONT></TD>
612<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
613  <A HREF="../../../../../index.html?org/gjt/sp/jedit/gui/FilteredListModel.html" target="_top"><B>FRAMES</B></A>  &nbsp;
614&nbsp;<A HREF="FilteredListModel.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
615&nbsp;
616<NOSCRIPT>
617  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
618</NOSCRIPT>
619
620
621</FONT></TD>
622</TR>
623<TR>
624<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
625  SUMMARY:&nbsp;NESTED&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>
626<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
627DETAIL:&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>
628</TR>
629</TABLE>
630<A NAME="skip-navbar_bottom"></A>
631<!-- ======== END OF BOTTOM NAVBAR ======= -->
632
633<HR>
634
635</BODY>
636</HTML>