PropertyInfo.canResetValue

Overview | Methods | This Package | All Packages

PropertyInfo.canResetValue

Determines whether the value of the property can be reset.

Syntax

public boolean canResetValue ( Object component )

Parameters

component

The component that defines the property.

Return Value

Returns true if the property value can be reset; otherwise, returns false.

Remarks

If a default value is specified in this PropertyInfo object and the value returned by getValue is different than the default value, canResetValue returns true. If there is no default value, canResetValue invokes and returns the value of the component's shouldPersist<PropertyName> method, if this method and the reset<PropertyName> method exist. (If only the reset<PropertyName> method exists, true is returned.) If none of these cases apply, false is returned.