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 SummaryFields 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.SynonymAwarePresentationProviderBM_PERSISTENT_ADAPTER_CONTEXT_KEY_SEPARATOR, BM_PERSISTENT_ADAPTER_CONTEXT_KEY_SUFFIX
 
- 
 - 
Constructor SummaryConstructors Constructor Description PeriodFieldPresentationProvider(IBmModelManager bmModelManager)Constructs the instance of the provider.
 - 
Method SummaryAll 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.SynonymAwarePresentationProvideraddAdapter, addAdapter, getBmModelManager, getFieldName, getFromSynonym
 
- 
 
- 
- 
- 
Field Detail- 
BM_PERSISTENT_ADAPTER_IDpublic static final String BM_PERSISTENT_ADAPTER_ID - See Also:
- Constant Field Values
 
 - 
BM_PERSISTENT_ADAPTER_CONTEXT_KEY_PERIOD_FIELD_URIpublic static final String BM_PERSISTENT_ADAPTER_CONTEXT_KEY_PERIOD_FIELD_URI - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
PeriodFieldPresentationProviderpublic PeriodFieldPresentationProvider(IBmModelManager bmModelManager) Constructs the instance of the provider.- Parameters:
- bmModelManager- The- IBmModelManagerreference.
 
 
- 
 - 
Method Detail- 
addAdapterpublic 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 (not- null)
- periodField- The period field (not- null)
- synonymSource- The object with synonym (not- null)
- separator- The separator (not- null)
- suffix- - the suffix (not- null)
 
 - 
getPresentationpublic String getPresentation(IBmObject target, String languageCode) Description copied from interface:IPresentationAdapterReturns object presentation for given languageCode- Specified by:
- getPresentationin interface- IPresentationAdapter
- Overrides:
- getPresentationin class- SynonymAwarePresentationProvider
- languageCode- - the language code (not- null)
- Returns:
- object presentation for given languageCode (never null)
 
 - 
getLocalizedSuffixprotected String getLocalizedSuffix(String suffix) Description copied from class:SynonymAwarePresentationProviderGets the UI-localized representation of the suffix.- Overrides:
- getLocalizedSuffixin class- SynonymAwarePresentationProvider
- Parameters:
- suffix- The suffix.
- Returns:
- The localized representation of the suffix, never null
 
 
- 
 
-