org.openbp.cockpit.modeler.paramvaluewizard
Class ParamVisibilityHelper

java.lang.Object
  extended by org.openbp.cockpit.modeler.paramvaluewizard.ParamVisibilityHelper

public class ParamVisibilityHelper
extends java.lang.Object

Helper class that adds a parameter visibility sub menu to a popup menu of a node socket or a parameter.

Author:
Heiko Erhardt

Method Summary
static void addParamMenu(InteractionEvent ie, Modeler modeler, SocketFigure socketFigure)
          Adds the param sub menu to the popup menu refering to the given node socket.
static boolean canHideParam(NodeParam param)
          Determines if this parameter can be hidden.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addParamMenu

public static void addParamMenu(InteractionEvent ie,
                                Modeler modeler,
                                SocketFigure socketFigure)
Adds the param sub menu to the popup menu refering to the given node socket.

Parameters:
ie - Interaction event that queries plugins for popup menus
modeler - Modeler displaying the process that contains the socket
socketFigure - The referred socket figure

canHideParam

public static boolean canHideParam(NodeParam param)
Determines if this parameter can be hidden.

Parameters:
param - Parameter to check
Returns:
true: The parameter is not connected.
false: The parameter is connected to a data link or has an expression assigned.


Copyright © 2011. All Rights Reserved.