| com.sun.rave.designtime.DesignProperty
All known Subclasses: org.netbeans.modules.visualweb.insync.live.SourceDesignProperty,
DesignProperty | public interface DesignProperty (Code) | | A DesignProperty represents a single property (setter/getter method pair) on a single instance
of a DesignBean at design-time. All manipulation of properties at design-time should be done via
this interface. This allows the IDE to both persist the changes as well as reflect them in the
design-time session.
IMPLEMENTED BY CREATOR - This interface is implemented by Creator for use by the
component (bean) author.
author: Joe Nuxoll version: 1.0 See Also: DesignBean.getProperties See Also: DesignBean.getProperty(String) |
getDesignBean | public DesignBean getDesignBean()(Code) | | Returns the DesignBean that this DesignProperty is associated with
the DesignBean that this DesignProperty is associated with |
getPropertyDescriptor | public PropertyDescriptor getPropertyDescriptor()(Code) | | Returns the PropertyDescriptor associated with this DesignProperty
the PropertyDescriptor associated with this DesignProperty |
getUnsetValue | public Object getUnsetValue()(Code) | | Returns the value that this property would have if it were unset. This is the property's
original (default) state, which is determined by reading the property value on a fresh
instance of the associated class (that owns this property).
The unset (default) value for this property |
getValue | public Object getValue()(Code) | | Returns the current value of this DesignProperty. The returned value is the *actual* value
that the design-time instance of the DesignBean has set for this property.
the current value of this DesignProperty |
getValueSource | public String getValueSource()(Code) | | Returns the source-persistence String value of this property. This is the value that
the associated PropertyEditor would use to persist the property's current value in source
code.
the source-persistence String value of this property See Also: java.beans.PropertyEditor.getJavaInitializationString |
isModified | public boolean isModified()(Code) | | Returns true if this DesignProperty has been modified from the 'default' value.
A 'modified' property is one that differs in value (== and .equals()) from a newly
constructed instance of the DesignBean.
true if this DesignProperty has been modified from the 'default' value,false if not |
setValue | public boolean setValue(Object value)(Code) | | Sets the current value of this DesignProperty. This will set the *actual* value of this
property on the design-time instance of this DesignBean. The associated PropertyEditor will
be used to produce the appropriate Java or markup code to set the property. Calling this
method results in the persistence being written, and will cause the backing file buffer to
become "dirty".
Parameters: value - The Object value to set as the currrent value of this property true if the property setting was successful, false if itwas not See Also: java.beans.PropertyEditor |
setValueSource | public boolean setValueSource(String source)(Code) | | Sets the source-persistence String value for this property. This is the value that will
acutally appear in Java source code (or markup), depending on how the property setting is
persisted.
Parameters: source - the source-persistence String value for this property true if the property source setting was successful, false if not |
unset | public boolean unset()(Code) | | Removes the property setting (if it exists) from the source code, and reverts the property
setting back to its original (default) state. The original state is determined by reading
the property value on a fresh instance of the associated class (that owns this property),
and reading the default value of the property.
true if the unset operation was successful, false if not |
|
|