| net.refractions.udig.ui.operations.PropertyValue
All known Subclasses: net.refractions.udig.project.ui.properties.OpenMap, net.refractions.udig.tool.edit.CurrentShapeTypePropertyValue,
PropertyValue | public interface PropertyValue (Code) | | Determines whether a property value is true or false given an object.
This class is must be implemented by objectProperty extensions to teach the system new properties for
objects.
author: jones since: 1.1.0 |
addListener | void addListener(IOpFilterListener listener)(Code) | | Adds a listener to listen for events indicating the value has changed.
Parameters: listener - listener to add |
canCacheResult | boolean canCacheResult()(Code) | | Returns true if the results can be cached. A result can be cached if
- The value will never change
- It is possible for the filter to listen for changes and update listeners
added via the
PropertyValue.addListener(IOpFilterListener) method
Therefore this method only returns false if it must be calculated each time because there is
no way to listen for state changes. If it is non-blocking that is fine, if it is blocking
then try to do this rarely.
true if the results can be cached. |
isTrue | boolean isTrue(T object, String value)(Code) | | Returns true if the value provided is a legal value for the object. The subclass determines what
are legal values.
Parameters: object - the object that will be used to determine if the value is legal Parameters: value - an arbitrary string. Returns true if the value provided is a legal value for the object. |
removeListener | void removeListener(IOpFilterListener listener)(Code) | | Removes a listeners
Parameters: listener - listener to remove |
|
|