Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.Localization.AGenericProxyContentProvider< ContentType, LocalizatorType > Class Template Reference

Detailed Description

Proxy container that provides origin or localized content depending from its accessibility.

Template Parameters
ContentTypeType of the operating content.
LocalizatorTypeType of the handler used to handle the content localization process.
Inheritance diagram for Doloro.Localization.AGenericProxyContentProvider< ContentType, LocalizatorType >:
Collaboration diagram for Doloro.Localization.AGenericProxyContentProvider< ContentType, LocalizatorType >:

Public Member Functions

delegate void UpdateHandler (AProxyContentProvider info)
 Handle UI member update. More...
 
delegate LocalizatorType LocalizationHandler (LocalizatorType origin)
 Handler that should return localized text related to the origin one in current localization policy. More...
 
 AGenericProxyContentProvider (ContentType content)
 

Static Public Member Functions

static void SetLocalzationHandler (LocalizationHandler localizator)
 Defines localization handler for text content. More...
 

Protected Member Functions

virtual void OnUpdated ()
 Occurs when some GUI element has been changed.
 

Properties

abstract ContentType content [get, set]
 Content of the container.
 
static LocalizationHandler localizator [get]
 
static bool IsLocalizationExeptionsSuppressed = false [get, set]
 If true any internal logs caused by localization exceptions will be suppressed. More...
 

Events

UpdateHandler Updated
 Occurs when content has been updated.
 

Member Function Documentation

◆ LocalizationHandler()

delegate LocalizatorType Doloro.Localization.AGenericProxyContentProvider< ContentType, LocalizatorType >.LocalizationHandler ( LocalizatorType  origin)

Handler that should return localized text related to the origin one in current localization policy.

Parameters
originOrigin text or key code to localization system access.
Returns
Localized text in case if found. Origin text otherwise.

◆ SetLocalzationHandler()

static void Doloro.Localization.AGenericProxyContentProvider< ContentType, LocalizatorType >.SetLocalzationHandler ( LocalizationHandler  localizator)
static

Defines localization handler for text content.

Parameters
localizatorhandler that will be called to localize a content.

◆ UpdateHandler()

delegate void Doloro.Localization.AGenericProxyContentProvider< ContentType, LocalizatorType >.UpdateHandler ( AProxyContentProvider  info)

Handle UI member update.

Parameters
infoUpdated info.

Property Documentation

◆ IsLocalizationExeptionsSuppressed

bool Doloro.Localization.AProxyContentProvider.IsLocalizationExeptionsSuppressed = false
staticgetsetinherited

If true any internal logs caused by localization exceptions will be suppressed.

Not suppresses logs called by localization system itself.


The documentation for this class was generated from the following file: