Class FilterBySubsystemsSettings

java.lang.Object
com._1c.g5.v8.dt.md.ui.subsystems.FilterBySubsystemsSettings
Direct Known Subclasses:
ComparisonFilterBySubsystemsSettings

public class FilterBySubsystemsSettings extends Object
The settings to pass to FilterBySubsystemsDialog.
  • Constructor Details

    • FilterBySubsystemsSettings

      public FilterBySubsystemsSettings()
  • Method Details

    • getAllProjects

      public Set<IDtProject> getAllProjects()
      Returns the unmodifiable set of all projects of which are the subsystem are taken.
      Returns:
      the unmodifiable set of all projects, never null
    • isProjectChecked

      public boolean isProjectChecked(IDtProject project)
      Checks whether the given project is checked in the subsystems tree.
      Returns:
      true if the project is checked, false if it is unchecked
    • getCheckedSubsystemIds

      public Set<Long> getCheckedSubsystemIds(IDtProject project)
      Returns the unmodifiable set of checked subsystem Bm ids in the subsystems tree for the given project.
      Parameters:
      project - the project to get checked subsystems for, cannot be null
      Returns:
      the checked subsystem Bm ids from the given project for which the node is checked, never null
    • isIncludeNotIncludedInSubsystems

      public boolean isIncludeNotIncludedInSubsystems(IDtProject project)
      Determines whether the 'IncludeNotIncludedInSubsystems' node for the given project is checked in the subsystems tree.
      Parameters:
      project - the project to test, cannot be null
      Returns:
      true if the 'IncludeNotIncludedInSubsystems' node for the given project as checked, false otherwise
    • isIncludeObjectsFromSubordinateSubsystems

      public boolean isIncludeObjectsFromSubordinateSubsystems()
      Returns the value of the 'includeObjectsFromSubordinateSubsystems' flag.
      Returns:
      the value of the 'includeObjectsFromSubordinateSubsystems' flag
    • isIncludeObjectsFromParentSubsystems

      public boolean isIncludeObjectsFromParentSubsystems()
      Returns the value of the 'includeObjectsFromParentSubsystems' flag.
      Returns:
      the value of the 'includeObjectsFromParentSubsystems' flag
    • addProject

      public FilterBySubsystemsSettings addProject(IDtProject project)
      Adds the given project to show its subsystems in the tree. By default the project will be checked.
      Parameters:
      project - the given project, cannot be null
      Returns:
      the FilterBySubsystemsSettings, never null
    • setProjectChecked

      public FilterBySubsystemsSettings setProjectChecked(IDtProject project, boolean state)
      Sets the checked state for the given project.
      Parameters:
      project - the given project, cannot be null
      state - true if the subsystem should be checked, and false if it should be unchecked
      Returns:
      the FilterBySubsystemsSettings, never null
    • setIncludeNotIncludedInSubsystems

      public FilterBySubsystemsSettings setIncludeNotIncludedInSubsystems(IDtProject project, boolean value)
      Set the 'IncludeNotIncludedInSubsystems' flag value.
      Parameters:
      project - the project to set flag for, cannot be null
      value - the 'IncludeNotIncludedInSubsystems' flag value to be set
      Returns:
      the FilterBySubsystemsSettings, never null
    • setSubsystemChecked

      public FilterBySubsystemsSettings setSubsystemChecked(IDtProject project, Subsystem subsystem, boolean state)
      Sets the checked state for the given subsystem from the given project.
      Parameters:
      project - the subsytem stored project, cannot be null
      subsystem - the given subsystem, cannot be null
      state - true if the subsystem should be checked, and false if it should be unchecked
      Returns:
      the FilterBySubsystemsSettings, never null
    • setIncludeObjectsFromSubordinateSubsystems

      public FilterBySubsystemsSettings setIncludeObjectsFromSubordinateSubsystems(boolean value)
      Sets the value of the 'includeObjectsFromSubordinateSubsystems' flag.
      Parameters:
      value - the 'includeObjectsFromSubordinateSubsystems' flag value
      Returns:
      the FilterBySubsystemsSettings, never null
    • setIncludeObjectsFromParentSubsystems

      public FilterBySubsystemsSettings setIncludeObjectsFromParentSubsystems(boolean value)
      Sets the value of the 'includeObjectsFromParentSubsystems' flag.
      Parameters:
      value - the 'includeObjectsFromParentSubsystems' flag value
      Returns:
      the FilterBySubsystemsSettings, never null
    • drop

      public void drop()
      Drops this settings.
    • clone

      public Object clone() throws CloneNotSupportedException
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException