Interface IAllTemplatesViewerFacade
- All Known Implementing Classes:
AllTemplatesSection
public interface IAllTemplatesViewerFacade
A facade interface for control all templates viewer from all templates controller
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTemplates
(Collection<RestrictionTemplate> templates) Adds templates.void
Disables filter by subsystems.void
filterBySubsystems
(Collection<Subsystem> subsystems, boolean isIncludeNotIncludedInSubsystems) Enable filter by subsystems.Gets focused selection.Gets selection.void
Inits empty viewers or clears it.boolean
Gets editing mode: grouping or no.void
Removes deleted templates from viewervoid
Updates the grouping modevoid
updateTemplates
(Collection<RestrictionTemplate> templates) Updates given templates in the viewer.
-
Method Details
-
getSelection
List<RestrictionTemplate> getSelection()Gets selection. In grouping mode it is return template viewer selection- Returns:
- returns selected restriction templates. Cannot return
null
, if no templates selected returns empty list
-
getFocusedSelection
List<RestrictionTemplate> getFocusedSelection()Gets focused selection. In grouping mode if condition viewer is focused then return all templates from selected descriptor, otherwise returns template viewer selection- Returns:
- returns selected restriction templates on focused viewer regardless of the value on another
viewers. Cannot return
null
, if no templates selected returns empty list
-
updateGroupingMode
void updateGroupingMode()Updates the grouping mode -
isEditGrouping
boolean isEditGrouping()Gets editing mode: grouping or no. It is used by controller as the same condition checkbox default value- Returns:
- true if editing is grouping, false otherwise
-
initOrClear
void initOrClear()Inits empty viewers or clears it. It is used by controller in beginning at perform refresh -
addTemplates
Adds templates. No affects for already added templates- Parameters:
templates
- templates to add. Cannot benull
-
updateTemplates
Updates given templates in the viewer. Cannot benull
- Parameters:
templates
- restriction templates. Cannot benull
-
removeRefresh
void removeRefresh()Removes deleted templates from viewer -
filterBySubsystems
Enable filter by subsystems.- Parameters:
sybsystems
- subsystems. Cannot benull
-
disableFilterBySubsystems
void disableFilterBySubsystems()Disables filter by subsystems.
-