Package com.adobe.xfa
Interface HrefHandler
- All Known Implementing Classes:
HrefService
public interface HrefHandler
This interface defines the services that handle href related actions in an XFA based form.
-
Method Summary
Modifier and TypeMethodDescriptiongetDocument(AppModel appModel) Gets theTemplateModelassociated with the givenAppModel.loadFragment(AppModel appModel, String sUrl) Resolves a URL and loads the reference XFA document into a newAppModel.loadFragment(ProtoableNode protoableNode) Resolves theusehrefattribute in the givenProtoableNodeand loads the referenced document into a newAppModel.
-
Method Details
-
loadFragment
Resolves theusehrefattribute in the givenProtoableNodeand loads the referenced document into a newAppModel. Any fragment identifier in the URL is ignored.- Parameters:
protoableNode- aProtoableNodewith ausehrefattribute.- Returns:
- the newly created
AppModelcontaining the document loaded from the referenced location, ornullupon error.
-
loadFragment
Resolves a URL and loads the reference XFA document into a newAppModel. Any fragment identifier in the URL is ignored.- Parameters:
appModel- theAppModelcontaining the URL.sUrl- the URL that references the external XFA document- Returns:
- the newly created
AppModelcontaining the document loaded from the referenced location.
-
getDocument
Gets theTemplateModelassociated with the givenAppModel.- Parameters:
appModel- anAppModel- Returns:
- the
TemplateModelfromappModelornullif there is noTemplateModel.
-