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 void
addAdapter
(IBmObject target, DbViewFieldDef periodField, org.eclipse.emf.ecore.EObject synonymSource, String separator, String suffix) Adds adapter data for the given context.protected String
getLocalizedSuffix
(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
- TheIBmModelManager
reference.
-
-
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:IPresentationAdapter
Returns object presentation for given languageCode- Specified by:
getPresentation
in interfaceIPresentationAdapter
- Overrides:
getPresentation
in classSynonymAwarePresentationProvider
languageCode
- - the language code (notnull
)- Returns:
- object presentation for given languageCode (never
null
)
-
getLocalizedSuffix
Description copied from class:SynonymAwarePresentationProvider
Gets the UI-localized representation of the suffix.- Overrides:
getLocalizedSuffix
in classSynonymAwarePresentationProvider
- Parameters:
suffix
- The suffix.- Returns:
- The localized representation of the suffix, never
null
-