Class PeriodFieldPresentationProvider
java.lang.Object
com._1c.g5.v8.dt.md.resource.presentation.SynonymAwarePresentationProvider
com._1c.g5.v8.dt.md.resource.presentation.PeriodFieldPresentationProvider
- All Implemented Interfaces:
IPresentationAdapter
IPresentationAdapter implementation for Accumulation register period fields-
Field Summary
FieldsFields inherited from class com._1c.g5.v8.dt.md.resource.presentation.SynonymAwarePresentationProvider
BM_PERSISTENT_ADAPTER_CONTEXT_KEY_SEPARATOR, BM_PERSISTENT_ADAPTER_CONTEXT_KEY_SUFFIX -
Constructor Summary
ConstructorsConstructorDescriptionPeriodFieldPresentationProvider(IBmModelManager bmModelManager) Constructs the instance of the provider. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAdapter(IBmObject target, DbViewFieldDef periodField, org.eclipse.emf.ecore.EObject synonymSource, String separator, String suffix) Adds adapter data for the given context.protected StringgetLocalizedSuffix(String suffix) Gets the UI-localized representation of the suffix.getPresentation(IBmObject target, String languageCode) Returns object presentation for given languageCodeMethods inherited from class com._1c.g5.v8.dt.md.resource.presentation.SynonymAwarePresentationProvider
addAdapter, addAdapter, getBmModelManager, getFieldName, getFromSynonym
-
Field Details
-
BM_PERSISTENT_ADAPTER_ID
- See Also:
-
BM_PERSISTENT_ADAPTER_CONTEXT_KEY_PERIOD_FIELD_URI
- See Also:
-
-
Constructor Details
-
PeriodFieldPresentationProvider
Constructs the instance of the provider.- Parameters:
bmModelManager- TheIBmModelManagerreference.
-
-
Method Details
-
addAdapter
public static void addAdapter(IBmObject target, DbViewFieldDef periodField, org.eclipse.emf.ecore.EObject synonymSource, String separator, String suffix) Adds adapter data for the given context.- Parameters:
target- The target object to store context in (notnull)periodField- The period field (notnull)synonymSource- The object with synonym (notnull)separator- The separator (notnull)suffix- - the suffix (notnull)
-
getPresentation
Description copied from interface:IPresentationAdapterReturns object presentation for given languageCode- Specified by:
getPresentationin interfaceIPresentationAdapter- Overrides:
getPresentationin classSynonymAwarePresentationProviderlanguageCode- - the language code (notnull)- Returns:
- object presentation for given languageCode (never
null)
-
getLocalizedSuffix
Description copied from class:SynonymAwarePresentationProviderGets the UI-localized representation of the suffix.- Overrides:
getLocalizedSuffixin classSynonymAwarePresentationProvider- Parameters:
suffix- The suffix.- Returns:
- The localized representation of the suffix, never
null
-