|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.data.util.PropertysetItem
public class PropertysetItem
Class for handling a set of identified Properties. The elements contained in a MapItem can be referenced using locally unique identifiers. The class supports listeners who are interested in changes to the Property set managed by the class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.vaadin.data.Item |
---|
Item.Editor, Item.PropertySetChangeListener, Item.PropertySetChangeNotifier, Item.Viewer |
Constructor Summary | |
---|---|
PropertysetItem()
|
Method Summary | |
---|---|
boolean |
addItemProperty(java.lang.Object id,
Property property)
Tries to add a new Property into the Item. |
void |
addListener(Item.PropertySetChangeListener listener)
Deprecated. As of 7.0, replaced by addPropertySetChangeListener(com.vaadin.data.Item.PropertySetChangeListener) |
void |
addPropertySetChangeListener(Item.PropertySetChangeListener listener)
Registers a new property set change listener for this Item. |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(java.lang.Object obj)
|
Property |
getItemProperty(java.lang.Object id)
Gets the Property corresponding to the given Property ID stored in the Item. |
java.util.Collection<?> |
getItemPropertyIds()
Gets the collection of IDs of all Properties stored in the Item. |
java.util.Collection<?> |
getListeners(java.lang.Class<?> eventType)
|
int |
hashCode()
|
boolean |
removeItemProperty(java.lang.Object id)
Removes the Property identified by ID from the Item. |
void |
removeListener(Item.PropertySetChangeListener listener)
Deprecated. As of 7.0, replaced by removePropertySetChangeListener(com.vaadin.data.Item.PropertySetChangeListener) |
void |
removePropertySetChangeListener(Item.PropertySetChangeListener listener)
Removes a previously registered property set change listener. |
java.lang.String |
toString()
Gets the String representation of the contents of the Item. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertysetItem()
Method Detail |
---|
public Property getItemProperty(java.lang.Object id)
null
is
returned.
getItemProperty
in interface Item
id
- the identifier of the Property to get.
null
public java.util.Collection<?> getItemPropertyIds()
getItemPropertyIds
in interface Item
public boolean removeItemProperty(java.lang.Object id)
false
.
removeItemProperty
in interface Item
id
- the ID of the Property to be removed.
true
if the operation succeeded false
if notpublic boolean addItemProperty(java.lang.Object id, Property property)
addItemProperty
in interface Item
id
- the ID of the new Property.property
- the Property to be added and associated with the id.
true
if the operation succeeded, false
if notpublic java.lang.String toString()
String
representation of the contents of the Item.
The format of the string is a space separated catenation of the
String
representations of the Properties contained by the
Item.
toString
in class java.lang.Object
String
representation of the Item contentspublic void addPropertySetChangeListener(Item.PropertySetChangeListener listener)
addPropertySetChangeListener
in interface Item.PropertySetChangeNotifier
listener
- the new Listener to be registered.@Deprecated public void addListener(Item.PropertySetChangeListener listener)
addPropertySetChangeListener(com.vaadin.data.Item.PropertySetChangeListener)
addListener
in interface Item.PropertySetChangeNotifier
public void removePropertySetChangeListener(Item.PropertySetChangeListener listener)
removePropertySetChangeListener
in interface Item.PropertySetChangeNotifier
listener
- the Listener to be removed.@Deprecated public void removeListener(Item.PropertySetChangeListener listener)
removePropertySetChangeListener(com.vaadin.data.Item.PropertySetChangeListener)
removeListener
in interface Item.PropertySetChangeNotifier
public java.util.Collection<?> getListeners(java.lang.Class<?> eventType)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
The method clone
performs a shallow copy of the
PropertysetItem
.
Note : All arrays are considered to implement the interface Cloneable. Otherwise, this method creates a new instance of the class of this object and initializes all its fields with exactly the contents of the corresponding fields of this object, as if by assignment, the contents of the fields are not themselves cloned. Thus, this method performs a "shallow copy" of this object, not a "deep copy" operation.
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the object's class does not support the Cloneable
interface.Object.clone()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |