org.argouml.ui
Interface ContextActionFactory


public interface ContextActionFactory

Interface for a factory of context popups, which are created based on a given object. The factory creates an additional popup on the context menu for selected elements


Method Summary
 java.util.List createContextPopupActions(java.lang.Object element)
          This method shall test the type of the given object, and if recognised, create a new Vector of Action derived classes and null (for the separators).
 

Method Detail

createContextPopupActions

java.util.List createContextPopupActions(java.lang.Object element)
This method shall test the type of the given object, and if recognised, create a new Vector of Action derived classes and null (for the separators).

If the object type is not something this factory knows how to deal with, then null shall be returned (do NOT throw an exception).

If the given object falls within a class of objects that this factory is the exclusive factory for, then it is allowed to throw an exception if the object is invalid/unknown. However, be careful not to break the possibility to extend ArgoUML.

Parameters:
element - the object to create a new context popup for
Returns:
the new menu structure or null


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook