Class External


  • public class External
    extends Object
    Provides convenience methods for rendering external application paragraphs.
    • Constructor Detail

      • External

        public External​(Resource resource,
                        Page page,
                        String spoolSelector,
                        String postSelector,
                        String targetParam)
        Creates a new external based on the given resource
        Parameters:
        resource - resource
        page - page
        spoolSelector - spool selector
        postSelector - post selector
        targetParam - target param
        Throws:
        IllegalArgumentException - if the given resource is not adaptable to node.
    • Method Detail

      • getResource

        public Resource getResource()
        Returns the underlying resource.
        Returns:
        the resource
      • hasContent

        public boolean hasContent()
        Checks if this external component has content.
        Returns:
        true if this download has content.
      • getTarget

        public String getTarget()
        Return the target of the external application component.
        Returns:
        target
      • setTarget

        public void setTarget​(String target)
        Override the target to display.
        Parameters:
        target - target
      • passParameters

        public boolean passParameters()
        Return a flag indicating whether parameters should be passed to the external site.
        Returns:
        true if the parameters should be passed; false otherwise
      • isFixed

        public boolean isFixed()
        Return a flag indicating whether the external site should be included adaptive (rewritten html) or fixed (as an IFRAME).
        Returns:
        true if the external site should be included fixed; false otherwise
      • getWidth

        public String getWidth()
        Return the width as a string. If none is found, returns "100%".
        Returns:
        width
      • getHeight

        public String getHeight()
        Return the height as a string. If none is found, returns "100%".
        Returns:
        height
      • getLimit

        public External.Limit getLimit()
        Return the limit.
        Returns:
        limit