com.vaadin.data.util.

Class FilesystemContainer.FileItem

    • Method Detail

      • getItemProperty

        public Property getItemProperty(Object id)

        Description copied from interface: Item

        Gets the Property corresponding to the given Property ID stored in the Item. If the Item does not contain the Property, null is returned.

        Specified by:

        getItemProperty in interface Item

        Parameters:

        id - identifier of the Property to get

        Returns:

        the Property with the given ID or null

      • getItemPropertyIds

        public Collection<String> getItemPropertyIds()

        Description copied from interface: Item

        Gets the collection of IDs of all Properties stored in the Item.

        Specified by:

        getItemPropertyIds in interface Item

        Returns:

        unmodifiable collection containing IDs of the Properties stored the Item

      • hashCode

        public int hashCode()

        Calculates a integer hash-code for the Property that's unique inside the Item containing the Property. Two different Properties inside the same Item contained in the same list always have different hash-codes, though Properties in different Items may have identical hash-codes.

        Overrides:

        hashCode in class Object

        Returns:

        A locally unique hash-code as integer

      • equals

        public boolean equals(Object obj)

        Tests if the given object is the same as the this object. Two Properties got from an Item with the same ID are equal.

        Overrides:

        equals in class Object

        Parameters:

        obj - an object to compare with this object.

        Returns:

        true if the given object is the same as this object, false if not

      • lastModified

        public Date lastModified()

        Gets the last modified date of this file.

        Returns:

        Date

      • getName

        public String getName()

        Gets the name of this file.

        Returns:

        file name of this file.

      • getIcon

        public Resource getIcon()

        Gets the icon of this file.

        Returns:

        the icon of this file.

      • getSize

        public long getSize()

        Gets the size of this file.

        Returns:

        size