| |
|
| java.lang.Object java.beans.PropertyEditorSupport org.netbeans.beaninfo.editors.ExPropertyEditorSupport
All known Subclasses: org.netbeans.beaninfo.editors.IntEditor, org.netbeans.beaninfo.editors.BoolEditor,
ExPropertyEditorSupport | abstract public class ExPropertyEditorSupport extends PropertyEditorSupport implements ExPropertyEditor(Code) | | Support class for ExPropertyEditor which provides means for validating
hints from the PropertyEnv instance passed to attachEnv. Forces
subclasses to be fail-fast in the case that illegal values are passed
via the PropertyEnv (the alternative is cryptic error messages when
the editor tries to use the hints).
author: Tim Boudreau version: 1.0 |
Method Summary | |
final protected static String | arrToStr(Object[] s) Utility method to convert an array of Objects into a comma
delimited string. | final public void | attachEnv(PropertyEnv env) Implementation of PropertyEditorSupport.attachEnv(). | abstract protected void | attachEnvImpl(PropertyEnv env) Perform the actual attaching of the PropertyEnv. | abstract protected void | validateEnv(PropertyEnv env) Validate values stored in the PropertyEnv. |
ExPropertyEditorSupport | protected ExPropertyEditorSupport()(Code) | | Creates a new instance of ExPropertyEditorSupport
|
arrToStr | final protected static String arrToStr(Object[] s)(Code) | | Utility method to convert an array of Objects into a comma
delimited string.
|
attachEnv | final public void attachEnv(PropertyEnv env)(Code) | | Implementation of PropertyEditorSupport.attachEnv(). This method
is final to ensure that the values from the env are validated.
Subclasses should override attachEnvImpl to provide the actual
attaching behavior. attachEnvImpl is called first, then
validateEnv (to avoid fetching the values twice).
|
attachEnvImpl | abstract protected void attachEnvImpl(PropertyEnv env)(Code) | | Perform the actual attaching of the PropertyEnv.
|
validateEnv | abstract protected void validateEnv(PropertyEnv env)(Code) | | Validate values stored in the PropertyEnv. This method allows
subclasses to be fail-fast if they are supplied illegal values
as hints from the PropertyEnv. Subclasses should confirm that any
hints used by their property editor are valid values. If they
are not valid, an EnvException should be thrown with a clear
description of the problem.
|
|
|
|