org.argouml.uml.ui
Interface TargetChangedListener
- All Known Implementing Classes:
- UMLComboBox2, UMLList2, UMLTextArea2, UMLTextField2, UMLRadioButtonPanel, UMLPlainTextDocument, UMLModelElementListModel2, UMLCheckBox2
- public interface TargetChangedListener
Classes implementing this interface are interested in changes of the
target. Target changes occur when the user or argouml itself (programmatically)
select another modelelement.
This listener is introduced to remove the very close dependency between
property panel and GUI elements. More specifically to support the need to
implement GUI elements as singletons which is not possible with the implementation
that uses UMLUserInterfaceComponent as the interface.
The methods are called at the moment via UMLChangeDispatch. In the future
an eventpump will come into place that does not call the components on a
property panel but that will call the interested instances (GUI elements)
directly.
- Since:
- Nov 8, 2002
Method Summary |
void |
targetChanged(java.lang.Object newTarget)
This method is called when a new target is selected, either by the
program or by the user. |
void |
targetReasserted(java.lang.Object newTarget)
This method is called when the navigation history is updated. |
targetChanged
public void targetChanged(java.lang.Object newTarget)
- This method is called when a new target is selected, either by the
program or by the user.
- Parameters:
newTarget
-
targetReasserted
public void targetReasserted(java.lang.Object newTarget)
- This method is called when the navigation history is updated.
- Parameters:
newTarget
-