Package jadex.rules.eca.propertychange
Class PropertyChangeManagerDesktop
- java.lang.Object
-
- jadex.rules.eca.propertychange.PropertyChangeManager
-
- jadex.rules.eca.propertychange.PropertyChangeManagerDesktop
-
public class PropertyChangeManagerDesktop extends PropertyChangeManager
Supports Usage of java.beans and jadex.commons.beans types in watched objects.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.Class<?>[]
JAVABEANS_PCL
The argument types for alternative property change listener adding/removal (cached for speed).-
Fields inherited from class jadex.rules.eca.propertychange.PropertyChangeManager
events, PCL, pcls
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PropertyChangeManagerDesktop()
Create a new listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
createPCL(java.lang.reflect.Method meth, IResultCommand<IFuture<java.lang.Void>,PropertyChangeEvent> eventadder)
Create a listener.protected java.lang.reflect.Method
getAddMethod(java.lang.Object object)
Get listener add methodprotected void
removePCL(java.lang.Object object, java.lang.Object pcl)
Remove a listener from an object.void
removePropertyChangeListener(java.lang.Object object, IResultCommand<IFuture<java.lang.Void>,PropertyChangeEvent> eventadder)
Deregister a value for observation.-
Methods inherited from class jadex.rules.eca.propertychange.PropertyChangeManager
addEvent, addPropertyChangeListener, createInstance, getSize, hasEvents, removeEvent
-
-
-
-
Method Detail
-
removePropertyChangeListener
public void removePropertyChangeListener(java.lang.Object object, IResultCommand<IFuture<java.lang.Void>,PropertyChangeEvent> eventadder)
Deregister a value for observation. if its a bean then remove the property listener.- Overrides:
removePropertyChangeListener
in classPropertyChangeManager
-
removePCL
protected void removePCL(java.lang.Object object, java.lang.Object pcl)
Description copied from class:PropertyChangeManager
Remove a listener from an object.- Overrides:
removePCL
in classPropertyChangeManager
-
getAddMethod
protected java.lang.reflect.Method getAddMethod(java.lang.Object object)
Get listener add method- Overrides:
getAddMethod
in classPropertyChangeManager
-
createPCL
protected java.lang.Object createPCL(java.lang.reflect.Method meth, IResultCommand<IFuture<java.lang.Void>,PropertyChangeEvent> eventadder)
Create a listener.- Overrides:
createPCL
in classPropertyChangeManager
-
-