|
||||||||||
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(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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Property getItemProperty(Object id)
Item
null
is
returned.
getItemProperty
in interface Item
id
- identifier of the Property to get
null
public Collection<String> getItemPropertyIds()
Item
getItemPropertyIds
in interface Item
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- an object to compare with this object.
true
if the given object is the same as this
object, false
if notpublic Date lastModified()
public String getName()
public Resource getIcon()
public long getSize()
public String toString()
toString
in class Object
Object.toString()
public boolean addItemProperty(Object id, Property property) throws 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
UnsupportedOperationException
- if the operation is not supported.Item.addItemProperty(Object, Property)
public boolean removeItemProperty(Object id) throws UnsupportedOperationException
removeItemProperty
in interface Item
id
- ID of the Property to be removed
true
if the operation succeeded
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 |