Package jadex.commons.gui.autocombo
Class FixedClassInfoComboModel
- java.lang.Object
-
- javax.swing.AbstractListModel
-
- jadex.commons.gui.autocombo.AbstractAutoComboModel<T>
-
- jadex.commons.gui.autocombo.AbstractFixedAutoComboModel<ClassInfo>
-
- jadex.commons.gui.autocombo.FixedClassInfoComboModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.ComboBoxModel
,javax.swing.ListModel
public class FixedClassInfoComboModel extends AbstractFixedAutoComboModel<ClassInfo>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class jadex.commons.gui.autocombo.AbstractFixedAutoComboModel
allentries
-
Fields inherited from class jadex.commons.gui.autocombo.AbstractAutoComboModel
combo, entries, max, selected
-
-
Constructor Summary
Constructors Constructor Description FixedClassInfoComboModel(AutoCompleteCombo combo, int max, java.util.List<ClassInfo> allentries)
Create a new AbstractFixedAutoComboModel.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsVal(ClassInfo val)
ClassInfo
convertFromString(java.lang.String val)
java.lang.String
convertToString(ClassInfo val)
ClassInfo
getModelValue(java.lang.String val)
Get value from model that equals converted value.static java.util.List<ClassInfo>
sort(java.util.List<ClassInfo> entries)
-
Methods inherited from class jadex.commons.gui.autocombo.AbstractFixedAutoComboModel
copyEntries, doSetPattern
-
Methods inherited from class jadex.commons.gui.autocombo.AbstractAutoComboModel
addToTop, addValToTop, contains, fireChangeEvents, getCombo, getElementAt, getSelectedItem, getSize, setPattern, setSelectedItem, setSelectedItemQuiet
-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
-
-
-
Constructor Detail
-
FixedClassInfoComboModel
public FixedClassInfoComboModel(AutoCompleteCombo combo, int max, java.util.List<ClassInfo> allentries)
Create a new AbstractFixedAutoComboModel.
-
-
Method Detail
-
convertFromString
public ClassInfo convertFromString(java.lang.String val)
- Specified by:
convertFromString
in classAbstractAutoComboModel<ClassInfo>
-
convertToString
public java.lang.String convertToString(ClassInfo val)
- Specified by:
convertToString
in classAbstractAutoComboModel<ClassInfo>
-
containsVal
public boolean containsVal(ClassInfo val)
- Overrides:
containsVal
in classAbstractAutoComboModel<ClassInfo>
-
getModelValue
public ClassInfo getModelValue(java.lang.String val)
Description copied from class:AbstractAutoComboModel
Get value from model that equals converted value.- Overrides:
getModelValue
in classAbstractAutoComboModel<ClassInfo>
-
-