Package com.adobe.xfa.layout
Class AcroFormLayout
java.lang.Object
com.adobe.xfa.layout.Layout
com.adobe.xfa.layout.FormLayout
com.adobe.xfa.layout.AcroFormLayout
- All Implemented Interfaces:
FormInstanceManager.InstanceListener
This object represents a high level transformation that acts on a given FormModel
to provide layout functionality within Acrobat plugin. This includes things like
listening for template/data/form changes, hit-testing , incremental relayout etc.
Like the other xfalayout structures, the AcroFormLayout object encapsulates the following information: i) what type of object to render (form node) ii) what page the object resides iii) object's (x,y) position on a given page iv) interactive properties pertaining to whether node has changed It does so by storing an array of node trees, with each tree representing the layout of a new page. However unlike it's parent class xfaformlayout the xfaacroformlayout trees are comprised of AcroFormLayoutNode objects. These nodes contain the extra information needed for functionlity specific to incremental relayout within the Acrobat 7 xfa plugin, something that conventional form layout cannot do.
-
Constructor Summary
ConstructorsConstructorDescriptionAcroFormLayout(FontService oFontService, Service oImageService, HrefService oHrefService, AppModel oAppModel) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidenableLayoutNodePooling(boolean bEnable) booleanReturn true if this layout is not incrementally repairableintnewID()voidpostAddInstance(Node wasAdded) voidpostMoveInstance(Node wasMoved) voidpostRemoveInstance(Node wasRemoved) voidvoidpreMoveInstance(Node toBeMoved) voidpreRemoveInstance(Node toBeRemoved) voidMake this layout unrepairable by incremental relayout.Methods inherited from class com.adobe.xfa.layout.FormLayout
layout, needsSecondPass, setNeedsSecondPassMethods inherited from class com.adobe.xfa.layout.Layout
getAppModel, getLayoutEnv, getTemplateModel, ranOutOfPages
-
Constructor Details
-
AcroFormLayout
public AcroFormLayout(FontService oFontService, Service oImageService, HrefService oHrefService, AppModel oAppModel)
-
-
Method Details
-
setUnrepairable
public void setUnrepairable()Make this layout unrepairable by incremental relayout. Called by layout damage listening code to avoid futile attempts. -
isUnrepairable
public boolean isUnrepairable()Return true if this layout is not incrementally repairable -
newID
public int newID() -
enableLayoutNodePooling
public void enableLayoutNodePooling(boolean bEnable) -
enableLayoutNodePooling
public boolean enableLayoutNodePooling() -
preAddInstance
public void preAddInstance()- Specified by:
preAddInstancein interfaceFormInstanceManager.InstanceListener
-
preRemoveInstance
- Specified by:
preRemoveInstancein interfaceFormInstanceManager.InstanceListener
-
preMoveInstance
- Specified by:
preMoveInstancein interfaceFormInstanceManager.InstanceListener
-
postAddInstance
- Specified by:
postAddInstancein interfaceFormInstanceManager.InstanceListener
-
postRemoveInstance
- Specified by:
postRemoveInstancein interfaceFormInstanceManager.InstanceListener
-
postMoveInstance
- Specified by:
postMoveInstancein interfaceFormInstanceManager.InstanceListener
-