public class SubFormPositioner extends Positioner
Positioner.PositionedLayoutComparator, Positioner.RowLayoutComparator| Modifier and Type | Field and Description |
|---|---|
protected LinkedList<BreakConditions> |
breakAfter |
protected LinkedList<BreakConditions> |
breakBefore |
static List<String> |
breakConditionNodes |
protected BreakConditions |
breakOverflow |
protected List |
canvases |
protected List<SubFormPositioner> |
childUnnamedSubforms |
protected XFARectangle |
internalBBox |
protected static JsContainer |
subformJsObject |
accessibleAttributes, assistTag, breakConditions, buildNextInstance, canvas, childElements, contentArea, data, endPageNumber, id, immediateChildren, isContentTagged, isEmpty, isTagged, keepConditions, layoutOutOfDate, overflowConditions, overflowedContentAreas, parent, positionState, role, startPageNumber, startSheetNumber, template, transformationcontainerJsObjectinstanceManagerByTemplate, nodeJsObject, nodes, protoTemplate, tag, textJsObject, UNIVERSAL_PROTOTYPE_ROOT, utf8CharsetflattenerContext, shortcuts, treeJsObjectrhinoJsObject| Constructor and Description |
|---|
SubFormPositioner(XFATemplateTag templateTag, DataTag dataTag, FlattenerContext flattenerContext, JsNode parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(JsTree child) |
void |
addInstance(boolean bind) |
protected void |
addInternalBox(XFARectangle internalBox) |
protected void |
adjustContentArea()
Adjusts the width and the height of the XFARectangle contentArea based on the largest urx and lowest lly of the internal boxes (draws, fields, etc).
|
protected void |
adjustContentAreaHeight(float newHeight) |
protected void |
applyAlignment() |
boolean |
checkBreakBeforeCondition(BreakConditions breakCondition, PageArea currentPageArea) |
boolean |
checkBreakBeforeCondition(PageArea currentPageArea) |
Positioner |
checkOverflowing(XFARectangle parentBoundingBox, PageArea currentPageArea, boolean breakableStatus, float bottomMargin) |
void |
createBreakConditions() |
Object |
get(String name, org.mozilla.javascript.Scriptable start) |
BreakConditions |
getBreakOverflow() |
String |
getClassName() |
BreakConditions |
getFirstBreakAfter() |
Object |
getInstanceIndex() |
Object |
getInstanceManager() |
JsInstanceManager |
getInstanceManagerByTemplate(XFATemplateTag templateTag) |
protected void |
initLayout() |
boolean |
isBreakable() |
protected void |
populateCanvases(com.itextpdf.text.pdf.PdfContentByte parentCanvas) |
Positioner |
position(com.itextpdf.text.pdf.PdfContentByte parentCanvas, XFARectangle parentBoundingBox, PageArea currentPageArea, boolean breakableStatus, float bottomMargin) |
void |
relayout(boolean forceLayout) |
List<Object> |
resolveAllFromUnnamedSubformRecursively(String name) |
Object |
resolveNameFromUnnamedSubformRecursively(String name) |
void |
setBreakOverflow(BreakConditions breakOverflow) |
boolean |
supportLegacyPlusPrint() |
addOverflowedPageContentArea, adjustContentAreaUry, adjustLayout, applyMargins, applyRotation, applyTransformationToRectangle, applyTransformationToRectangle, applyTranslation, doesNotFitContentArea, drawBorder, drawBorder, execCalculate, execEvent, execValidate, fetchDataNode, fetchDataTagRecursively, findNextBreakableElement, findNextBreakableElement, getAbsoluteBbox, getAbsoluteBbox, getAccessibleAttribute, getAccessibleAttributes, getAlternateText, getBBox, getBottomInset, getBreakConditions, getCalculationScripts, getCanvas, getCaptionText, getChildren, getContentArea, getData, getEndPageNumber, getFinalTransformation, getFlattenerContext, getFormattedValue, getId, getIndependentRotation, getKeepConditions, getLastPositionerBeforeInd, getLastPositionerInLayout, getLayout, getName, getOverflowConditions, getParent, getPositionState, getPreviousPositionerInLayout, getRawValue, getRole, getScriptsByActivity, getStartPageNumber, getStartSheetNumber, getTemplate, getTemplateId, getTransformation, getValidateScripts, initContentArea, initMinWContentAreaProperty, isBackgroundOrBorderExist, isContentTagged, isCurrentPageContentAreaOverflowed, isEmpty, isInline, isInvisible, isLayoutOutOfDate, isPositionedPartially, isVisible, move, place, place, put, removeChild, restorePosState, savePosState, setAccessibleAttribute, setBreakConditions, setCanvas, setData, setEndPageNumber, setId, setLayoutOutOfDate, setParent, setPositionState, setRawValue, setRole, setStartPageNumber, setTransformation, setWidth, setX, unapplyMarginsexecInitialize, execOwnEvent, get$, getDataNode, getFillColor, setFillColoraddAfterMe, addChild, addChild, addInstanceManagerForTemplate, addVariable, getChild, getInstanceManagerByTemplate, getIsContainer, getIsNull, getNodes, getNotNullXFAPrototype, getOneOfChild, getProtoTemplate, getPrototypeObject, getTag, isHidden, isInactive, isPropertySpecified, loadXML, putCallback, retrieveAttribute, retrieveAttributes, retrieveChild, retrieveChild, retrieveChildren, retrieveChildren, retrieveContent, retrieveName, retrieveParent, retrieveRichText, retrieveValue, setOneOfChild, setProtoTemplategetAll, getIndex, getNamePropertyByNameKey, getSomExpression, resolveNode, resolveNodeInt, resolveNodes, resolveNodesInt, searchNode, searchNodeByClassName, searchNodeById, searchNodeByName, searchNodeDown, searchNodes, searchNodesById, searchNodesByName, splitSOM, strictSearchNode, strictSearchNodeByNamedefineConstantProperty, defineProperty, evaluateScript, evaluateScript, getDefaultValue, getOwnProperty, getProperty, getStringProperty, isUndefined, unwrapapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, sizeprotected static final JsContainer subformJsObject
protected XFARectangle internalBBox
protected LinkedList<BreakConditions> breakBefore
protected LinkedList<BreakConditions> breakAfter
protected BreakConditions breakOverflow
protected Listcanvases
protected List<SubFormPositioner> childUnnamedSubforms
public SubFormPositioner(XFATemplateTag templateTag, DataTag dataTag, FlattenerContext flattenerContext, JsNode parent)
public Object resolveNameFromUnnamedSubformRecursively(String name)
public List<Object> resolveAllFromUnnamedSubformRecursively(String name)
public void addChild(JsTree child)
addChild in class Positioner
public String getClassName()
getClassName in interface FormNode
getClassName in interface org.mozilla.javascript.Scriptable
getClassName in class RhinoJsObject
public Object getInstanceManager()
public JsInstanceManager getInstanceManagerByTemplate(XFATemplateTag templateTag)
public Object getInstanceIndex()
public void addInstance(boolean bind)
protected void initLayout()
initLayout in class Positioner
public void createBreakConditions()
public Positioner checkOverflowing(XFARectangle parentBoundingBox, PageArea currentPageArea, boolean breakableStatus, float bottomMargin)
checkOverflowing in class Positioner
public Positioner position(com.itextpdf.text.pdf.PdfContentByte parentCanvas, XFARectangle parentBoundingBox, PageArea currentPageArea, boolean breakableStatus, float bottomMargin) throws com.itextpdf.text.DocumentException, IOException
position in class Positioner
com.itextpdf.text.DocumentException
IOException
protected void populateCanvases(com.itextpdf.text.pdf.PdfContentByte parentCanvas)
protected void addInternalBox(XFARectangle internalBox)
protected void adjustContentArea()
XFARectangle contentArea based on the largest urx and lowest lly of the internal boxes (draws, fields, etc).
adjustContentArea in class Positioner
protected void adjustContentAreaHeight(float newHeight)
adjustContentAreaHeight in class Positioner
public void relayout(boolean forceLayout)
relayout in class Positioner
protected void applyAlignment()
public BreakConditions getFirstBreakAfter()
public BreakConditions getBreakOverflow()
public void setBreakOverflow(BreakConditions breakOverflow)
public boolean checkBreakBeforeCondition(PageArea currentPageArea)
public boolean checkBreakBeforeCondition(BreakConditions breakCondition, PageArea currentPageArea)
public boolean isBreakable()
isBreakable in class Positioner
public boolean supportLegacyPlusPrint()
supportLegacyPlusPrint in class Positioner
Copyright (C) 1998-2019 iText Group NV. All Rights Reserved.