|
JIDE Common Layer 2.7.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jidesoft.converter.DateConverter
com.jidesoft.converter.CalendarConverter
public class CalendarConverter
Converter which converts Calendar to String and converts it back.
Field Summary |
---|
Fields inherited from class com.jidesoft.converter.DateConverter |
---|
DATE_CONTEXT, DATETIME_CONTEXT, TIME_CONTEXT |
Constructor Summary | |
---|---|
CalendarConverter()
Creates a new CalendarConverter. |
Method Summary | |
---|---|
java.lang.Object |
fromString(java.lang.String string,
ConverterContext context)
Converts from a String to a Calendar. |
java.lang.String |
toString(java.lang.Object object,
ConverterContext context)
Converts the object to String. |
Methods inherited from class com.jidesoft.converter.DateConverter |
---|
getDefaultDatetimeFormat, getDefaultFormat, getDefaultTimeFormat, setDefaultDatetimeFormat, setDefaultFormat, setDefaultTimeFormat, supportFromString, supportToString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalendarConverter()
Method Detail |
---|
public java.lang.String toString(java.lang.Object object, ConverterContext context)
DateConverter
toString
in interface ObjectConverter
toString
in class DateConverter
object
- the object to be convertedcontext
- the converter context.
public java.lang.Object fromString(java.lang.String string, ConverterContext context)
fromString
in interface ObjectConverter
fromString
in class DateConverter
string
- the string to be converted.context
- the context. It could be DATETIME_CONTEXT, DATE_CONTEXT or TIME_CONTEXT.
|
JIDE Common Layer 2.7.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |