ControllerDecorator

controller/ControllerDecorator~ ControllerDecorator

Decorator for page controllers. The decorator manages references to the meta attributes manager and other utilities so these can be easily provided to the decorated page controller when needed.

Constructor

new ControllerDecorator(controller, metaManager, router, dictionary, settings)

Source:
Initializes the controller decorator.
Parameters:
Name Type Description
controller Controller The controller being decorated.
metaManager MetaManager The meta page attributes manager.
router Router The application router.
dictionary Dictionary Localization phrases dictionary.
settings Object.<string, *> Application settings for the current application environment.

Members

_controller :Controller

Source:
The controller being decorated.
Type:
  • Controller

_dictionary :Dictionary

Source:
Localization phrases dictionary.
Type:
  • Dictionary

_metaManager :MetaManager

Source:
The meta page attributes manager.
Type:
  • MetaManager

_router :Router

Source:
The application router.
Type:
  • Router

_settings :Object.<string, *>

Source:
Application settings for the current application environment.
Type:
  • Object.<string, *>

Methods

activate()

Source:

addExtension()

Source:

deactivate()

Source:

destroy()

Source:

getExtensions()

Source:

getHttpStatus()

Source:

getMetaManager() → {MetaManager}

Source:
Returns the meta attributes manager configured by the decorated controller.
Returns:
The Meta attributes manager configured by the decorated controller.
Type
MetaManager

getRouteParams()

Source:

getState()

Source:

init()

Source:

load()

Source:

setMetaParams()

Source:

setPageStateManager()

Source:

setReactiveView()

Source:

setRouteParams()

Source:

setState()

Source:

update()

Source: