com.vaadin.shared.ui.dnd.

Class FileParameters

  • All Implemented Interfaces:

    Serializable

    public class FileParameters
    extends Object
    implements Serializable

    Contains parameters of a file. Used for transferring information about dropped files from the client to the server.

    Since:

    8.1

    Author:

    Vaadin Ltd

    See Also:

    Serialized Form

    • Constructor Detail

      • FileParameters

        public FileParameters()

        Creates a file parameters object.

      • FileParameters

        public FileParameters​(String name,
                              long size,
                              String mime)

        Creates a file parameters object.

        Parameters:

        name - Name of the file.

        size - Size of the file.

        mime - Mime type of the file.

    • Method Detail

      • getName

        public String getName()

        Gets the file name.

        Returns:

        Name of the file.

      • setName

        public void setName​(String name)

        Sets the file name.

        Parameters:

        name - Name of the file.

      • getSize

        public long getSize()

        Gets the file size.

        Returns:

        Size of the file.

      • setSize

        public void setSize​(long size)

        Sets the file size.

        Parameters:

        size - Size of the file.

      • getMime

        public String getMime()

        Gets the mime type.

        Returns:

        Mime type of the file.

      • setMime

        public void setMime​(String mime)

        Sets the mime type.

        Parameters:

        mime - Mime type of the file.