org.shept.org.springframework.beans
Class CustomCalendarEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.shept.org.springframework.beans.CustomCalendarEditor
All Implemented Interfaces:
PropertyEditor

public class CustomCalendarEditor
extends PropertyEditorSupport

Version:
$$Id: CustomCalendarEditor.java 34 2010-08-20 16:46:49Z aha $$
Author:
Andi

Field Summary
private  boolean allowEmpty
           
private  DateFormat dateFormat
           
 
Constructor Summary
CustomCalendarEditor(DateFormat dateFormat, boolean allowEmpty)
           
 
Method Summary
 String getAsText()
           
 void setAsText(String text)
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dateFormat

private DateFormat dateFormat

allowEmpty

private boolean allowEmpty
Constructor Detail

CustomCalendarEditor

public CustomCalendarEditor(DateFormat dateFormat,
                            boolean allowEmpty)
Method Detail

getAsText

public String getAsText()
Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Throws:
IllegalArgumentException


Copyright © 2011. All Rights Reserved.