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 TypeMethodDescriptionvoidaddTemplates(Collection<RestrictionTemplate> templates) Adds templates.voidDisables filter by subsystems.voidfilterBySubsystems(Collection<Subsystem> subsystems, boolean isIncludeNotIncludedInSubsystems) Enable filter by subsystems.Gets focused selection.Gets selection.voidInits empty viewers or clears it.booleanGets editing mode: grouping or no.voidRemoves deleted templates from viewervoidUpdates the grouping modevoidupdateTemplates(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.
-