|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlivespace.services.PropertiesSynchronizer
public class PropertiesSynchronizer
| Constructor Summary | |
|---|---|
PropertiesSynchronizer(EntityRegistry registry,
String[] paths,
Object[] values)
Use to wait for a set of properties to go to a set of specified values |
|
| Method Summary | |
|---|---|
void |
finish()
|
static PropertyPath |
getPath(IDataObject root,
IDataObject descendant,
Object descendantProperty)
Find the first path from the root object to a descendant IDataObject's property |
static PropertyPath[] |
getPaths(IDataObject root,
Collection<? extends IDataObject> descendants,
Object descendantProperty)
Returns an array of first paths found from a root IDataObject to collection of descendant IDataObject's properties a specified property |
static String[] |
getPathsStr(IDataObject root,
Collection<? extends IDataObject> descendants,
Object descendantProperty)
Returns an array of first paths as strings found from a root IDataObject to collection of descendant IDataObject's properties a specified property |
boolean |
hasFinished()
Returns true if the |
void |
propertyValueChanged(PropertyEvent e)
Listen for updates and set the finished flag if the property path are all set to their specified end states |
void |
synchronize(long maxWait)
Wait for the set of properties to be set to specified value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesSynchronizer(EntityRegistry registry,
String[] paths,
Object[] values)
registry - The top level container registrypaths - The set of property pathsvalues - The set of values
IllegalArgumentException - If the length of the paths and values arrays are not the same| Method Detail |
|---|
public void synchronize(long maxWait)
throws SynchronizationException
maxWait -
SynchronizationExceptionpublic void propertyValueChanged(PropertyEvent e)
propertyValueChanged in interface PropertyListenerpublic boolean hasFinished()
public void finish()
public static PropertyPath[] getPaths(IDataObject root,
Collection<? extends IDataObject> descendants,
Object descendantProperty)
root - the root IDataObjectdescendants - the descendent object to finddescendantProperty - the descendant IDataObject's property
getPath(IDataObject, IDataObject, Object)
public static PropertyPath getPath(IDataObject root,
IDataObject descendant,
Object descendantProperty)
root - the root IDataObjectdescendant - the descendant IDataObjectdescendantProperty - the descendant IDataObject's property
public static String[] getPathsStr(IDataObject root,
Collection<? extends IDataObject> descendants,
Object descendantProperty)
root - the root IDataObjectdescendants - the descendant object to finddescendantProperty - the descendant IDataObject's property
getPath(IDataObject, IDataObject, Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||