Package de.xima.fc.gui.bean.templates
Class TemplatesBean.TemplateBulkDeleteModel
- java.lang.Object
-
- de.xima.fc.gui.bean.templates.TemplatesBean.TemplateBulkDeleteModel
-
- Enclosing class:
- TemplatesBean
public static final class TemplatesBean.TemplateBulkDeleteModel extends Object
Model that holds the data for the bulk delete confirmation dialog, when the user selects multiple templates and wants to delete or reset them.System templates must be reset, all other templates created by the user must be deleted.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Textbaustein>getInUseTemplates()List<Textbaustein>getSystemTemplates()List<Textbaustein>getUserTemplates()booleanisDeleteUserTemplates()booleanisEmpty()Checks if this model contains no templates to delete or reset.booleanisMixed()Whether the selected templates are a mix of system and user templates, i.e. whether both system and user templates were selected.booleanisResetSystemTemplates()voidsetDeleteUserTemplates(boolean deleteUserTemplates)voidsetResetSystemTemplates(boolean resetSystemTemplates)
-
-
-
Method Detail
-
isMixed
public boolean isMixed()
Whether the selected templates are a mix of system and user templates, i.e. whether both system and user templates were selected.- Returns:
- Whether the selected templates are a mix of system and user templates.
-
isEmpty
public boolean isEmpty()
Checks if this model contains no templates to delete or reset.- Returns:
- Whether this model contains no templates to delete or reset.
-
getSystemTemplates
public List<Textbaustein> getSystemTemplates()
-
getUserTemplates
public List<Textbaustein> getUserTemplates()
-
getInUseTemplates
public List<Textbaustein> getInUseTemplates()
-
isResetSystemTemplates
public boolean isResetSystemTemplates()
-
isDeleteUserTemplates
public boolean isDeleteUserTemplates()
-
setResetSystemTemplates
public void setResetSystemTemplates(boolean resetSystemTemplates)
-
setDeleteUserTemplates
public void setDeleteUserTemplates(boolean deleteUserTemplates)
-
-