public class ToggleNodeVisibility
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HIDDEN |
protected static java.util.logging.Logger |
logger
a Logger
|
static java.lang.String |
PROPERTY_VISIBILITY |
| Constructor and Description |
|---|
ToggleNodeVisibility() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isInHiddenBlock(Template template,
int nodeID)
Returns true if the node is in an invisible block of the template.
|
static boolean |
isPossible(ChangeableInstance instance,
int nodeID,
boolean hidden)
Checks if it is valid to change the visibility of a node in the given instance.
|
static boolean |
isPossible(ChangeableInstance instance,
int nodeID,
boolean hidden,
CheckReport checkReport)
Checks if it is valid to change the visibility of a node in the given instance.
|
static boolean |
isPossible(Template template,
int nodeID,
boolean hidden)
Checks if it is valid to change the visibility of a node in the template.
|
static boolean |
isPossible(Template template,
int nodeID,
boolean hidden,
CheckReport checkReport)
/**
Checks if it is valid to change the visibility of a node in the template.
|
static void |
performOperation(ChangeableInstance instance,
int nodeID,
boolean hidden)
Sets the visibility state of the node in the given instance.
|
static void |
performOperation(ChangeableInstance instance,
int nodeID,
boolean hidden,
UpdateManager updateManager)
Sets the visibility state of the node in the given instance.
|
static void |
performOperation(ChangeableTemplate template,
int nodeID,
boolean hidden)
Sets the visibility state of the node in the given template.
|
static void |
performOperation(ChangeableTemplate template,
int nodeID,
boolean hidden,
UpdateManager updateManager)
Sets the visibility state of the node in the given template.
|
protected static void |
performOperation(ChangePrimitives processGraph,
Node node,
boolean hidden,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
public static final java.lang.String PROPERTY_VISIBILITY
public static final java.lang.String HIDDEN
protected static final java.util.logging.Logger logger
public static boolean isPossible(Template template, int nodeID, boolean hidden)
template - the template where the method is performed onnodeID - the ID of the nodehidden - the new value for the "hidden" flagpublic static boolean isPossible(Template template, int nodeID, boolean hidden, CheckReport checkReport)
template - the template where the method is performed onhidden - the new value for the "hidden" flagnodeID - the ID of the nodecheckReport - a checkReport object which can be filled with the reason why the
isPossible failed (i.e. in the case the method returns false), may
be nullpublic static boolean isPossible(ChangeableInstance instance, int nodeID, boolean hidden)
instance - the changeable instance where the method is performed onnodeID - the ID of the nodehidden - the new value for the "hidden" flagpublic static boolean isPossible(ChangeableInstance instance, int nodeID, boolean hidden, CheckReport checkReport)
instance - the changeable instance where the method is performed onnodeID - the ID of the nodehidden - the new value for the "hidden" flagcheckReport - a checkReport object which can be filled with the reason why the
isPossible failed (i.e. in the case the method returns false), may
be nullpublic static void performOperation(ChangeableTemplate template, int nodeID, boolean hidden)
hidden, hides the node.template - the related templatenodeID - the ID of the nodehidden - true to hide the node, false otherwise.public static void performOperation(ChangeableTemplate template, int nodeID, boolean hidden, UpdateManager updateManager)
hidden, hides the node.template - the related templatenodeID - the ID of the nodehidden - true to hide the node, false otherwise.updateManager - The UpdateManager where modifications are logged, may
be nullpublic static void performOperation(ChangeableInstance instance, int nodeID, boolean hidden)
hidden, hides the node.instance - the related changeable instancenodeID - the ID of the nodehidden - true to hide the node, false otherwise.public static void performOperation(ChangeableInstance instance, int nodeID, boolean hidden, UpdateManager updateManager)
hidden, hides the node.instance - the related changeable instancenodeID - the ID of the nodehidden - true to hide the node, false otherwise.updateManager - The UpdateManager where modifications are logged, may
be nullprotected static void performOperation(ChangePrimitives processGraph, Node node, boolean hidden, UpdateManager updateManager)
processGraph - an instance of type ChangeableTemplate or
ChangeableInstancenode - the node objecthidden - true to hide the node, false otherwise.updateManager - The UpdateManager where modifications are logged, may
be nullpublic static boolean isInHiddenBlock(Template template, int nodeID)
template - the template the check is performed onnodeID - the node to check