Class FilterBySubsystemsSettings
java.lang.Object
com._1c.g5.v8.dt.md.ui.subsystems.FilterBySubsystemsSettings
- Direct Known Subclasses:
ComparisonFilterBySubsystemsSettings
The settings to pass to
FilterBySubsystemsDialog
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProject
(IDtProject project) Adds the given project to show its subsystems in the tree.clone()
void
drop()
Drops this settings.Returns the unmodifiable set of all projects of which are the subsystem are taken.getCheckedSubsystemIds
(IDtProject project) Returns the unmodifiable set of checked subsystem Bm ids in the subsystems tree for the given project.boolean
Determines whether the 'IncludeNotIncludedInSubsystems' node for the given project is checked in the subsystems tree.boolean
Returns the value of the 'includeObjectsFromParentSubsystems' flag.boolean
Returns the value of the 'includeObjectsFromSubordinateSubsystems' flag.boolean
isProjectChecked
(IDtProject project) Checks whether the given project is checked in the subsystems tree.setIncludeNotIncludedInSubsystems
(IDtProject project, boolean value) Set the 'IncludeNotIncludedInSubsystems' flag value.setIncludeObjectsFromParentSubsystems
(boolean value) Sets the value of the 'includeObjectsFromParentSubsystems' flag.setIncludeObjectsFromSubordinateSubsystems
(boolean value) Sets the value of the 'includeObjectsFromSubordinateSubsystems' flag.setProjectChecked
(IDtProject project, boolean state) Sets the checked state for the given project.setSubsystemChecked
(IDtProject project, Subsystem subsystem, boolean state) Sets the checked state for the given subsystem from the given project.
-
Constructor Details
-
FilterBySubsystemsSettings
public FilterBySubsystemsSettings()
-
-
Method Details
-
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
Checks whether the given project is checked in the subsystems tree.- Returns:
true
if the project is checked,false
if it is unchecked
-
getCheckedSubsystemIds
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 benull
- Returns:
- the checked subsystem Bm ids from the given project for which the node is checked, never
null
-
isIncludeNotIncludedInSubsystems
Determines whether the 'IncludeNotIncludedInSubsystems' node for the given project is checked in the subsystems tree.- Parameters:
project
- the project to test, cannot benull
- 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
Adds the given project to show its subsystems in the tree. By default the project will be checked.- Parameters:
project
- the given project, cannot benull
- Returns:
- the
FilterBySubsystemsSettings
, nevernull
-
setProjectChecked
Sets the checked state for the given project.- Parameters:
project
- the given project, cannot benull
state
-true
if the subsystem should be checked, andfalse
if it should be unchecked- Returns:
- the
FilterBySubsystemsSettings
, nevernull
-
setIncludeNotIncludedInSubsystems
public FilterBySubsystemsSettings setIncludeNotIncludedInSubsystems(IDtProject project, boolean value) Set the 'IncludeNotIncludedInSubsystems' flag value.- Parameters:
project
- the project to set flag for, cannot benull
value
- the 'IncludeNotIncludedInSubsystems' flag value to be set- Returns:
- the
FilterBySubsystemsSettings
, nevernull
-
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 benull
subsystem
- the given subsystem, cannot benull
state
-true
if the subsystem should be checked, andfalse
if it should be unchecked- Returns:
- the
FilterBySubsystemsSettings
, nevernull
-
setIncludeObjectsFromSubordinateSubsystems
Sets the value of the 'includeObjectsFromSubordinateSubsystems' flag.- Parameters:
value
- the 'includeObjectsFromSubordinateSubsystems' flag value- Returns:
- the
FilterBySubsystemsSettings
, nevernull
-
setIncludeObjectsFromParentSubsystems
Sets the value of the 'includeObjectsFromParentSubsystems' flag.- Parameters:
value
- the 'includeObjectsFromParentSubsystems' flag value- Returns:
- the
FilterBySubsystemsSettings
, nevernull
-
drop
public void drop()Drops this settings. -
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-