All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.datesbeans.DateConverter

java.lang.Object
    |
    +----com.ibm.datesbeans.FunctionBean
            |
            +----com.ibm.datesbeans.DateConverter

public class DateConverter
extends FunctionBean
Bean for formatting and parsing dates. The given bean allows to set the format of input/output dates in the application and to convert text to date (date to text). The format is set by the pattern property.

Since:
DatesBeans 1.0

Constructor Index

 o DateConverter()
Construct a DateConverter.

Method Index

 o getAboutThisBean()
Returns a special formatted string intended for use by the editor of this property.
 o getInputDate()
Gets the date which will be formatted.
 o getInputText()
Gets the text which will be parsed.
 o getPattern()
Gets the pattern for formatting/parsing date.
 o getResultDate()
Gets the current result of parsing of text.
 o getResultText()
Gets the current result of formatting of date.
 o setAboutThisBean(String)
Setter method for the aboutThisBean property to be available in the properties list.
 o setInputDate(Date)
Sets the date which will be formatted.
 o setInputText(String)
Sets the text which will be parsed.
 o setPattern(String)
Sets the pattern for formatting/parsing date.

Constructor Detail

 o DateConverter
public DateConverter()
          Construct a DateConverter.

Method Detail

 o getAboutThisBean
public java.lang.String getAboutThisBean()
          Returns a special formatted string intended for use by the editor of this property.
Returns:
the special formatted string for use by the editor of this property
 o getInputDate
public java.util.Date getInputDate()
          Gets the date which will be formatted.
Returns:
the date which will be formatted.
See Also:
setInputDate
 o getInputText
public java.lang.String getInputText()
          Gets the text which will be parsed.
Returns:
the text which will be parsed.
See Also:
setInputText
 o getPattern
public java.lang.String getPattern()
          Gets the pattern for formatting/parsing date.
Returns:
the pattern for formatting/parsing date.
See Also:
setPattern
 o getResultDate
public java.util.Date getResultDate()
          Gets the current result of parsing of text.
Returns:
the current result of parsing of text
 o getResultText
public java.lang.String getResultText()
          Gets the current result of formatting of date.
Returns:
the current result of formatting of date
 o setAboutThisBean
public void setAboutThisBean(java.lang.String newValue)
          Setter method for the aboutThisBean property to be available in the properties list. This method should not be used to set the aboutThisBean property value.
Parameters:
newValue - the special formatted string
 o setInputDate
public void setInputDate(java.util.Date value)
          Sets the date which will be formatted.
Parameters:
value - new value of date which will be formatted
See Also:
getInputDate
 o setInputText
public void setInputText(java.lang.String value)
          Sets the text which will be parsed.
Parameters:
value - new value of text which will be parsed
See Also:
getInputText
 o setPattern
public void setPattern(java.lang.String value)
          Sets the pattern for formatting/parsing date.
Parameters:
value - new value of pattern for formatting/parsing date
See Also:
getPattern

All Packages  Class Hierarchy  This Package  Previous  Next  Index