| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.util.HistoryList
public class HistoryList
An class which facilitates reading and writing history lists based on some underlying properties mechanism.
| Constructor Summary | |
|---|---|
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. | 
|
| Method Summary | |
|---|---|
 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.  | 
 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)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public HistoryList(java.lang.String name)
HistoryList without
 loading items.
name - the name of the history list
public 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 mechanism| Method Detail | 
|---|
public 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 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 remove
public 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)
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||