org.scopemvc.model.beans
Interface DynamicReadOnly


public interface DynamicReadOnly

BeansPropertyManager queries models that implement this for whether a property is read-only before falling back on simply looking for a setter/getter.

If you have properties on a model that can become read-only at runtime, then implement this interface on your model class.

Warning: This can't handle JavaBeans indexed properties.

Version:
$Revision: 1.4 $ $Date: 2002/09/12 10:51:03 $
Author:
Steve Meyfroidt

Method Summary
 boolean isPropertyReadOnly(Selector inSelector)
          Returns true if the property is read-only with this model in its current state.
 

Method Detail

isPropertyReadOnly

public boolean isPropertyReadOnly(Selector inSelector)
Returns true if the property is read-only with this model in its current state.

Parameters:
inSelector - Selector for a property directly in this model. inSelector.getNext() is guaranteed to be null.
Returns:
true if the property is read-only else false. If true, this overrides then the property is read-only even if there is an accessible setter for it. If false the normal rules are applied by the BeansPropertyManager.


Copyright © 2000-2002 The Scope Team. All Rights Reserved.