Dresden OCL Toolkit

tudresden.ocl.injection.reverseeng
Class TypeComboModel

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended bytudresden.ocl.injection.reverseeng.TypeComboModel
All Implemented Interfaces:
ComboBoxModel, ListModel, Serializable

public class TypeComboModel
extends AbstractListModel
implements ComboBoxModel

A ComboBoxModel for the type drop down boxes.

In addition to a selection of default Java Types, the list of the model can also contain a number of other types that seem to be appropriate for the map or collection.

Version:
0.1
Author:
sz9 (Steffen Zschaler)
See Also:
Serialized Form

Field Summary
private  List m_lsTypes
           
private  String m_sSelection
           
private static String s_sUnspecified
           
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
TypeComboModel()
          Creates new TypeComboModel.
 
Method Summary
protected  void fillInStandardTypes()
           
 Object getElementAt(int nIdx)
           
 Object getSelectedItem()
           
 int getSize()
           
 void setSelectedItem(Object oSelectedItem)
           
 
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
 

Field Detail

m_sSelection

private String m_sSelection

m_lsTypes

private List m_lsTypes

s_sUnspecified

private static String s_sUnspecified
Constructor Detail

TypeComboModel

public TypeComboModel()
Creates new TypeComboModel.

Method Detail

fillInStandardTypes

protected void fillInStandardTypes()

setSelectedItem

public void setSelectedItem(Object oSelectedItem)
Specified by:
setSelectedItem in interface ComboBoxModel

getSelectedItem

public Object getSelectedItem()
Specified by:
getSelectedItem in interface ComboBoxModel

getSize

public int getSize()
Specified by:
getSize in interface ListModel

getElementAt

public Object getElementAt(int nIdx)
Specified by:
getElementAt in interface ListModel

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.