public class TypesafeEnumComboBoxModel extends DefaultComboBoxModel
listenerList
Constructor and Description |
---|
TypesafeEnumComboBoxModel()
Holds value of property locale.
|
TypesafeEnumComboBoxModel(Class typesafeEnumClass,
Locale locale) |
TypesafeEnumComboBoxModel(Locale locale) |
TypesafeEnumComboBoxModel(TypesafeEnum[] typesafeEnums,
Locale locale)
Creates a new instance of DefaultTypesafeEnumComboBoxModel
|
Modifier and Type | Method and Description |
---|---|
void |
addAllTypesafeEnums(TypesafeEnum[] typesafeEnums) |
void |
addElement(Object anObject) |
int |
getIndexOf(Object anObject)
Returns the index-position of the specified object in the list.
|
TypesafeEnum |
getSelectedTypesafeEnum() |
TypesafeEnum |
getTypesafeEnumAt(int index) |
void |
insertElementAt(Object anObject,
int index) |
void |
removeElement(Object anObject) |
void |
setSelectedItem(Object anObject)
Set the value of the selected item.
|
getElementAt, getSelectedItem, getSize, removeAllElements, removeElementAt
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
public TypesafeEnumComboBoxModel()
public TypesafeEnumComboBoxModel(Locale locale)
public TypesafeEnumComboBoxModel(TypesafeEnum[] typesafeEnums, Locale locale)
public TypesafeEnum getSelectedTypesafeEnum()
public void removeElement(Object anObject)
removeElement
in interface MutableComboBoxModel
removeElement
in class DefaultComboBoxModel
public void insertElementAt(Object anObject, int index)
insertElementAt
in interface MutableComboBoxModel
insertElementAt
in class DefaultComboBoxModel
public void addElement(Object anObject)
addElement
in interface MutableComboBoxModel
addElement
in class DefaultComboBoxModel
public void setSelectedItem(Object anObject)
setSelectedItem
in interface ComboBoxModel
setSelectedItem
in class DefaultComboBoxModel
anObject
- The combo box value or null for no selection.public int getIndexOf(Object anObject)
getIndexOf
in class DefaultComboBoxModel
anObject
- public TypesafeEnum getTypesafeEnumAt(int index)
public void addAllTypesafeEnums(TypesafeEnum[] typesafeEnums)
Copyright © 2002–2016 SoftSmithy. All rights reserved.