public class ItemChangedEvent extends AbstractCockpitEvent
ItemChangedEvent is used to notify interested parties that an item has changed.| Modifier and Type | Class and Description |
|---|---|
static class |
ItemChangedEvent.ChangeType
Type of the change.
|
| Constructor and Description |
|---|
ItemChangedEvent(java.lang.Object source,
TypedObject item,
java.util.Collection<? extends PropertyDescriptor> properties)
Creates a new
ItemChangedEvent. |
ItemChangedEvent(java.lang.Object source,
TypedObject item,
java.util.Collection<? extends PropertyDescriptor> properties,
ItemChangedEvent.ChangeType changeType)
Creates a new
ItemChangedEvent. |
ItemChangedEvent(java.lang.Object source,
TypedObject item,
java.util.Collection<? extends PropertyDescriptor> properties,
ItemChangedEvent.ChangeType changeType,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
Creates a new
ItemChangedEvent. |
ItemChangedEvent(java.lang.Object source,
TypedObject item,
java.util.Collection<? extends PropertyDescriptor> properties,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
Creates a new
ItemChangedEvent. |
| Modifier and Type | Method and Description |
|---|---|
ItemChangedEvent.ChangeType |
getChangeType()
Returns type of the item change.
|
TypedObject |
getItem()
Returns the item which has been changed.
|
java.util.Map<java.lang.String,java.lang.Object> |
getParameters()
Returns the custom parameters of this event.
|
java.util.Set<PropertyDescriptor> |
getProperties()
Returns the properties which have changed or
null if all need to be reloaded. |
getSource, toStringpublic ItemChangedEvent(java.lang.Object source,
TypedObject item,
java.util.Collection<? extends PropertyDescriptor> properties)
ItemChangedEvent.source - source of this eventitem - the changed itemproperties - the changed propertiespublic ItemChangedEvent(java.lang.Object source,
TypedObject item,
java.util.Collection<? extends PropertyDescriptor> properties,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
ItemChangedEvent.source - source of this eventitem - the changed itemproperties - the changed properties of the itemparams - custom parameterspublic ItemChangedEvent(java.lang.Object source,
TypedObject item,
java.util.Collection<? extends PropertyDescriptor> properties,
ItemChangedEvent.ChangeType changeType)
ItemChangedEvent.source - source of this eventitem - the changed itemproperties - the changed propertieschangeType - type of the item changepublic ItemChangedEvent(java.lang.Object source,
TypedObject item,
java.util.Collection<? extends PropertyDescriptor> properties,
ItemChangedEvent.ChangeType changeType,
java.util.Map<java.lang.String,? extends java.lang.Object> params)
ItemChangedEvent.source - source of this eventitem - the changed itemproperties - the changed propertieschangeType - the type of changeparams - custom parameterspublic TypedObject getItem()
public java.util.Set<PropertyDescriptor> getProperties()
null if all need to be reloaded.nullpublic ItemChangedEvent.ChangeType getChangeType()
public java.util.Map<java.lang.String,java.lang.Object> getParameters()
Copyright © 2018 SAP SE. All Rights Reserved.