xbean-blueprint/src/main/java/org/apache/xbean/blueprint/context/impl/DateEditor.java [27:43]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public class DateEditor extends PropertyEditorSupport {

    private DateFormat dateFormat = DateFormat.getInstance();
    
	public void setAsText(String text) throws IllegalArgumentException {
		try {
            setValue(dateFormat.parse(text));
		}
        catch (ParseException e) {
            throw new IllegalArgumentException(
                    "Could not convert Date for " + text + ": " + e.getMessage());
        }
	}

	public String getAsText() {
        Date value = (Date) getValue();
		return (value != null ? dateFormat.format(value) : "");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



xbean-spring/src/main/java/org/apache/xbean/spring/context/impl/DateEditor.java [27:43]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public class DateEditor extends PropertyEditorSupport {

    private DateFormat dateFormat = DateFormat.getInstance();
    
	public void setAsText(String text) throws IllegalArgumentException {
		try {
            setValue(dateFormat.parse(text));
		}
        catch (ParseException e) {
            throw new IllegalArgumentException(
                    "Could not convert Date for " + text + ": " + e.getMessage());
        }
	}

	public String getAsText() {
        Date value = (Date) getValue();
		return (value != null ? dateFormat.format(value) : "");
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



