Package com.vaadin.ui

Class Audio

    • Constructor Detail

      • Audio

        public Audio()
      • Audio

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

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

      • getState

        protected com.vaadin.shared.ui.audio.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
      • getState

        protected com.vaadin.shared.ui.audio.AudioState getState​(boolean markAsDirty)
        Description copied from class: AbstractClientConnector
        Returns the shared state for this connector.
        Overrides:
        getState in class AbstractMedia
        Parameters:
        markAsDirty - true if the connector should automatically be marked dirty, false otherwise
        Returns:
        The shared state for this connector. Never null.
        See Also:
        AbstractClientConnector.getState()