public class PropertyEditorChain extends PropertyEditorSupport implements ExtendedPropertyEditor
Constructor and Description |
---|
PropertyEditorChain(Class<?> targetClass,
Class<? extends PropertyEditor>[] propertyEditorClasses) |
Modifier and Type | Method and Description |
---|---|
PropertyEditorChain |
copyOf() |
PropertyEditorChain |
copyOf(Class<? extends PropertyEditor> propertyEditorClass) |
String |
getAsText() |
protected String |
getAsTextInternal() |
String |
getFormat() |
String |
getFormattedValue() |
int |
getSize() |
protected Object |
getValueInternal() |
protected ValueConversionException |
illegalValue(Object value,
Class<?> klass) |
protected ValueConversionException |
illegalValue(Object value,
Class<?> klass,
Exception e) |
void |
setAsText(String str) |
protected void |
setAsTextInternal(String text) |
void |
setFormat(String format) |
void |
setFormattedValue(String value) |
void |
setValue(Object value) |
protected void |
setValueInternal(Object value) |
String |
toString() |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, supportsCustomEditor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, supportsCustomEditor
public PropertyEditorChain(@Nonnull Class<?> targetClass, @Nonnull Class<? extends PropertyEditor>[] propertyEditorClasses)
@Nullable public String getFormat()
getFormat
in interface ExtendedPropertyEditor
public void setFormat(@Nullable String format)
setFormat
in interface ExtendedPropertyEditor
public int getSize()
public PropertyEditorChain copyOf()
public PropertyEditorChain copyOf(Class<? extends PropertyEditor> propertyEditorClass)
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
public void setAsText(String str) throws IllegalArgumentException
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException
public void setValue(Object value)
setValue
in interface PropertyEditor
setValue
in class PropertyEditorSupport
public String getFormattedValue()
getFormattedValue
in interface ExtendedPropertyEditor
public void setFormattedValue(String value)
setFormattedValue
in interface ExtendedPropertyEditor
protected void setValueInternal(Object value) throws IllegalArgumentException
IllegalArgumentException
protected Object getValueInternal()
protected String getAsTextInternal()
protected void setAsTextInternal(String text) throws IllegalArgumentException
IllegalArgumentException
protected ValueConversionException illegalValue(Object value, Class<?> klass)
protected ValueConversionException illegalValue(Object value, Class<?> klass, Exception e)