|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.data.util.FilesystemContainer.FileItem
public class FilesystemContainer.FileItem
A Item wrapper for files in a filesystem.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.vaadin.data.Item |
---|
Item.Editor, Item.PropertySetChangeEvent, Item.PropertySetChangeListener, Item.PropertySetChangeNotifier, Item.Viewer |
Method Summary | |
---|---|
boolean |
addItemProperty(java.lang.Object id,
Property property)
Filesystem container does not support adding new properties. |
boolean |
equals(java.lang.Object obj)
Tests if the given object is the same as the this object. |
Resource |
getIcon()
Gets the icon of this file. |
Property |
getItemProperty(java.lang.Object id)
Gets the Property corresponding to the given Property ID stored in the Item. |
java.util.Collection<java.lang.String> |
getItemPropertyIds()
Gets the collection of IDs of all Properties stored in the Item. |
java.lang.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. |
java.util.Date |
lastModified()
Gets the last modified date of this file. |
boolean |
removeItemProperty(java.lang.Object id)
Filesystem container does not support removing properties. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Property getItemProperty(java.lang.Object id)
Item
null
is
returned.
getItemProperty
in interface Item
id
- identifier of the Property to get
null
public java.util.Collection<java.lang.String> getItemPropertyIds()
Item
getItemPropertyIds
in interface Item
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- an object to compare with this object.
true
if the given object is the same as this
object, false
if notpublic java.util.Date lastModified()
public java.lang.String getName()
public Resource getIcon()
public long getSize()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean addItemProperty(java.lang.Object id, Property property) throws java.lang.UnsupportedOperationException
addItemProperty
in interface Item
id
- ID of the new Propertyproperty
- the Property to be added and associated with the id
true
if the operation succeeded, false
if not
java.lang.UnsupportedOperationException
- if the operation is not supported.Item.addItemProperty(Object, Property)
public boolean removeItemProperty(java.lang.Object id) throws java.lang.UnsupportedOperationException
removeItemProperty
in interface Item
id
- ID of the Property to be removed
true
if the operation succeeded
java.lang.UnsupportedOperationException
- if the operation is not supported. false
if notItem.removeItemProperty(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |