<h2>org.autoplot.datasource.RecentComboBox</h2><p>decorate a comboBox so that it remembers recent entries. This listens for ActionEvents from a JComboBox and adds valid items to its droplist. The recent entries are stored in the bookmarks folder in the file "recent.PREF.txt" where PREF is a string assigned to this object identifying the theme, such as "timerange". Specifically, the event is validated and recorded into the file, then the file is loaded, sorted, and saved again.</p> <h2>RecentComboBox( )</h2> <p></p> <hr> <a name="PREF_NODE_TIMERANGE"></a> <h2>PREF_NODE_TIMERANGE</h2> <p></p> <hr> <a name="actionPerformed"></a> <h2>actionPerformed</h2> actionPerformed( <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/event/ActionEvent.html'>java.awt.event.ActionEvent</a> e ) → void <p></p> <h3>Parameters</h3> e - an ActionEvent <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=actionPerformed&unscoped_q=actionPerformed">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/RecentComboBox.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/RecentComboBox.html#actionPerformed">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/RecentComboBox.java#l325">[view source]</a> <br> <br> <hr> <a name="addAdditionalToRecentItems"></a> <h2>addAdditionalToRecentItems</h2> addAdditionalToRecentItems( <a href='https://docs.oracle.com/javase/8/docs/api/java/util/List.html'>java.util.List</a> items ) → void <p>kludge in way to add an item to the list of recent entries.</p> <h3>Parameters</h3> items - items to insert (at the top of the list). <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=addAdditionalToRecentItems&unscoped_q=addAdditionalToRecentItems">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/RecentComboBox.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/RecentComboBox.html#addAdditionalToRecentItems">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/RecentComboBox.java#l211">[view source]</a> <br> <br> <hr> <a name="addToRecent"></a> <h2>addToRecent</h2> addToRecent( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> s ) → void <p>add the item to the list of recent entries. This will reload the recent file, probably firing events.</p> <h3>Parameters</h3> s - the item <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=addToRecent&unscoped_q=addToRecent">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/RecentComboBox.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/RecentComboBox.html#addToRecent">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/RecentComboBox.java#l279">[view source]</a> <br> <br> addToRecent( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> s, boolean reload ) → void<br> <hr> <a name="getText"></a> <h2>getText</h2> getText( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p>get the string value, which is also the getSelectedItem. This will also push a changed value to the recent entries.</p> <h3>Returns:</h3> a String <br><br> <a href="https://github.com/autoplot/dev/search?q=getText&unscoped_q=getText">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/RecentComboBox.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/RecentComboBox.html#getText">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/RecentComboBox.java#l131">[view source]</a> <br> <br> <hr> <a name="isDirty"></a> <h2>isDirty</h2> isDirty( ) → boolean <p>check if the human has made modifications to this value.</p> <h3>Returns:</h3> true if modifications have been made. <br><br> <a href="https://github.com/autoplot/dev/search?q=isDirty&unscoped_q=isDirty">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/RecentComboBox.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/RecentComboBox.html#isDirty">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/RecentComboBox.java#l111">[view source]</a> <br> <br> <hr> <a name="main"></a> <h2>main</h2> main( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String[]</a> args ) → void <p></p> <h3>Parameters</h3> args - a java.lang.String[] <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=main&unscoped_q=main">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/RecentComboBox.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/RecentComboBox.html#main">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/RecentComboBox.java#l335">[view source]</a> <br> <br> <hr> <a name="setPreferenceNode"></a> <h2>setPreferenceNode</h2> setPreferenceNode( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> pref ) → void <p>associate the history with a file. This should be called immediately after creating the object.</p> <h3>Parameters</h3> pref - a String <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setPreferenceNode&unscoped_q=setPreferenceNode">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/RecentComboBox.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/RecentComboBox.html#setPreferenceNode">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/RecentComboBox.java#l79">[view source]</a> <br> <br> <hr> <a name="setText"></a> <h2>setText</h2> setText( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> text ) → void <p>to make it easier to convert GUIs with JTextFields to RecentComboBoxes, setText is available.</p> <h3>Parameters</h3> text - a String <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setText&unscoped_q=setText">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/RecentComboBox.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/RecentComboBox.html#setText">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/RecentComboBox.java#l119">[view source]</a> <br> <br> <hr> <a name="setVerifier"></a> <h2>setVerifier</h2> setVerifier( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/datasource/InputVerifier.html'>org.autoplot.datasource.InputVerifier</a> v ) → void <p>allow filtering of invalid entries so they aren't recorded in history.</p> <h3>Parameters</h3> v - an InputVerifier <h3>Returns:</h3> void (returns nothing) <br><br> <a href="https://github.com/autoplot/dev/search?q=setVerifier&unscoped_q=setVerifier">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/RecentComboBox.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/RecentComboBox.html#setVerifier">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/RecentComboBox.java#l103">[view source]</a> <br> <br>