de.uni_paderborn.fujaba.fsa.swing
Class UMLTypeListComboBoxModel

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended byde.uni_paderborn.fujaba.fsa.swing.UMLTypeListComboBoxModel
All Implemented Interfaces:
javax.swing.ComboBoxModel, java.util.EventListener, javax.swing.ListModel, java.beans.PropertyChangeListener, java.io.Serializable

public class UMLTypeListComboBoxModel
extends javax.swing.AbstractListModel
implements javax.swing.ComboBoxModel, java.beans.PropertyChangeListener

comboBoxModel for UMLTypeList

Version:
$Revision: 1.14 $
Author:
$Author: lowende $
See Also:
Serialized Form

Field Summary
private  java.lang.Object selectedItem
          No comment provided by developer, please add a comment to improve documentation.
private static UMLTypeListComboBoxModel singleton
          No comment provided by developer, please add a comment to improve documentation.
private  UMLProject theProject
          Remember the project, this model is used for.
private  java.util.Vector types
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
private UMLTypeListComboBoxModel()
          Private default Constructor, use UMLTypeListComboBoxModel.get() to get the singleton instance.
 
Method Summary
private  void addAll(UMLTypeList umlTypeList)
          Access method for a To N-association.
static UMLTypeListComboBoxModel get()
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.Object getElementAt(int index)
          Get the elementAt attribute of the UMLTypeListComboBoxModel object
 java.lang.Object getSelectedItem()
          Get the selectedItem attribute of the UMLTypeListComboBoxModel object
 int getSize()
          Get the size attribute of the UMLTypeListComboBoxModel object
 void propertyChange(java.beans.PropertyChangeEvent event)
          No comment provided by developer, please add a comment to improve documentation.
private  void remove(FType type)
          No comment provided by developer, please add a comment to improve documentation.
private  void removeAll()
          No comment provided by developer, please add a comment to improve documentation.
 void setSelectedItem(java.lang.Object value)
          Sets the selectedItem attribute of the UMLTypeListComboBoxModel object
private  void sortIn(UMLType type)
          No comment provided by developer, please add a comment to improve documentation.
 java.lang.String toString()
           
 
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, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Field Detail

singleton

private static UMLTypeListComboBoxModel singleton
No comment provided by developer, please add a comment to improve documentation.


theProject

private UMLProject theProject
Remember the project, this model is used for. If the project will be removed, this attribute is set to null and a new singleton instance is created.


types

private java.util.Vector types
No comment provided by developer, please add a comment to improve documentation.


selectedItem

private java.lang.Object selectedItem
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

UMLTypeListComboBoxModel

private UMLTypeListComboBoxModel()
Private default Constructor, use UMLTypeListComboBoxModel.get() to get the singleton instance.

Method Detail

get

public static UMLTypeListComboBoxModel get()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

getSelectedItem

public java.lang.Object getSelectedItem()
Get the selectedItem attribute of the UMLTypeListComboBoxModel object

Specified by:
getSelectedItem in interface javax.swing.ComboBoxModel
Returns:
The selectedItem value

setSelectedItem

public void setSelectedItem(java.lang.Object value)
Sets the selectedItem attribute of the UMLTypeListComboBoxModel object

Specified by:
setSelectedItem in interface javax.swing.ComboBoxModel
Parameters:
value - The new selectedItem value

getElementAt

public java.lang.Object getElementAt(int index)
Get the elementAt attribute of the UMLTypeListComboBoxModel object

Specified by:
getElementAt in interface javax.swing.ListModel
Parameters:
index - No description provided
Returns:
The elementAt value

getSize

public int getSize()
Get the size attribute of the UMLTypeListComboBoxModel object

Specified by:
getSize in interface javax.swing.ListModel
Returns:
The size value

toString

public java.lang.String toString()
Returns:
short string representation of current object

sortIn

private void sortIn(UMLType type)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
type - No description provided

addAll

private void addAll(UMLTypeList umlTypeList)
Access method for a To N-association.

Parameters:
umlTypeList - The object added.

remove

private void remove(FType type)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
type - No description provided

removeAll

private void removeAll()
No comment provided by developer, please add a comment to improve documentation.


propertyChange

public void propertyChange(java.beans.PropertyChangeEvent event)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
event - No description provided