Class PlayableElement

    • Constructor Detail

      • PlayableElement

        public PlayableElement​(java.lang.String name)
        Constructor.
        Parameters:
        name - Element name.
      • PlayableElement

        public PlayableElement​(java.lang.String name,
                               java.lang.String uri)
        Constructor.
        Parameters:
        name - Element name.
        uri - Element URI.
      • PlayableElement

        public PlayableElement​(nu.xom.Element element)
        Constructor
        Parameters:
        element - Element.
    • Method Detail

      • delete

        public void delete​(DocIO resIO)
        Description copied from class: VisualElement
        Delete the element and sub-elements.
        Specified by:
        delete in class VisualElement
        Parameters:
        resIO - Resource handler to remove resources on delete.
      • getAutoplay

        public java.lang.Boolean getAutoplay()
        Should the player start automatically?
        Returns:
        Auto-play.
      • setAutoplay

        public void setAutoplay​(java.lang.Boolean auto)
        Set auto-play.
        Parameters:
        auto - Auto-play.
      • getDisplayPlayer

        public java.lang.Boolean getDisplayPlayer()
        Should a player be displayed?
        Returns:
        display player.
      • setDisplayPlayer

        public void setDisplayPlayer​(java.lang.Boolean disp)
        Set display of player.
        Parameters:
        disp - player display.
      • getSeekOffset

        public java.lang.Double getSeekOffset()
        Get the seek offset for the player (in seconds).
        Returns:
        Seek offset.
      • setSeekOffset

        public void setSeekOffset​(java.lang.Double offset)
        Set the Seek offset (in seconds).
        Parameters:
        offset - seek offset.
      • getLoop

        public java.lang.Boolean getLoop()
        Should play looped?
        Returns:
        loop.
      • setLoop

        public void setLoop​(java.lang.Boolean loop)
        Set if play should loop.
        Parameters:
        loop - loop play.
      • getSourceLoc

        public java.util.Optional<java.lang.String> getSourceLoc()
        Description copied from interface: Includable
        Return the source path or URL.
        Specified by:
        getSourceLoc in interface Includable
        Returns:
        Location string.