Class FilterBySubsystemsSettings
- java.lang.Object
-
- com._1c.g5.v8.dt.md.ui.subsystems.FilterBySubsystemsSettings
-
public class FilterBySubsystemsSettings extends Object
The settings to pass toFilterBySubsystemsDialog
.
-
-
Constructor Summary
Constructors Constructor Description FilterBySubsystemsSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FilterBySubsystemsSettings
addProject(IDtProject project)
Adds the given project to show its subsystems in the tree.Object
clone()
void
drop()
Drops this settings.Set<IDtProject>
getAllProjects()
Returns the unmodifiable set of all projects of which are the subsystem are taken.Set<Long>
getCheckedSubsystemIds(IDtProject project)
Returns the unmodifiable set of checked subsystem Bm ids in the subsystems tree for the given project.boolean
isIncludeNotIncludedInSubsystems(IDtProject project)
Determines whether the 'IncludeNotIncludedInSubsystems' node for the given project is checked in the subsystems tree.boolean
isIncludeObjectsFromParentSubsystems()
Returns the value of the 'includeObjectsFromParentSubsystems' flag.boolean
isIncludeObjectsFromSubordinateSubsystems()
Returns the value of the 'includeObjectsFromSubordinateSubsystems' flag.boolean
isProjectChecked(IDtProject project)
Checks whether the given project is checked in the subsystems tree.FilterBySubsystemsSettings
setIncludeNotIncludedInSubsystems(IDtProject project, boolean value)
Set the 'IncludeNotIncludedInSubsystems' flag value.FilterBySubsystemsSettings
setIncludeObjectsFromParentSubsystems(boolean value)
Sets the value of the 'includeObjectsFromParentSubsystems' flag.FilterBySubsystemsSettings
setIncludeObjectsFromSubordinateSubsystems(boolean value)
Sets the value of the 'includeObjectsFromSubordinateSubsystems' flag.FilterBySubsystemsSettings
setProjectChecked(IDtProject project, boolean state)
Sets the checked state for the given project.FilterBySubsystemsSettings
setSubsystemChecked(IDtProject project, Subsystem subsystem, boolean state)
Sets the checked state for the given subsystem from the given project.
-
-
-
Method Detail
-
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 benull
- 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 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
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 benull
- Returns:
- the
FilterBySubsystemsSettings
, nevernull
-
setProjectChecked
public FilterBySubsystemsSettings setProjectChecked(IDtProject project, boolean state)
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
public FilterBySubsystemsSettings setIncludeObjectsFromSubordinateSubsystems(boolean value)
Sets the value of the 'includeObjectsFromSubordinateSubsystems' flag.- Parameters:
value
- the 'includeObjectsFromSubordinateSubsystems' flag value- Returns:
- the
FilterBySubsystemsSettings
, nevernull
-
setIncludeObjectsFromParentSubsystems
public FilterBySubsystemsSettings setIncludeObjectsFromParentSubsystems(boolean value)
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
public Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
-