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