Class FormTransformationStrategy
- java.lang.Object
-
- com._1c.g5.v8.dt.form.layout.transformation.AbstractLayoutTransformationStrategy<FormTransformationContext>
-
- com._1c.g5.v8.dt.form.layout.transformation.FormTransformationStrategy
-
- All Implemented Interfaces:
IElementWithLimitsBaseTransformationCustomization<FormTransformationContext>
,IFormGroupBaseTransformationCustomization<FormTransformationContext>
,ILayoutTransformationStrategy<FormTransformationContext>
,ILayoutTransformationStrategyCustomization
public class FormTransformationStrategy extends AbstractLayoutTransformationStrategy<FormTransformationContext> implements IElementWithLimitsBaseTransformationCustomization<FormTransformationContext>, IFormGroupBaseTransformationCustomization<FormTransformationContext>
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.form.layout.transformation.AbstractLayoutTransformationStrategy
transformationStrategyRegistry
-
-
Constructor Summary
Constructors Constructor Description FormTransformationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
completeVariant(FormTransformationContext context, HippoLayElementBase layoutElement, int maxWidth, boolean mobileBlocksFlag)
boolean
externalTitleAlign(FormTransformationContext context)
int
getConstantRanges(FormTransformationContext transformationContext)
int
getLogicRowsHeight(HorStrategy horStrategy, VerStrategy verStrategy, int adaptiveGroupingCount, int maxWidth, FormTransformationContext transformationContext)
HippoLayElementBase
getVariant(HorStrategy horStrategy, VerStrategy verStrategy, int adaptiveGroupingCount, int maxWidth, int maxHeight, boolean noExternalAlign, GetVariantAdditionalOptions options, FormTransformationContext transformationContext)
Estimate
getVariantEstimate(HorStrategy horStrategy, VerStrategy verStrategy, int adaptiveGroupingCount, int maxWidth, int maxHeight, boolean noExternalAlign, GetVariantAdditionalOptions options, FormTransformationContext transformationContext)
boolean
groupHorStretchable(FormTransformationContext context)
boolean
groupVerStretchable(FormTransformationContext context)
int
limitsGetConstantRangesCB(FormTransformationContext transformationContext)
HippoLayElementBase
limitsGetVariantCB(HorStrategy horStrategy, VerStrategy verStrategy, int adaptiveGroupingCount, int maxWidth, int maxHeight, boolean noExternalAlign, GetVariantAdditionalOptions options, FormTransformationContext transformationContext)
Estimate
limitsGetVariantEstimateCB(HorStrategy horStrategy, VerStrategy verStrategy, int adaptiveGroupingCount, int maxWidth, int maxHeight, boolean noExternalAlign, GetVariantAdditionalOptions options, FormTransformationContext transformationContext)
HippoTransformResult
transform(HorStrategy startHorStrategy, int maxTargetWidth, int maxTargetHeight, FormTransformationContext transformationContext, IPlatformVisualComputer visualComputer)
Starts the layout transformation phase for the form object.-
Methods inherited from class com._1c.g5.v8.dt.form.layout.transformation.AbstractLayoutTransformationStrategy
createEstimate, createEstimate, getChildContextsByIdx, getEffectiveCustomization
-
-
-
-
Method Detail
-
transform
public HippoTransformResult transform(HorStrategy startHorStrategy, int maxTargetWidth, int maxTargetHeight, FormTransformationContext transformationContext, IPlatformVisualComputer visualComputer)
Starts the layout transformation phase for the form object.- Parameters:
calculationContext
-transformationContext
-visualComputer
-
-
getVariantEstimate
public Estimate getVariantEstimate(HorStrategy horStrategy, VerStrategy verStrategy, int adaptiveGroupingCount, int maxWidth, int maxHeight, boolean noExternalAlign, GetVariantAdditionalOptions options, FormTransformationContext transformationContext)
- Specified by:
getVariantEstimate
in interfaceILayoutTransformationStrategy<FormTransformationContext>
-
getVariant
public HippoLayElementBase getVariant(HorStrategy horStrategy, VerStrategy verStrategy, int adaptiveGroupingCount, int maxWidth, int maxHeight, boolean noExternalAlign, GetVariantAdditionalOptions options, FormTransformationContext transformationContext)
- Specified by:
getVariant
in interfaceILayoutTransformationStrategy<FormTransformationContext>
-
getLogicRowsHeight
public int getLogicRowsHeight(HorStrategy horStrategy, VerStrategy verStrategy, int adaptiveGroupingCount, int maxWidth, FormTransformationContext transformationContext)
- Specified by:
getLogicRowsHeight
in interfaceILayoutTransformationStrategy<FormTransformationContext>
-
getConstantRanges
public int getConstantRanges(FormTransformationContext transformationContext)
- Specified by:
getConstantRanges
in interfaceILayoutTransformationStrategy<FormTransformationContext>
-
limitsGetVariantCB
public HippoLayElementBase limitsGetVariantCB(HorStrategy horStrategy, VerStrategy verStrategy, int adaptiveGroupingCount, int maxWidth, int maxHeight, boolean noExternalAlign, GetVariantAdditionalOptions options, FormTransformationContext transformationContext)
- Specified by:
limitsGetVariantCB
in interfaceIElementWithLimitsBaseTransformationCustomization<FormTransformationContext>
-
limitsGetVariantEstimateCB
public Estimate limitsGetVariantEstimateCB(HorStrategy horStrategy, VerStrategy verStrategy, int adaptiveGroupingCount, int maxWidth, int maxHeight, boolean noExternalAlign, GetVariantAdditionalOptions options, FormTransformationContext transformationContext)
- Specified by:
limitsGetVariantEstimateCB
in interfaceIElementWithLimitsBaseTransformationCustomization<FormTransformationContext>
-
completeVariant
public void completeVariant(FormTransformationContext context, HippoLayElementBase layoutElement, int maxWidth, boolean mobileBlocksFlag)
- Specified by:
completeVariant
in interfaceIFormGroupBaseTransformationCustomization<FormTransformationContext>
-
externalTitleAlign
public boolean externalTitleAlign(FormTransformationContext context)
- Specified by:
externalTitleAlign
in interfaceIFormGroupBaseTransformationCustomization<FormTransformationContext>
-
groupHorStretchable
public boolean groupHorStretchable(FormTransformationContext context)
- Specified by:
groupHorStretchable
in interfaceIFormGroupBaseTransformationCustomization<FormTransformationContext>
-
groupVerStretchable
public boolean groupVerStretchable(FormTransformationContext context)
- Specified by:
groupVerStretchable
in interfaceIFormGroupBaseTransformationCustomization<FormTransformationContext>
-
limitsGetConstantRangesCB
public int limitsGetConstantRangesCB(FormTransformationContext transformationContext)
- Specified by:
limitsGetConstantRangesCB
in interfaceIElementWithLimitsBaseTransformationCustomization<FormTransformationContext>
-
-