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
public class PeriodFieldPresentationProvider extends SynonymAwarePresentationProvider
IPresentationAdapterimplementation for Accumulation register period fields
-
-
Field Summary
Fields Modifier and Type Field Description static StringBM_PERSISTENT_ADAPTER_CONTEXT_KEY_PERIOD_FIELD_URIstatic StringBM_PERSISTENT_ADAPTER_ID-
Fields 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
Constructors Constructor Description PeriodFieldPresentationProvider(IBmModelManager bmModelManager)Constructs the instance of the provider.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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.StringgetPresentation(IBmObject target, String languageCode)Returns object presentation for given languageCode-
Methods inherited from class com._1c.g5.v8.dt.md.resource.presentation.SynonymAwarePresentationProvider
addAdapter, addAdapter, getBmModelManager, getFieldName, getFromSynonym
-
-
-
-
Field Detail
-
BM_PERSISTENT_ADAPTER_ID
public static final String BM_PERSISTENT_ADAPTER_ID
- See Also:
- Constant Field Values
-
BM_PERSISTENT_ADAPTER_CONTEXT_KEY_PERIOD_FIELD_URI
public static final String BM_PERSISTENT_ADAPTER_CONTEXT_KEY_PERIOD_FIELD_URI
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PeriodFieldPresentationProvider
public PeriodFieldPresentationProvider(IBmModelManager bmModelManager)
Constructs the instance of the provider.- Parameters:
bmModelManager- TheIBmModelManagerreference.
-
-
Method Detail
-
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
public String getPresentation(IBmObject target, String languageCode)
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
protected String getLocalizedSuffix(String suffix)
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
-
-