@OpenApiAll
public class CompartmentManager
extends java.lang.Object
Contains utility methods for dealing with compartment and its elements.
Property property = ...; // Property model element. ClassView classView = ...; // Class symbol. SessionManager manager = SessionManager.getInstance(); manager.createSession("Show Property."); CompartmentManager.showCompartmentElement(classView, CompartmentID.ATTRIBUTES, property); manager.closeSession();
Slot slot = ...; // Slot model element. ClassView classView = ...; // Class symbol. SessionManager manager = SessionManager.getInstance(); manager.createSession("Hide slot."); CompartmentManager.hideCompartmentElement(classView, CompartmentID.TAGGED_VALUES_ON_SHAPE, slot); manager.closeSession();
CompartmentID
,
SessionManager
,
PresentationElement
,
Element
Constructor and Description |
---|
CompartmentManager() |
Modifier and Type | Method and Description |
---|---|
static void |
hideCompartmentElement(PresentationElement view,
java.lang.String compartmentID,
Element element)
Hides an element in a compartment.
|
static void |
hideCompartmentElements(PresentationElement view,
java.lang.String compartmentID,
java.util.List<Element> elements)
Hides elements in a compartment.
|
static void |
showCompartmentElement(PresentationElement view,
java.lang.String compartmentID,
Element element)
Shows element in a compartment.
|
static void |
showCompartmentElements(PresentationElement view,
java.lang.String compartmentID,
java.util.List<Element> elements)
Shows elements in a compartment.
|
public static void hideCompartmentElement(@Nonnull PresentationElement view, @Nonnull java.lang.String compartmentID, @Nonnull Element element)
view
- symbol which contains the compartment.compartmentID
- id of the compartment.element
- element to hide.public static void hideCompartmentElements(@Nonnull PresentationElement view, @Nonnull java.lang.String compartmentID, @Nonnull java.util.List<Element> elements)
view
- symbol which contains the compartment.compartmentID
- id of the compartment.elements
- elements to hide.public static void showCompartmentElement(@Nonnull PresentationElement view, @Nonnull java.lang.String compartmentID, @Nonnull Element element)
view
- symbol which contains the compartment.compartmentID
- id of the compartment.element
- element to show.public static void showCompartmentElements(@Nonnull PresentationElement view, @Nonnull java.lang.String compartmentID, @Nonnull java.util.List<Element> elements)
view
- symbol which contains the compartment.compartmentID
- id of the compartment.elements
- elements to show.