| java.lang.Object org.skunk.dav.client.gui.StateMonitor
StateMonitor | public class StateMonitor (Code) | | a property can be registered with the state monitor so that when the
a given application property changes state, so will the registered property,
according to a mapping of property values. If the mapping is null,
the application property value is used directly to set the target property value.
|
Inner Class :public interface DomainMatcher | |
Inner Class :public interface Mapper | |
Method Summary | |
public static Mapper | getMapper(Map m) | public static void | registerProperty(Object target, String targetProperty, String applicationProperty, Mapper valueMapper, DomainMatcher domainMatcher) set a target object's property value to vary according
to changes in the value of the application property, which
is maintained statically by the StateMonitor class. | final public static void | setProperty(String applicationProperty, Object value, Object domainKey) | public static void | unregisterProperty(Object target, String targetProperty, String applicationProperty) |
getMapper | public static Mapper getMapper(Map m)(Code) | | a Mapper object that simply wraps a Map object |
registerProperty | public static void registerProperty(Object target, String targetProperty, String applicationProperty, Mapper valueMapper, DomainMatcher domainMatcher)(Code) | | set a target object's property value to vary according
to changes in the value of the application property, which
is maintained statically by the StateMonitor class. The
target property's value is set to whatever the valueMapper
returns, or, if the valueMapper is null, to the value of
the application property.
Parameters: target - the Object whose property will be set Parameters: targetProperty - the property of the Object that will be set Parameters: applicationProperty - the application property according to which the target property will vary Parameters: valueMapper - the Mapper that maps application values to target values, or null Parameters: domainMatcher - the DomainMatcher that tests domainKeys, or null |
unregisterProperty | public static void unregisterProperty(Object target, String targetProperty, String applicationProperty)(Code) | | |
|
|