Creating a Taxonomic e-Science

org.cateproject.controller.editor
Class DateTimeEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.cateproject.controller.editor.DateTimeEditor
All Implemented Interfaces:
PropertyEditor, org.springframework.core.convert.converter.GenericConverter

public class DateTimeEditor
extends PropertyEditorSupport
implements org.springframework.core.convert.converter.GenericConverter


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter
org.springframework.core.convert.converter.GenericConverter.ConvertiblePair
 
Constructor Summary
DateTimeEditor()
           
 
Method Summary
 Object convert(Object obj, org.springframework.core.convert.TypeDescriptor sourceClass, org.springframework.core.convert.TypeDescriptor targetClass)
           
 org.joda.time.DateTime convert(String text)
           
 String getAsText()
           
 Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()
           
 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
 

Constructor Detail

DateTimeEditor

public DateTimeEditor()
Method Detail

setAsText

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

getAsText

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

convert

public org.joda.time.DateTime convert(String text)

convert

public Object convert(Object obj,
                      org.springframework.core.convert.TypeDescriptor sourceClass,
                      org.springframework.core.convert.TypeDescriptor targetClass)
Specified by:
convert in interface org.springframework.core.convert.converter.GenericConverter

getConvertibleTypes

public Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()
Specified by:
getConvertibleTypes in interface org.springframework.core.convert.converter.GenericConverter

Creating a Taxonomic e-Science

Copyright © 2010. All Rights Reserved.