public class FilesystemContainer.FileItem extends Object implements Item
Item.Editor, Item.PropertySetChangeEvent, Item.PropertySetChangeListener, Item.PropertySetChangeNotifier, Item.Viewer| Modifier and Type | Method and Description |
|---|---|
boolean |
addItemProperty(Object id,
Property property)
Filesystem container does not support adding new properties.
|
boolean |
equals(Object obj)
Tests if the given object is the same as the this object.
|
Resource |
getIcon()
Gets the icon of this file.
|
Property |
getItemProperty(Object id)
Gets the Property corresponding to the given Property ID stored in the
Item.
|
Collection<String> |
getItemPropertyIds()
Gets the collection of IDs of all Properties stored in the Item.
|
String |
getName()
Gets the name of this file.
|
long |
getSize()
Gets the size of this file.
|
int |
hashCode()
Calculates a integer hash-code for the Property that's unique inside
the Item containing the Property.
|
Date |
lastModified()
Gets the last modified date of this file.
|
boolean |
removeItemProperty(Object id)
Filesystem container does not support removing properties.
|
String |
toString() |
public Property getItemProperty(Object id)
Itemnull is
returned.getItemProperty in interface Itemid - identifier of the Property to getnullpublic Collection<String> getItemPropertyIds()
ItemgetItemPropertyIds in interface Itempublic int hashCode()
public boolean equals(Object obj)
public Date lastModified()
public String getName()
public Resource getIcon()
public long getSize()
public String toString()
toString in class ObjectObject.toString()public boolean addItemProperty(Object id, Property property) throws UnsupportedOperationException
addItemProperty in interface Itemid - ID of the new Propertyproperty - the Property to be added and associated with the idtrue if the operation succeeded, false
if notUnsupportedOperationException - if the operation is not supported.Item.addItemProperty(Object, Property)public boolean removeItemProperty(Object id) throws UnsupportedOperationException
removeItemProperty in interface Itemid - ID of the Property to be removedtrue if the operation succeededUnsupportedOperationException - if the operation is not supported. false if notItem.removeItemProperty(Object)Copyright © 2019 Vaadin Ltd. All rights reserved.