org.argouml.uml.ui
Interface UMLUserInterfaceContainer

All Superinterfaces:
NavigationListener
All Known Implementing Classes:
PropPanel

public interface UMLUserInterfaceContainer
extends NavigationListener

Interface supported by any container of UML user interface components. This interface allows UML user interface components to determine the currently selected target and profile and allows the control to request a navigation. Implemented by PropPanel

See Also:
PropPanel

Method Summary
 void addNavigationListener(NavigationListener navListener)
          Registers a listener for navigation events.
 java.lang.String formatCollection(java.util.Iterator iter)
          Formats a collection of model elements.
 java.lang.String formatElement(ru.novosoft.uml.foundation.core.MModelElement element)
          Formats the specified model element.
 java.lang.String formatNamespace(ru.novosoft.uml.foundation.core.MNamespace ns)
          Formats the model element as a namespace.
 ru.novosoft.uml.foundation.core.MModelElement getModelElement()
          Returns the current target for the container if the target is a MModelElement, otherwise null.
 Profile getProfile()
          Returns the current profile, may not be null.
 java.lang.Object getTarget()
          Returns the current target for the container, may be null.
 java.lang.String localize(java.lang.String key)
          Returns a localized string corresponding to the key
 void removeNavigationListener(NavigationListener navListener)
          Removes a listener for navigation events.
 
Methods inherited from interface org.argouml.ui.NavigationListener
isNavigateBackEnabled, isNavigateForwardEnabled, navigateBack, navigateForward, navigateTo, open
 

Method Detail

getTarget

public java.lang.Object getTarget()
Returns the current target for the container, may be null.

getModelElement

public ru.novosoft.uml.foundation.core.MModelElement getModelElement()
Returns the current target for the container if the target is a MModelElement, otherwise null.

getProfile

public Profile getProfile()
Returns the current profile, may not be null.

formatElement

public java.lang.String formatElement(ru.novosoft.uml.foundation.core.MModelElement element)
Formats the specified model element. Typically, deferred to the profile.

formatCollection

public java.lang.String formatCollection(java.util.Iterator iter)
Formats a collection of model elements. Typically, deferred to the profile.

formatNamespace

public java.lang.String formatNamespace(ru.novosoft.uml.foundation.core.MNamespace ns)
Formats the model element as a namespace.

addNavigationListener

public void addNavigationListener(NavigationListener navListener)
Registers a listener for navigation events.

removeNavigationListener

public void removeNavigationListener(NavigationListener navListener)
Removes a listener for navigation events.

localize

public java.lang.String localize(java.lang.String key)
Returns a localized string corresponding to the key
Parameters:
key - key for resource bundle, typically english literal
Returns:
localized string for key based on system settings and configuration file


ArgoUML (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook