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
public class AcroFormLayout extends FormLayout implements 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
Constructors Constructor Description AcroFormLayout(FontService oFontService, Service oImageService, HrefService oHrefService, AppModel oAppModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
enableLayoutNodePooling()
void
enableLayoutNodePooling(boolean bEnable)
boolean
isUnrepairable()
Return true if this layout is not incrementally repairableint
newID()
void
postAddInstance(Node wasAdded)
void
postMoveInstance(Node wasMoved)
void
postRemoveInstance(Node wasRemoved)
void
preAddInstance()
void
preMoveInstance(Node toBeMoved)
void
preRemoveInstance(Node toBeRemoved)
void
setUnrepairable()
Make this layout unrepairable by incremental relayout.-
Methods inherited from class com.adobe.xfa.layout.FormLayout
layout, needsSecondPass, setNeedsSecondPass
-
Methods inherited from class com.adobe.xfa.layout.Layout
getAppModel, getLayoutEnv, getTemplateModel, ranOutOfPages
-
-
-
-
Constructor Detail
-
AcroFormLayout
public AcroFormLayout(FontService oFontService, Service oImageService, HrefService oHrefService, AppModel oAppModel)
-
-
Method Detail
-
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:
preAddInstance
in interfaceFormInstanceManager.InstanceListener
-
preRemoveInstance
public void preRemoveInstance(Node toBeRemoved)
- Specified by:
preRemoveInstance
in interfaceFormInstanceManager.InstanceListener
-
preMoveInstance
public void preMoveInstance(Node toBeMoved)
- Specified by:
preMoveInstance
in interfaceFormInstanceManager.InstanceListener
-
postAddInstance
public void postAddInstance(Node wasAdded)
- Specified by:
postAddInstance
in interfaceFormInstanceManager.InstanceListener
-
postRemoveInstance
public void postRemoveInstance(Node wasRemoved)
- Specified by:
postRemoveInstance
in interfaceFormInstanceManager.InstanceListener
-
postMoveInstance
public void postMoveInstance(Node wasMoved)
- Specified by:
postMoveInstance
in interfaceFormInstanceManager.InstanceListener
-
-