cz.vity.freerapid.swing.models
Class SimplePreferencesComboModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by javax.swing.DefaultComboBoxModel
          extended by cz.vity.freerapid.swing.models.SimplePreferencesComboModel
All Implemented Interfaces:
Serializable, ComboBoxModel, ListModel, MutableComboBoxModel

public final class SimplePreferencesComboModel
extends DefaultComboBoxModel

Author:
Vity
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
SimplePreferencesComboModel(int maxRecentPhrasesCount, String keyProperties, boolean autosave)
           
SimplePreferencesComboModel(String propertyKey, boolean autosave)
           
 
Method Summary
 void addElement(Object anObject)
           
 Collection<String> getList()
           
 void removeAllProperties()
           
 void setSelectedItem(Object anObject)
           
 void store()
           
 
Methods inherited from class javax.swing.DefaultComboBoxModel
getElementAt, getIndexOf, getSelectedItem, getSize, insertElementAt, removeAllElements, removeElement, removeElementAt
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Constructor Detail

SimplePreferencesComboModel

public SimplePreferencesComboModel(String propertyKey,
                                   boolean autosave)

SimplePreferencesComboModel

public SimplePreferencesComboModel(int maxRecentPhrasesCount,
                                   String keyProperties,
                                   boolean autosave)
Method Detail

setSelectedItem

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

addElement

public final void addElement(Object anObject)
Specified by:
addElement in interface MutableComboBoxModel
Overrides:
addElement in class DefaultComboBoxModel

getList

public final Collection<String> getList()

removeAllProperties

public void removeAllProperties()

store

public void store()