de.uni_paderborn.fujaba.fsa.swing
Class RepresentationComboBoxModel

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended byjavax.swing.DefaultComboBoxModel
          extended byde.uni_paderborn.fujaba.fsa.swing.RepresentationComboBoxModel
All Implemented Interfaces:
javax.swing.ComboBoxModel, javax.swing.ListModel, javax.swing.MutableComboBoxModel, java.io.Serializable

public class RepresentationComboBoxModel
extends javax.swing.DefaultComboBoxModel

No comment provided by developer, please add a comment to improve documentation.

Version:
$Revision: 1.10 $
Author:
$Author: schneider $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
RepresentationComboBoxModel()
           
 
Method Summary
 void addToRepresentations(java.lang.Object data, java.lang.Object representation)
          sets the representation that is used instead of the given Object itself
 java.lang.Object getElementAt(int index)
          Get the elementAt attribute of the RepresentationComboBoxModel object
 java.lang.Object getFromRepresentations(java.lang.Object data)
           
 int getIndexOf(java.lang.Object anObject)
          Get the indexOf attribute of the RepresentationComboBoxModel object
 java.lang.Object getSelectedItem()
          Get the selectedItem attribute of the RepresentationComboBoxModel object
 boolean hasInRepresentations(java.lang.Object data)
           
 void removeAllFromRepresentations()
          No comment provided by developer, please add a comment to improve documentation.
 void removeFromRepresentations(java.lang.Object data)
          No comment provided by developer, please add a comment to improve documentation.
 void removeYou()
          No comment provided by developer, please add a comment to improve documentation.
 void setSelectedItem(java.lang.Object anObject)
          Sets the selectedItem attribute of the RepresentationComboBoxModel object
 
Methods inherited from class javax.swing.DefaultComboBoxModel
addElement, getSize, insertElementAt, removeAllElements, removeElement, removeElementAt
 
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
 

Constructor Detail

RepresentationComboBoxModel

public RepresentationComboBoxModel()
Method Detail

addToRepresentations

public void addToRepresentations(java.lang.Object data,
                                 java.lang.Object representation)
sets the representation that is used instead of the given Object itself

Parameters:
data - The object added.
representation - The object added.
See Also:
getFromRepresentations(java.lang.Object)

getFromRepresentations

public java.lang.Object getFromRepresentations(java.lang.Object data)
Parameters:
data - No description provided
Returns:
the Object that represents the given Object or the Object itself if no representation is found

hasInRepresentations

public boolean hasInRepresentations(java.lang.Object data)
Parameters:
data - No description provided
Returns:
true if a representation is bound to the given Object
See Also:
getFromRepresentations(java.lang.Object)

removeFromRepresentations

public void removeFromRepresentations(java.lang.Object data)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
data - No description provided

removeAllFromRepresentations

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


removeYou

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


getElementAt

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

Parameters:
index - No description provided
Returns:
The elementAt value

getIndexOf

public int getIndexOf(java.lang.Object anObject)
Get the indexOf attribute of the RepresentationComboBoxModel object

Parameters:
anObject - No description provided
Returns:
The indexOf value

getSelectedItem

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

Returns:
The selectedItem value

setSelectedItem

public void setSelectedItem(java.lang.Object anObject)
Sets the selectedItem attribute of the RepresentationComboBoxModel object

Parameters:
anObject - The new selectedItem value