|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.qt.ext.text.DateFormatter
public class DateFormatter
The DateFormatter handles complex date formats.
| Constructor Summary | |
|---|---|
DateFormatter()
Constructs a new date formatter with default date format. |
|
DateFormatter(DateFormat pDateFormat)
Constructs a new date formatter that supports empty Strings and null values. |
|
| Method Summary | |
|---|---|
DateFormat |
getDateFormat()
Gets the date format. |
String |
getDatePattern()
Gets the date format pattern. |
void |
setDateFormat(DateFormat pDateFormat)
Gets the date format. |
void |
setDatePattern(String pDatePattern)
Gets the date format pattern. |
QDateTime |
toDateTime(String pText)
Gets the date/time from a txt. |
String |
toString(QDateTime pValue)
Gets a string from a date/time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateFormatter()
public DateFormatter(DateFormat pDateFormat)
pDateFormat - the formatter that should support empty Strings and null values.| Method Detail |
|---|
public QDateTime toDateTime(String pText)
throws ParseException
pText - the text representation
ParseException - if it's not possible to parse the date/time format
public String toString(QDateTime pValue)
throws ParseException
pValue - the date/time
ParseException - if the date format is not validsetDateFormat(DateFormat)public DateFormat getDateFormat()
public void setDateFormat(DateFormat pDateFormat)
pDateFormat - the date format.public String getDatePattern()
public void setDatePattern(String pDatePattern)
pDatePattern - the date format pattern.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||