Class ConfigurationModel
- java.lang.Object
-
- jadex.bpmn.editor.gui.propertypanels.ConfigurationModel
-
- All Implemented Interfaces:
javax.swing.ComboBoxModel
,javax.swing.ListModel
public class ConfigurationModel extends java.lang.Object implements javax.swing.ComboBoxModel
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<javax.swing.event.ListDataListener>
listeners
Listeners.protected IModelInfo
modelinfo
The model info.protected int
selection
Selection.
-
Constructor Summary
Constructors Constructor Description ConfigurationModel(IModelInfo modelinfo)
Creates the model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListDataListener(javax.swing.event.ListDataListener l)
void
fireModelChange()
java.lang.String
getElementAt(int index)
java.lang.Object
getSelectedItem()
int
getSize()
void
removeListDataListener(javax.swing.event.ListDataListener l)
void
setSelectedItem(java.lang.Object anItem)
-
-
-
Field Detail
-
listeners
protected java.util.List<javax.swing.event.ListDataListener> listeners
Listeners.
-
modelinfo
protected IModelInfo modelinfo
The model info.
-
selection
protected int selection
Selection.
-
-
Constructor Detail
-
ConfigurationModel
public ConfigurationModel(IModelInfo modelinfo)
Creates the model.- Parameters:
modelinfo
- The model info.
-
-
Method Detail
-
getSize
public int getSize()
- Specified by:
getSize
in interfacejavax.swing.ListModel
-
getElementAt
public java.lang.String getElementAt(int index)
- Specified by:
getElementAt
in interfacejavax.swing.ListModel
-
addListDataListener
public void addListDataListener(javax.swing.event.ListDataListener l)
- Specified by:
addListDataListener
in interfacejavax.swing.ListModel
-
removeListDataListener
public void removeListDataListener(javax.swing.event.ListDataListener l)
- Specified by:
removeListDataListener
in interfacejavax.swing.ListModel
-
setSelectedItem
public void setSelectedItem(java.lang.Object anItem)
- Specified by:
setSelectedItem
in interfacejavax.swing.ComboBoxModel
-
getSelectedItem
public java.lang.Object getSelectedItem()
- Specified by:
getSelectedItem
in interfacejavax.swing.ComboBoxModel
-
fireModelChange
public void fireModelChange()
-
-