Class DependencyMatrixActionRegistry
- java.lang.Object
-
- com.nomagic.magicdraw.dependencymatrix.configuration.DependencyMatrixActionRegistry
-
@OpenApiAll public class DependencyMatrixActionRegistry extends java.lang.ObjectDependency matrix action registry - manages all configurators, which configures all actions which are applicable for dependency matrix, including filter area panel, and row/column elements. Users may get instance and add additional configurators which add remove actions according to element and matrix element provided.
-
-
Constructor Summary
Constructors Constructor Description DependencyMatrixActionRegistry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCellContextAMConfigurator(DependencyMatrixCellAMConfigurator configurator)voidaddContextConfigurator(DependencyMatrixAMConfigurator configurator)Registers new configurator for dependency matrix action registryActionsManagerconfigureCellContextAMConfigurator(PersistenceManager settings, DependencyMatrixSelection selection)ActionsManagerconfigureContextActions(PersistenceManager settings, java.util.Collection<ElementNode> elementNodes, boolean forRow)Creates new Action manager and configures it with all registered row/column configuratorsstatic DependencyMatrixActionRegistrygetInstance()voidremoveCellContextAMConfigurator(DependencyMatrixCellAMConfigurator configurator)voidremoveContextConfigurator(DependencyMatrixAMConfigurator configurator)Removes context configurator from the registry
-
-
-
Method Detail
-
getInstance
public static DependencyMatrixActionRegistry getInstance()
-
addContextConfigurator
public void addContextConfigurator(DependencyMatrixAMConfigurator configurator)
Registers new configurator for dependency matrix action registry- Parameters:
configurator- configurator
-
removeContextConfigurator
public void removeContextConfigurator(DependencyMatrixAMConfigurator configurator)
Removes context configurator from the registry- Parameters:
configurator- configurator to remove
-
configureContextActions
public ActionsManager configureContextActions(PersistenceManager settings, java.util.Collection<ElementNode> elementNodes, boolean forRow)
Creates new Action manager and configures it with all registered row/column configurators- Parameters:
elementNodes- describes currently selected nodes and cells in matrixforRow- true if actions are configured for rows, false if for columnssettings- matrix settings- Returns:
- new configured
ActionsManagerinstance
-
addCellContextAMConfigurator
public void addCellContextAMConfigurator(DependencyMatrixCellAMConfigurator configurator)
-
removeCellContextAMConfigurator
public void removeCellContextAMConfigurator(DependencyMatrixCellAMConfigurator configurator)
-
configureCellContextAMConfigurator
public ActionsManager configureCellContextAMConfigurator(PersistenceManager settings, DependencyMatrixSelection selection)
-
-