Class ViewSettingsHelper
- java.lang.Object
-
- de.xima.fc.workflow.designer.helper.ViewSettingsHelper
-
public final class ViewSettingsHelper extends Object
Helper methods for the view settings panel.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkUpdate(ViewSettingsModel viewSettingsModel, IWorkflowProvider provider)
Checks whether the view properties form needs to be updated and updates it if necessary.static void
expandErrornousNodes(FlowchartModel flowchartModel, Set<NodeKey> erronousNodes, IWorkflowProvider provider)
Expands nodes that are invalid, and updates the UI state .static boolean
isAllTasksShown(ViewSettingsModel viewSettingsModel, IWorkflowProvider provider)
static void
toggleShowAllTasks(ViewSettingsModel viewSettingsModel, IWorkflowProvider provider)
Toggles the show all tasks checkbox.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 .
-
-
-
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.
-
isAllTasksShown
public static boolean isAllTasksShown(ViewSettingsModel viewSettingsModel, IWorkflowProvider 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.
-
-