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
 String formatCollection(Iterator iter)
          Formats a collection of model elements.
 String formatElement(Object element)
          Formats the specified model element.
 String formatNamespace(Object ns)
          Formats the model element as a namespace.
 Object getModelElement()
           
 Profile getProfile()
           
 Object getTarget()
           
 String localize(String key)
          Returns a localized string corresponding to the key.
 

Method Detail

getTarget

public Object getTarget()
Returns:
the current target for the container, may be null

getModelElement

public Object 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 String formatElement(Object element)
Formats the specified model element. Typically, deferred to the profile.

Parameters:
element - the given element
Returns:
the formatted string

formatCollection

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

Parameters:
iter - an iterator into the collection of modelelements
Returns:
the formatted string

formatNamespace

public String formatNamespace(Object ns)
Formats the model element as a namespace.

Parameters:
ns - the namespace
Returns:
the formatted string

localize

public String localize(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 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook