Class FormNativeTransformatorLoader
- java.lang.Object
-
- com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoader
-
- com._1c.g5.v8.dt.formnative.common.FormNativeTransformatorLoader
-
public class FormNativeTransformatorLoader extends AbstractScomConnectionLoader
Special provider for getting content of xml presentation of special form model with transformator phase results and concreteVersion
.
Important: Client should calldispose()
for release special data at the end operation for getting content of xml presentation of special form model with transformator phase results
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoader
LD_LIBRARY_PATH, version
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FormNativeTransformatorLoader(String id, Version version, LayoutSerializer hippoLayoutXmlSerializer, IProcessManager processManager, IResolvableRuntimeInstallationManager resolvableRuntimeInstallationManager)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Releases special data for getting xml presentation of special form model with transformator phase results
You should call this method if you have no plans to soon get xml presentation of special form model with transformator phase results or calling other methods from this class.org.eclipse.xtext.util.Pair<HorStrategy,HippoLayElementBase>
getFormTransformationResult(HippoLayElementBase layElement, LFTargetPlatform targetPlatform, ClientInterfaceVariant interfaceVariant, int realDPI, ClientOSInfo osInfo, CompatibilityMode compatibilityMode, int maxWidth, int maxHeight, HorStrategy startHorStrategy, int actualHippoRatio, int actualScale, int dpi, MobilePreviewInfo previewInfo, boolean rotated, Map<String,Boolean> groupCollapsed, Map<String,Boolean> showPopUpGroup, ILayoutImageProcessor imageProcessor, String languageCode)
Gets xml presentation of special form model with transformator phase results.String
getFormTransformationResultContent(String hippoLayElementModel, LFTargetPlatform targetPlatform, ClientInterfaceVariant interfaceVariant, int realDPI, ClientOSInfo osInfo, CompatibilityMode compatibilityMode, int maxWidth, int maxHeight, HorStrategy startHorStrategy, int actualHippoRatio, int actualScale, MobilePreviewInfo previewInfo, boolean rotated, Map<String,Boolean> groupCollapsed, Map<String,Boolean> showPopUpGroup, FormPictureCollection pictureCollection)
Gets xml presentation of special form model with transformator phase results.boolean
isDisposed()
Checks that separate process with loaded dynamics libs live-
Methods inherited from class com._1c.g5.v8.dt.natives.library.AbstractScomConnectionLoader
getLibraries, getMessageException, getProcessEnvironments, getRuntimeInstallation, getSystemLibraries
-
-
-
-
Constructor Detail
-
FormNativeTransformatorLoader
protected FormNativeTransformatorLoader(String id, Version version, LayoutSerializer hippoLayoutXmlSerializer, IProcessManager processManager, IResolvableRuntimeInstallationManager resolvableRuntimeInstallationManager)
Constructor.- Parameters:
id
- unique id for creating infrastructure for getting content of xml presentation of special form model with transformator phase results, can't benull
version
- actualVersion
for getting preview file content, can't benull
processManager
- actualIProcessManager
, can't benull
resolvableRuntimeInstallationManager
- actualIResolvableRuntimeInstallationManager
, can't benull
-
-
Method Detail
-
getFormTransformationResult
public org.eclipse.xtext.util.Pair<HorStrategy,HippoLayElementBase> getFormTransformationResult(HippoLayElementBase layElement, LFTargetPlatform targetPlatform, ClientInterfaceVariant interfaceVariant, int realDPI, ClientOSInfo osInfo, CompatibilityMode compatibilityMode, int maxWidth, int maxHeight, HorStrategy startHorStrategy, int actualHippoRatio, int actualScale, int dpi, MobilePreviewInfo previewInfo, boolean rotated, Map<String,Boolean> groupCollapsed, Map<String,Boolean> showPopUpGroup, ILayoutImageProcessor imageProcessor, String languageCode)
Gets xml presentation of special form model with transformator phase results.
Important: There is no not absolutePicture
s in initial form model for transformation.- Parameters:
targetPlatform
- information about target platform for transforming form for, can't benull
. SeeLFTargetPlatform
interfaceVariant
- interface variant of runtime platform, can't benull
. SeeClientInterfaceVariant
realDPI
- dpi value for form transformationosInfo
- information about OS where form will be shown, can't benull
. SeeClientOSInfo
compatibilityMode
- currentCompatibilityMode
, can't benull
maxWidth
- max form widthmaxHeight
- max form heightstartHorStrategy
- strategy of transformation, can't benull
. SeeHorStrategy
actualHippoRatio
- current hippo ratioactualScale
- current scale of formdpi
- dpi for font adaptationpreviewInfo
- actualMobilePreviewInfo
, can't benull
rotated
-true
if device was rotated,false
otherwisegroupCollapsed
- information about collapsed form group. The key is name of the group, can't benull
showPopUpGroup
- information about popup form group. The key is name of the group, can't benull
imageProcessor
- the image processor, cannot benull
languageCode
- the language code of the configuration editing language, cannot benull
- Returns:
- xml presentation of special form model with transformator phase results, never
null
-
getFormTransformationResultContent
public String getFormTransformationResultContent(String hippoLayElementModel, LFTargetPlatform targetPlatform, ClientInterfaceVariant interfaceVariant, int realDPI, ClientOSInfo osInfo, CompatibilityMode compatibilityMode, int maxWidth, int maxHeight, HorStrategy startHorStrategy, int actualHippoRatio, int actualScale, MobilePreviewInfo previewInfo, boolean rotated, Map<String,Boolean> groupCollapsed, Map<String,Boolean> showPopUpGroup, FormPictureCollection pictureCollection)
Gets xml presentation of special form model with transformator phase results.
Important: There is no not absolutePicture
s in initial form model for transformation.- Parameters:
hippoLayElementModel
- string presentation ofHippoLayElementBase
, can't benull
targetPlatform
- information about target platform for transforming form for, can't benull
. SeeLFTargetPlatform
interfaceVariant
- interface variant of runtime platform, can't benull
. SeeClientInterfaceVariant
realDPI
- dpi value for form transformationosInfo
- information about OS where form will be shown, can't benull
. SeeClientOSInfo
compatibilityMode
- currentCompatibilityMode
, can't benull
maxWidth
- max form widthmaxHeight
- max form heightstartHorStrategy
- strategy of transformation, can't benull
. SeeHorStrategy
actualHippoRatio
- current hippo ratioactualScale
- current scale of formpreviewInfo
- actualMobilePreviewInfo
, can't benull
rotated
-true
if device was rotated,false
otherwisegroupCollapsed
- information about collapsed form group. The key is name of the group, can't benull
showPopUpGroup
- information about popup form group. The key is name of the group, can't benull
pictureCollection
- the picture uuids and sizes collection, can't benull
- Returns:
- xml presentation of special form model with transformator phase results, never
null
, nevernull
-
dispose
public void dispose()
Releases special data for getting xml presentation of special form model with transformator phase results
You should call this method if you have no plans to soon get xml presentation of special form model with transformator phase results or calling other methods from this class. Attention! Client shouldn't call it after each call of methods from this class.
-
isDisposed
public boolean isDisposed()
Checks that separate process with loaded dynamics libs live- Returns:
false
if separate process alive,true
otherwise
-
-