|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itmill.toolkit.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.itmill.toolkit.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 |
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)
Itemnull is
returned.
getItemProperty in interface Itemid - identifier of the Property to get
nullpublic Collection getItemPropertyIds()
Item
getItemPropertyIds in interface Itempublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - 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 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 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 Itemid - 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 | |||||||||