Class FlowchartSelection<TElement>

    • Method Detail

      • getElementAs

        public <T> T getElementAs​(Class<T> type)
        Type Parameters:
        T - Type to return.
        Parameters:
        type - Type to return.
        Returns:
        The current selection cast to the given type, or null if there is no selection ir the select is not of the given type.
      • getElementKey

        @Nullable
        public ElementKey getElementKey()
        Returns:
        If a node is selected, the element key for the selected node. If a trigger is selected, the element key for the selected trigger. Otherwise, null.
      • getNode

        public NodeModel getNode()
        Returns:
        When a isNode() is selected, returns that node, or null otherwise.
      • getNodeKey

        @Nullable
        public NodeKey getNodeKey()
        Returns:
        The node key if a node is selected, or null otherwise.
      • getTrigger

        public TriggerModel getTrigger()
        Returns:
        When a isTrigger() is selected, returns that trigger, or null otherwise.
      • getTriggerKey

        @Nullable
        public TriggerKey getTriggerKey()
        Returns:
        The node key if a trigger is selected, or null otherwise.
      • getUuid

        @Nullable
        public UUID getUuid()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isEmpty

        public boolean isEmpty()
      • isHasSelection

        public boolean isHasSelection()
      • isNode

        public boolean isNode()
      • isTrigger

        public boolean isTrigger()