Package com.vaadin.ui

Class Audio

    • Constructor Detail

      • Audio

        public Audio()
      • Audio

        public Audio​(String caption)
        Parameters:
        caption - The caption of the audio component.
      • Audio

        public Audio​(String caption,
                     Resource source)
        Parameters:
        caption - The caption of the audio component
        source - The audio file to play.
    • Method Detail

      • getState

        protected AudioState getState()
        Description copied from class: AbstractComponent
        Returns the shared state bean with information to be sent from the server to the client. Subclasses should override this method and set any relevant fields of the state returned by super.getState().
        Overrides:
        getState in class AbstractMedia
        Returns:
        updated component shared state