Package ch.tocco.nice2.model.form.impl
Class TemplateModelImpl
java.lang.Object
ch.tocco.nice2.model.base.spi.base.AbstractModel<TemplateModelReceiver>
ch.tocco.nice2.model.form.impl.TemplateModelImpl
- All Implemented Interfaces:
ReloadAction
,TemplateModel
@Component
public final class TemplateModelImpl
extends AbstractModel<TemplateModelReceiver>
implements TemplateModel
-
Field Summary
Fields inherited from class ch.tocco.nice2.model.base.spi.base.AbstractModel
log, modelProviders
-
Constructor Summary
ConstructorDescriptionTemplateModelImpl
(org.slf4j.Logger log, ReloadEventEmitter reloadEvent, DisplayValueFactory displayValueFactory, L10N l10n, ThreadHandlerManager threadHandlerManager) -
Method Summary
Modifier and TypeMethodDescriptiongetTemplate
(String name) void
void
onReload()
void
setValidators
(List<ComponentValidator> validator) Methods inherited from class ch.tocco.nice2.model.base.spi.base.AbstractModel
addListener, fireFinished, removeListener, setModelProviders
-
Constructor Details
-
TemplateModelImpl
public TemplateModelImpl(org.slf4j.Logger log, ReloadEventEmitter reloadEvent, DisplayValueFactory displayValueFactory, L10N l10n, ThreadHandlerManager threadHandlerManager)
-
-
Method Details
-
getTemplate
- Specified by:
getTemplate
in interfaceTemplateModel
-
getTemplates
- Specified by:
getTemplates
in interfaceTemplateModel
-
initializeService
@PostConstruct public void initializeService() -
setValidators
-
onReload
public void onReload()- Specified by:
onReload
in interfaceReloadAction
- Specified by:
onReload
in interfaceTemplateModel
- Specified by:
onReload
in classAbstractModel<TemplateModelReceiver>
-