Class ViewSettingsHelper


  • public final class ViewSettingsHelper
    extends Object
    Helper methods for the view settings panel.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • unhideErrornousTasks

        public static void unhideErrornousTasks​(FlowchartModel flowchartModel,
                                                ViewSettingsModel viewSettingsModel,
                                                Set<UUID> erronousTasks,
                                                IWorkflowProvider provider)
        Resets the checkboxes for which tasks should be hidden, making all tasks visible again, and updates the UI state .
        Parameters:
        flowchartModel - Current flowchart model to modify.
        viewSettingsModel - Current view settings model to modify.
        erronousTasks - Current flowchart model.
        provider - Current flowchart provider.
      • expandErrornousNodes

        public static void expandErrornousNodes​(FlowchartModel flowchartModel,
                                                Set<NodeKey> erronousNodes,
                                                IWorkflowProvider provider)
        Expands nodes that are invalid, and updates the UI state .
        Parameters:
        flowchartModel - Current flowchart model to modify.
        erronousNodes - Nodes that are invalid.
        provider - Current flowchart provider.
      • checkUpdate

        public static void checkUpdate​(ViewSettingsModel viewSettingsModel,
                                       IWorkflowProvider provider)
        Checks whether the view properties form needs to be updated and updates it if necessary.
        Parameters:
        viewSettingsModel - Current view settings model.
        provider - Current provider.
      • toggleShowAllTasks

        public static void toggleShowAllTasks​(ViewSettingsModel viewSettingsModel,
                                              IWorkflowProvider provider)
        Toggles the show all tasks checkbox. Shows all tasks when all tasks are not shown, or hides all tasks otherwise.
        Parameters:
        viewSettingsModel - Current view settings model.
        provider - Current provider.