org.argouml.uml.ui
Interface UMLUserInterfaceContainer

All Known Implementing Classes:
PropPanel

public interface UMLUserInterfaceContainer

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
 java.lang.String formatCollection(java.util.Iterator iter)
          Formats a collection of model elements.
 java.lang.String formatElement(MModelElement element)
          Formats the specified model element.
 java.lang.String formatNamespace(MNamespace ns)
          Formats the model element as a namespace.
 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.
 

Method Detail

getTarget

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


getModelElement

public 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(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(MNamespace ns)
Formats the model element as a namespace.


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 © 1996-2004 (20040306)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook