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 Detail

      • loadFragment

        AppModel loadFragment​(ProtoableNode protoableNode)
        Resolves the usehref attribute in the given ProtoableNode and loads the referenced document into a new AppModel. Any fragment identifier in the URL is ignored.
        Parameters:
        protoableNode - a ProtoableNode with a usehref attribute.
        Returns:
        the newly created AppModel containing the document loaded from the referenced location, or null upon error.
      • loadFragment

        AppModel loadFragment​(AppModel appModel,
                              java.lang.String sUrl)
        Resolves a URL and loads the reference XFA document into a new AppModel. Any fragment identifier in the URL is ignored.
        Parameters:
        appModel - the AppModel containing the URL.
        sUrl - the URL that references the external XFA document
        Returns:
        the newly created AppModel containing the document loaded from the referenced location.
      • getDocument

        Model getDocument​(AppModel appModel)
        Gets the TemplateModel associated with the given AppModel.
        Parameters:
        appModel - an AppModel
        Returns:
        the TemplateModel from appModel or null if there is no TemplateModel.