com.quadrique.jbuildingblocks.gui
Class ComboBoxWithHistoryModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by javax.swing.DefaultComboBoxModel
          extended by com.quadrique.jbuildingblocks.gui.ComboBoxWithHistoryModel
All Implemented Interfaces:
Serializable, ComboBoxModel, ListModel, MutableComboBoxModel

public class ComboBoxWithHistoryModel
extends DefaultComboBoxModel

Author:
Hervé Rivere
See Also:
Serialized Form

Constructor Summary
ComboBoxWithHistoryModel()
           
ComboBoxWithHistoryModel(com.quadrique.jbuildingblocks.core.application.preferences.JbbUserPreferences zUserPreferences, String zPreferencesParentKey, String zPreferencesChildrenKey)
           
 
Method Summary
 ArrayList<String> getHistory()
           
 void insertElementAt(Object anObject, int index)
           
 void setHistory(ArrayList<String> zList)
          To set the history list
 void setSelectedItem(Object anItem)
           
 void setText(String zItem)
           
 
Methods inherited from class javax.swing.DefaultComboBoxModel
addElement, getElementAt, getIndexOf, getSelectedItem, getSize, removeAllElements, removeElement, removeElementAt
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Constructor Detail

ComboBoxWithHistoryModel

public ComboBoxWithHistoryModel()

ComboBoxWithHistoryModel

public ComboBoxWithHistoryModel(com.quadrique.jbuildingblocks.core.application.preferences.JbbUserPreferences zUserPreferences,
                                String zPreferencesParentKey,
                                String zPreferencesChildrenKey)
                         throws Exception
Parameters:
zUserPreferences -
zPreferencesParentKey -
zPreferencesChildrenKey -
Throws:
Exception
Method Detail

setSelectedItem

public void setSelectedItem(Object anItem)
Specified by:
setSelectedItem in interface ComboBoxModel
Overrides:
setSelectedItem in class DefaultComboBoxModel

insertElementAt

public void insertElementAt(Object anObject,
                            int index)
Specified by:
insertElementAt in interface MutableComboBoxModel
Overrides:
insertElementAt in class DefaultComboBoxModel
Parameters:
anObject -
index -

setHistory

public void setHistory(ArrayList<String> zList)
                throws Exception
To set the history list

Parameters:
zList -
Throws:
Exception

setText

public void setText(String zItem)

getHistory

public ArrayList<String> getHistory()
Returns:
history


Copyright © 2001-2009 Quadrique Corporation. All Rights Reserved.