public class HistoryList
extends java.lang.Object
| Constructor and Description | 
|---|
HistoryList(java.lang.String name)
Constructs a new instance of  
HistoryList without
 loading items. | 
HistoryList(java.lang.String name,
           PropertyAccess properties)
Constructs a new instance of  
HistoryList,
 loading items using the PropertyAccess parameter as
 the underlying properties mechanism. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
Clears this history list. 
 | 
java.lang.String | 
comboBoxGetSelectedItem(javax.swing.JComboBox comboBox)  | 
java.lang.String | 
comboBoxGetSelectedItem(javax.swing.JTextField editor)  | 
void | 
fill(java.lang.String[] itemsToAdd)
Fills this history list with the given items. 
 | 
java.lang.String[] | 
getHistory()
Returns the items in this history list. 
 | 
java.util.List<java.lang.String> | 
getHistoryList()
Returns the items in this history list. 
 | 
int | 
getMaxHistorySize()
Returns the maximum number of items that this history list can
 hold. 
 | 
int | 
getSize()
Returns the number of items in this history list. 
 | 
void | 
load(PropertyAccess properties)
Loads the history list from an underlying properties mechanism. 
 | 
boolean | 
remove(java.lang.String item)
Removes an item from the history list. 
 | 
void | 
save()
Saves the history list to the underlying properties mechanism
 which were used when this history list was loaded. 
 | 
void | 
saveAs(PropertyAccess properties)
Saves the history list to an underlying properties mechanism. 
 | 
void | 
setMaxHistorySize(int maxHistorySize)
Specifies the maximum number of items that this history list can
 hold. 
 | 
void | 
update(java.lang.String item)
Updates the history list by moving the specified item to the
 beginning of the list or inserting the specified item at the
 beginning of the list. 
 | 
void | 
updateHistory(java.lang.String s)  | 
public HistoryList(java.lang.String name)
HistoryList without
 loading items.name - the name of the history listpublic HistoryList(java.lang.String name,
                   PropertyAccess properties)
HistoryList,
 loading items using the PropertyAccess parameter as
 the underlying properties mechanism.name - the name of the history listproperties - the underlying properties mechanismpublic int getMaxHistorySize()
public void setMaxHistorySize(int maxHistorySize)
maxHistorySize - maximum number of itemspublic void load(PropertyAccess properties)
properties - the underlying properties mechanismpublic void clear()
public java.lang.String[] getHistory()
public java.util.List<java.lang.String> getHistoryList()
public int getSize()
public void fill(java.lang.String[] itemsToAdd)
public void update(java.lang.String item)
 This method does not save the history list to the underlying
 properties mechanism. To save the history list, use
 save().
item - the selected itempublic boolean remove(java.lang.String item)
 This method does not save the history list to the underlying
 properties mechanism. To save the history list, use
 save().
item - the item to removepublic void save()
public void saveAs(PropertyAccess properties)
properties - the underlying properties mechanismpublic java.lang.String comboBoxGetSelectedItem(javax.swing.JComboBox comboBox)
public java.lang.String comboBoxGetSelectedItem(javax.swing.JTextField editor)
public void updateHistory(java.lang.String s)