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
DateConverter()
- Construct a DateConverter.
getAboutThisBean()
- Returns a special formatted string intended for use by the editor of this property.
getInputDate()
- Gets the date which will be formatted.
getInputText()
- Gets the text which will be parsed.
getPattern()
- Gets the pattern for formatting/parsing date.
getResultDate()
- Gets the current result of parsing of text.
getResultText()
- Gets the current result of formatting of date.
setAboutThisBean(String)
- Setter method for the aboutThisBean property to be available in the properties list.
setInputDate(Date)
- Sets the date which will be formatted.
setInputText(String)
- Sets the text which will be parsed.
setPattern(String)
- Sets the pattern for formatting/parsing date.
DateConverter
public DateConverter()
Construct a DateConverter.
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
getInputDate
public java.util.Date getInputDate()
Gets the date which will be formatted.
- Returns:
- the date which will be formatted.
- See Also:
- setInputDate
getInputText
public java.lang.String getInputText()
Gets the text which will be parsed.
- Returns:
- the text which will be parsed.
- See Also:
- setInputText
getPattern
public java.lang.String getPattern()
Gets the pattern for formatting/parsing date.
- Returns:
- the pattern for formatting/parsing date.
- See Also:
- setPattern
getResultDate
public java.util.Date getResultDate()
Gets the current result of parsing of text.
- Returns:
- the current result of parsing of text
getResultText
public java.lang.String getResultText()
Gets the current result of formatting of date.
- Returns:
- the current result of formatting of date
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
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
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
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