PageRenderTime 68ms CodeModel.GetById 48ms app.highlight 14ms RepoModel.GetById 2ms app.codeStats 0ms

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

#
HTML | 554 lines | 486 code | 55 blank | 13 comment | 0 complexity | bb3cd614e11bdae02ac69aa8484a47c0 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:56 GMT-08:00 2008 -->
  6<TITLE>
  7HistoryModel (jEdit API)
  8</TITLE>
  9
 10<META NAME="keywords" CONTENT="org.gjt.sp.jedit.gui.HistoryModel 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/HistoryModel.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/GrabKeyDialog.KeyBinding.html" title="class in org.gjt.sp.jedit.gui"><B>PREV CLASS</B></A>&nbsp;
 51&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModelSaver.html" title="interface 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/HistoryModel.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 54&nbsp;<A HREF="HistoryModel.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="#fields_inherited_from_class_javax.swing.AbstractListModel">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;FIELD&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 HistoryModel</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 ">javax.swing.DefaultListModel
 84          <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.gui.HistoryModel</B>
 85</PRE>
 86<DL>
 87<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, javax.swing.ListModel, <A HREF="../../../../../org/gjt/sp/jedit/gui/MutableListModel.html" title="interface in org.gjt.sp.jedit.gui">MutableListModel</A></DD>
 88</DL>
 89<HR>
 90<DL>
 91<DT><PRE>public class <B>HistoryModel</B><DT>extends javax.swing.DefaultListModel<DT>implements <A HREF="../../../../../org/gjt/sp/jedit/gui/MutableListModel.html" title="interface in org.gjt.sp.jedit.gui">MutableListModel</A></DL>
 92</PRE>
 93
 94<P>
 95A history list. One history list can be used by several history text
 96 fields. Note that the list model implementation is incomplete; no events
 97 are fired when the history model changes.
 98<P>
 99
100<P>
101<DL>
102<DT><B>See Also:</B><DD><A HREF="../../../../../serialized-form.html#org.gjt.sp.jedit.gui.HistoryModel">Serialized Form</A></DL>
103<HR>
104
105<P>
106<!-- =========== FIELD SUMMARY =========== -->
107
108<A NAME="field_summary"><!-- --></A>
109<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
110<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
111<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
112<B>Field Summary</B></FONT></TH>
113</TR>
114</TABLE>
115&nbsp;<A NAME="fields_inherited_from_class_javax.swing.AbstractListModel"><!-- --></A>
116<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
117<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
118<TH ALIGN="left"><B>Fields inherited from class javax.swing.AbstractListModel</B></TH>
119</TR>
120<TR BGCOLOR="white" CLASS="TableRowColor">
121<TD><CODE>listenerList</CODE></TD>
122</TR>
123</TABLE>
124&nbsp;
125<!-- ======== CONSTRUCTOR SUMMARY ======== -->
126
127<A NAME="constructor_summary"><!-- --></A>
128<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
129<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
130<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
131<B>Constructor Summary</B></FONT></TH>
132</TR>
133<TR BGCOLOR="white" CLASS="TableRowColor">
134<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModel.html#HistoryModel(java.lang.String)">HistoryModel</A></B>(java.lang.String&nbsp;name)</CODE>
135
136<BR>
137&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new history list.</TD>
138</TR>
139</TABLE>
140&nbsp;
141<!-- ========== METHOD SUMMARY =========== -->
142
143<A NAME="method_summary"><!-- --></A>
144<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
145<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
146<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
147<B>Method Summary</B></FONT></TH>
148</TR>
149<TR BGCOLOR="white" CLASS="TableRowColor">
150<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
151<CODE>&nbsp;void</CODE></FONT></TD>
152<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModel.html#addItem(java.lang.String)">addItem</A></B>(java.lang.String&nbsp;text)</CODE>
153
154<BR>
155&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds an item to the end of this history list, trimming the list
156 to the maximum number of items if necessary.</TD>
157</TR>
158<TR BGCOLOR="white" CLASS="TableRowColor">
159<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160<CODE>&nbsp;void</CODE></FONT></TD>
161<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModel.html#clear()">clear</A></B>()</CODE>
162
163<BR>
164&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Call <code>removeAllElements()</code> instead.</I></TD>
165</TR>
166<TR BGCOLOR="white" CLASS="TableRowColor">
167<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
169<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModel.html#getItem(int)">getItem</A></B>(int&nbsp;index)</CODE>
170
171<BR>
172&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an item from the history list.</TD>
173</TR>
174<TR BGCOLOR="white" CLASS="TableRowColor">
175<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176<CODE>static&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModel.html" title="class in org.gjt.sp.jedit.gui">HistoryModel</A></CODE></FONT></TD>
177<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModel.html#getModel(java.lang.String)">getModel</A></B>(java.lang.String&nbsp;name)</CODE>
178
179<BR>
180&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a named model.</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.String</CODE></FONT></TD>
185<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModel.html#getName()">getName</A></B>()</CODE>
186
187<BR>
188&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name of this history list.</TD>
189</TR>
190<TR BGCOLOR="white" CLASS="TableRowColor">
191<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
192<CODE>&nbsp;void</CODE></FONT></TD>
193<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModel.html#insertElementAt(java.lang.Object, int)">insertElementAt</A></B>(java.lang.Object&nbsp;obj,
194                int&nbsp;index)</CODE>
195
196<BR>
197&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
198</TR>
199<TR BGCOLOR="white" CLASS="TableRowColor">
200<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
201<CODE>static&nbsp;void</CODE></FONT></TD>
202<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModel.html#loadHistory()">loadHistory</A></B>()</CODE>
203
204<BR>
205&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
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/gui/HistoryModel.html#removeAllElements()">removeAllElements</A></B>()</CODE>
211
212<BR>
213&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
214</TR>
215<TR BGCOLOR="white" CLASS="TableRowColor">
216<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217<CODE>&nbsp;boolean</CODE></FONT></TD>
218<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModel.html#removeElement(java.lang.Object)">removeElement</A></B>(java.lang.Object&nbsp;obj)</CODE>
219
220<BR>
221&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
222</TR>
223<TR BGCOLOR="white" CLASS="TableRowColor">
224<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225<CODE>static&nbsp;void</CODE></FONT></TD>
226<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModel.html#saveHistory()">saveHistory</A></B>()</CODE>
227
228<BR>
229&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
230</TR>
231<TR BGCOLOR="white" CLASS="TableRowColor">
232<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233<CODE>static&nbsp;void</CODE></FONT></TD>
234<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModel.html#setMax(int)">setMax</A></B>(int&nbsp;max)</CODE>
235
236<BR>
237&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
238</TR>
239<TR BGCOLOR="white" CLASS="TableRowColor">
240<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241<CODE>static&nbsp;void</CODE></FONT></TD>
242<TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModel.html#setSaver(org.gjt.sp.jedit.gui.HistoryModelSaver)">setSaver</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModelSaver.html" title="interface in org.gjt.sp.jedit.gui">HistoryModelSaver</A>&nbsp;saver)</CODE>
243
244<BR>
245&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
246</TR>
247</TABLE>
248&nbsp;<A NAME="methods_inherited_from_class_javax.swing.DefaultListModel"><!-- --></A>
249<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
250<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
251<TH ALIGN="left"><B>Methods inherited from class javax.swing.DefaultListModel</B></TH>
252</TR>
253<TR BGCOLOR="white" CLASS="TableRowColor">
254<TD><CODE>add, addElement, capacity, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize</CODE></TD>
255</TR>
256</TABLE>
257&nbsp;<A NAME="methods_inherited_from_class_javax.swing.AbstractListModel"><!-- --></A>
258<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
259<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
260<TH ALIGN="left"><B>Methods inherited from class javax.swing.AbstractListModel</B></TH>
261</TR>
262<TR BGCOLOR="white" CLASS="TableRowColor">
263<TD><CODE>addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener</CODE></TD>
264</TR>
265</TABLE>
266&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
267<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
268<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
269<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
270</TR>
271<TR BGCOLOR="white" CLASS="TableRowColor">
272<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
273</TR>
274</TABLE>
275&nbsp;<A NAME="methods_inherited_from_class_javax.swing.ListModel"><!-- --></A>
276<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
277<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
278<TH ALIGN="left"><B>Methods inherited from interface javax.swing.ListModel</B></TH>
279</TR>
280<TR BGCOLOR="white" CLASS="TableRowColor">
281<TD><CODE>addListDataListener, getElementAt, getSize, removeListDataListener</CODE></TD>
282</TR>
283</TABLE>
284&nbsp;
285<P>
286
287<!-- ========= CONSTRUCTOR DETAIL ======== -->
288
289<A NAME="constructor_detail"><!-- --></A>
290<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
291<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
292<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
293<B>Constructor Detail</B></FONT></TH>
294</TR>
295</TABLE>
296
297<A NAME="HistoryModel(java.lang.String)"><!-- --></A><H3>
298HistoryModel</H3>
299<PRE>
300public <B>HistoryModel</B>(java.lang.String&nbsp;name)</PRE>
301<DL>
302<DD>Creates a new history list. Calling this is normally not
303 necessary.
304<P>
305</DL>
306
307<!-- ============ METHOD DETAIL ========== -->
308
309<A NAME="method_detail"><!-- --></A>
310<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
311<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
312<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
313<B>Method Detail</B></FONT></TH>
314</TR>
315</TABLE>
316
317<A NAME="addItem(java.lang.String)"><!-- --></A><H3>
318addItem</H3>
319<PRE>
320public void <B>addItem</B>(java.lang.String&nbsp;text)</PRE>
321<DL>
322<DD>Adds an item to the end of this history list, trimming the list
323 to the maximum number of items if necessary.
324<P>
325<DD><DL>
326</DL>
327</DD>
328<DD><DL>
329<DT><B>Parameters:</B><DD><CODE>text</CODE> - The item</DL>
330</DD>
331</DL>
332<HR>
333
334<A NAME="insertElementAt(java.lang.Object, int)"><!-- --></A><H3>
335insertElementAt</H3>
336<PRE>
337public void <B>insertElementAt</B>(java.lang.Object&nbsp;obj,
338                            int&nbsp;index)</PRE>
339<DL>
340<DD><DL>
341<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/gui/MutableListModel.html#insertElementAt(java.lang.Object, int)">insertElementAt</A></CODE> in interface <CODE><A HREF="../../../../../org/gjt/sp/jedit/gui/MutableListModel.html" title="interface in org.gjt.sp.jedit.gui">MutableListModel</A></CODE><DT><B>Overrides:</B><DD><CODE>insertElementAt</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL>
342</DD>
343<DD><DL>
344</DL>
345</DD>
346</DL>
347<HR>
348
349<A NAME="getItem(int)"><!-- --></A><H3>
350getItem</H3>
351<PRE>
352public java.lang.String <B>getItem</B>(int&nbsp;index)</PRE>
353<DL>
354<DD>Returns an item from the history list.
355<P>
356<DD><DL>
357</DL>
358</DD>
359<DD><DL>
360<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index</DL>
361</DD>
362</DL>
363<HR>
364
365<A NAME="removeElement(java.lang.Object)"><!-- --></A><H3>
366removeElement</H3>
367<PRE>
368public boolean <B>removeElement</B>(java.lang.Object&nbsp;obj)</PRE>
369<DL>
370<DD><DL>
371<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/gjt/sp/jedit/gui/MutableListModel.html#removeElement(java.lang.Object)">removeElement</A></CODE> in interface <CODE><A HREF="../../../../../org/gjt/sp/jedit/gui/MutableListModel.html" title="interface in org.gjt.sp.jedit.gui">MutableListModel</A></CODE><DT><B>Overrides:</B><DD><CODE>removeElement</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL>
372</DD>
373<DD><DL>
374</DL>
375</DD>
376</DL>
377<HR>
378
379<A NAME="clear()"><!-- --></A><H3>
380clear</H3>
381<PRE>
382public void <B>clear</B>()</PRE>
383<DL>
384<DD><B>Deprecated.</B>&nbsp;<I>Call <code>removeAllElements()</code> instead.</I>
385<P>
386<DD><DL>
387<DT><B>Overrides:</B><DD><CODE>clear</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL>
388</DD>
389<DD><DL>
390</DL>
391</DD>
392</DL>
393<HR>
394
395<A NAME="removeAllElements()"><!-- --></A><H3>
396removeAllElements</H3>
397<PRE>
398public void <B>removeAllElements</B>()</PRE>
399<DL>
400<DD><DL>
401<DT><B>Overrides:</B><DD><CODE>removeAllElements</CODE> in class <CODE>javax.swing.DefaultListModel</CODE></DL>
402</DD>
403<DD><DL>
404</DL>
405</DD>
406</DL>
407<HR>
408
409<A NAME="getName()"><!-- --></A><H3>
410getName</H3>
411<PRE>
412public java.lang.String <B>getName</B>()</PRE>
413<DL>
414<DD>Returns the name of this history list. This can be passed
415 to the HistoryTextField constructor.
416<P>
417<DD><DL>
418</DL>
419</DD>
420<DD><DL>
421</DL>
422</DD>
423</DL>
424<HR>
425
426<A NAME="getModel(java.lang.String)"><!-- --></A><H3>
427getModel</H3>
428<PRE>
429public static <A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModel.html" title="class in org.gjt.sp.jedit.gui">HistoryModel</A> <B>getModel</B>(java.lang.String&nbsp;name)</PRE>
430<DL>
431<DD>Returns a named model. If the specified model does not
432 already exist, it will be created.
433<P>
434<DD><DL>
435</DL>
436</DD>
437<DD><DL>
438<DT><B>Parameters:</B><DD><CODE>name</CODE> - The model name</DL>
439</DD>
440</DL>
441<HR>
442
443<A NAME="loadHistory()"><!-- --></A><H3>
444loadHistory</H3>
445<PRE>
446public static void <B>loadHistory</B>()</PRE>
447<DL>
448<DD><DL>
449</DL>
450</DD>
451<DD><DL>
452</DL>
453</DD>
454</DL>
455<HR>
456
457<A NAME="saveHistory()"><!-- --></A><H3>
458saveHistory</H3>
459<PRE>
460public static void <B>saveHistory</B>()</PRE>
461<DL>
462<DD><DL>
463</DL>
464</DD>
465<DD><DL>
466</DL>
467</DD>
468</DL>
469<HR>
470
471<A NAME="setMax(int)"><!-- --></A><H3>
472setMax</H3>
473<PRE>
474public static void <B>setMax</B>(int&nbsp;max)</PRE>
475<DL>
476<DD><DL>
477</DL>
478</DD>
479<DD><DL>
480</DL>
481</DD>
482</DL>
483<HR>
484
485<A NAME="setSaver(org.gjt.sp.jedit.gui.HistoryModelSaver)"><!-- --></A><H3>
486setSaver</H3>
487<PRE>
488public static void <B>setSaver</B>(<A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModelSaver.html" title="interface in org.gjt.sp.jedit.gui">HistoryModelSaver</A>&nbsp;saver)</PRE>
489<DL>
490<DD><DL>
491</DL>
492</DD>
493<DD><DL>
494</DL>
495</DD>
496</DL>
497<!-- ========= END OF CLASS DATA ========= -->
498<HR>
499
500
501<!-- ======= START OF BOTTOM NAVBAR ====== -->
502<A NAME="navbar_bottom"><!-- --></A>
503<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
504<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
505<TR>
506<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
507<A NAME="navbar_bottom_firstrow"><!-- --></A>
508<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
509  <TR ALIGN="center" VALIGN="top">
510  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
511  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
512  <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
513  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/HistoryModel.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
514  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
515  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
516  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
517  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
518  </TR>
519</TABLE>
520</TD>
521<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
522</EM>
523</TD>
524</TR>
525
526<TR>
527<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
528&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/GrabKeyDialog.KeyBinding.html" title="class in org.gjt.sp.jedit.gui"><B>PREV CLASS</B></A>&nbsp;
529&nbsp;<A HREF="../../../../../org/gjt/sp/jedit/gui/HistoryModelSaver.html" title="interface in org.gjt.sp.jedit.gui"><B>NEXT CLASS</B></A></FONT></TD>
530<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
531  <A HREF="../../../../../index.html?org/gjt/sp/jedit/gui/HistoryModel.html" target="_top"><B>FRAMES</B></A>  &nbsp;
532&nbsp;<A HREF="HistoryModel.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
533&nbsp;
534<NOSCRIPT>
535  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
536</NOSCRIPT>
537
538
539</FONT></TD>
540</TR>
541<TR>
542<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
543  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.AbstractListModel">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
544<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
545DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
546</TR>
547</TABLE>
548<A NAME="skip-navbar_bottom"></A>
549<!-- ======== END OF BOTTOM NAVBAR ======= -->
550
551<HR>
552
553</BODY>
554</HTML>