|
org.netbeans.core/2 3.32 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.beans.PropertyEditorSupport
org.netbeans.beaninfo.editors.ExPropertyEditorSupport
public abstract class ExPropertyEditorSupport
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).
| Nested Class Summary | |
|---|---|
static class |
ExPropertyEditorSupport.EnvException
This class exists to enable unit tests to differentiate between code bugs in the editors and invalid values from the propertyEnv. |
| Field Summary |
|---|
| Fields inherited from interface org.openide.explorer.propertysheet.ExPropertyEditor |
|---|
PROP_VALUE_VALID, PROPERTY_HELP_ID |
| Constructor Summary | |
|---|---|
protected |
ExPropertyEditorSupport()
Creates a new instance of ExPropertyEditorSupport |
| Method Summary | |
|---|---|
protected static String |
arrToStr(Object[] s)
Utility method to convert an array of Objects into a comma delimited string. |
void |
attachEnv(PropertyEnv env)
Implementation of PropertyEditorSupport.attachEnv(). |
protected abstract void |
attachEnvImpl(PropertyEnv env)
Perform the actual attaching of the PropertyEnv. |
protected abstract void |
validateEnv(PropertyEnv env)
Validate values stored in the PropertyEnv. |
| Methods inherited from class java.beans.PropertyEditorSupport |
|---|
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource, setValue, supportsCustomEditor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.beans.PropertyEditor |
|---|
addPropertyChangeListener, getAsText, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setValue, supportsCustomEditor |
| Constructor Detail |
|---|
protected ExPropertyEditorSupport()
| Method Detail |
|---|
public final void attachEnv(PropertyEnv env)
attachEnv in interface ExPropertyEditorprotected abstract void attachEnvImpl(PropertyEnv env)
protected abstract void validateEnv(PropertyEnv env)
protected static final String arrToStr(Object[] s)
|
org.netbeans.core/2 3.32 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||