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
IPresentationAdapter
implementation for Accumulation register period fields
-
-
Field Summary
Fields Modifier and Type Field Description static String
BM_PERSISTENT_ADAPTER_CONTEXT_KEY_PERIOD_FIELD_URI
static String
BM_PERSISTENT_ADAPTER_ID
-
Fields inherited from class com._1c.g5.v8.dt.md.resource.presentation.SynonymAwarePresentationProvider
BM_PERSISTENT_ADAPTER_CONTEXT_ENG_ID, BM_PERSISTENT_ADAPTER_CONTEXT_KEY_SEPARATOR, BM_PERSISTENT_ADAPTER_CONTEXT_KEY_SOURCE_URI, 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 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.String
getPresentation(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
- TheIBmModelManager
reference.
-
-
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: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
protected String getLocalizedSuffix(String suffix)
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
-
-