org.argouml.uml.ui
Class UMLClassifierComboBoxModel

java.lang.Object
  extended byjavax.swing.AbstractListModel
      extended byorg.argouml.uml.ui.UMLComboBoxModel
          extended byorg.argouml.uml.ui.UMLClassifierComboBoxModel
All Implemented Interfaces:
java.awt.event.ActionListener, javax.swing.ComboBoxModel, java.util.EventListener, javax.swing.ListModel, ru.novosoft.uml.MElementListener, java.io.Serializable, UMLUserInterfaceComponent

Deprecated. as of ArgoUml 0.13.5 (10-may-2003), TODO: What is this replaced by? This class is part of the 'old'(pre 0.13.*) implementation of proppanels that used reflection a lot.

public class UMLClassifierComboBoxModel
extends UMLComboBoxModel

See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Logger cat
          Deprecated. by Linus Tolke as of 0.15.4. Use your own logger in your class. This will be removed.
private static org.apache.log4j.Logger LOG
          Deprecated.  
 
Fields inherited from class org.argouml.uml.ui.UMLComboBoxModel
_addElementsFromProfileModel, _allowVoid, _container, _filter, _getMethod, _property, _selectedItem, _set, _setMethod
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
UMLClassifierComboBoxModel(UMLUserInterfaceContainer container, java.lang.String filter, java.lang.String property, java.lang.String getMethod, java.lang.String setMethod, boolean allowVoid, java.lang.Class elementType, boolean addElementsFromProfileModel)
          Deprecated. This method creates a UMLComboBoxModel
 
Method Summary
private  void makeSelection(java.lang.Object model, java.lang.Object selClass)
          Deprecated.  
 void propertySet(ru.novosoft.uml.MElementEvent e)
          Deprecated. Invoked if a listened to NSUML object has an entry without multiplicity set (or an entry with multiplicity completely reset.
 void roleAdded(ru.novosoft.uml.MElementEvent event)
          Deprecated. Invoked if a listened to NSUML element has an entry added to a component with multiplicity.
 void targetChanged()
          Deprecated. Invoked when the target associated with the container is changed.
 
Methods inherited from class org.argouml.uml.ui.UMLComboBoxModel
actionPerformed, addElementsFromProfileModel, allowVoid, collectElements, deleteElement, getContainer, getElementAt, getGetMethod, getSelectedItem, getSet, getSetMethod, getSize, listRoleItemSet, recovered, removed, roleRemoved, setSelectedItem, targetReasserted, updateElement
 
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

cat

protected static org.apache.log4j.Logger cat
Deprecated. by Linus Tolke as of 0.15.4. Use your own logger in your class. This will be removed.


LOG

private static final org.apache.log4j.Logger LOG
Deprecated. 
Constructor Detail

UMLClassifierComboBoxModel

public UMLClassifierComboBoxModel(UMLUserInterfaceContainer container,
                                  java.lang.String filter,
                                  java.lang.String property,
                                  java.lang.String getMethod,
                                  java.lang.String setMethod,
                                  boolean allowVoid,
                                  java.lang.Class elementType,
                                  boolean addElementsFromProfileModel)
Deprecated. 
This method creates a UMLComboBoxModel

Parameters:
container - container that provides access to target, formatting etc
filter - name of method on container that takes a MModelElement true if element should be in list, may be null
property - name of event that would indicate that the value has changed
getMethod - name of method on container to get value
setMethod - name of method on container to set value
allowVoid - allows an entry in the list
elementType - base type for all elements
Method Detail

makeSelection

private void makeSelection(java.lang.Object model,
                           java.lang.Object selClass)
Deprecated. 

roleAdded

public void roleAdded(ru.novosoft.uml.MElementEvent event)
Deprecated. 
Description copied from class: UMLComboBoxModel
Invoked if a listened to NSUML element has an entry added to a component with multiplicity.

We are only interested in the "ownedElement" event name, which indicates an object has been added to a namespace.

Provided for compliance with the MElementListener interface.

Specified by:
roleAdded in interface ru.novosoft.uml.MElementListener
Overrides:
roleAdded in class UMLComboBoxModel
Parameters:
event - The event which triggered this method.

targetChanged

public void targetChanged()
Deprecated. 
Description copied from class: UMLComboBoxModel
Invoked when the target associated with the container is changed.

Recompute the membership of the drop down and its selected component.

Provided to comply with the UMLUserInterfaceComponent interface.

Specified by:
targetChanged in interface UMLUserInterfaceComponent
Overrides:
targetChanged in class UMLComboBoxModel

propertySet

public void propertySet(ru.novosoft.uml.MElementEvent e)
Deprecated. 
Description copied from class: UMLComboBoxModel
Invoked if a listened to NSUML object has an entry without multiplicity set (or an entry with multiplicity completely reset.

We are interested in changes to "name" fields, since they may appear in our set.

Warning. This only works if setNameEventListener is enabled to listen for name changes on NSUML elements other than the target.

Specified by:
propertySet in interface ru.novosoft.uml.MElementListener
Overrides:
propertySet in class UMLComboBoxModel
Parameters:
e - The event which triggered this method.
See Also:
MElementListener.propertySet(MElementEvent)


ArgoUML © 1996-2004 (20040316)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook