Class SimplePresentationProvider
- java.lang.Object
-
- com._1c.g5.v8.dt.md.resource.presentation.SimplePresentationProvider
-
- All Implemented Interfaces:
IPresentationAdapter
public class SimplePresentationProvider extends Object implements IPresentationAdapter
IPresentationAdapter
implementation which shows presentation according to application locale.
-
-
Field Summary
Fields Modifier and Type Field Description static String
BM_PERSISTENT_ADAPTER_ID
-
Constructor Summary
Constructors Constructor Description SimplePresentationProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addAdapter(IBmObject target)
Adds adapter data for the given context.String
getPresentation(IBmObject target, String languageCode)
Returns object presentation for given languageCode
-
-
-
Field Detail
-
BM_PERSISTENT_ADAPTER_ID
public static final String BM_PERSISTENT_ADAPTER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
addAdapter
public static void addAdapter(IBmObject target)
Adds adapter data for the given context.- Parameters:
target
- The target object to store context in (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
languageCode
- - the language code (notnull
)- Returns:
- object presentation for given languageCode (never
null
)
-
-