The DatesBeans Suite is intended
for creation of applications that use dates. It allows converting dates to a text and vice
versa, and also performing calculations on them.
- To format and parse dates, use the DateConverter bean. Wire
the input inputDate (or inputText) property and the result resultText (or resultDate)
property.
- To inspect the process of entering a date by the user, use
the DateSupport bean. Wire a visual component of text editing to the inputComponent
property, customize the pattern and wire the result property to other elements (or another
element) of your application.
- To perform operations on dates and dates, dates and numbers,
use the DateEvaluator bean. Wire inputFirstArg and inputSecondArg properties, customize
the operation type and wire the resultAsDate or resultAsDays property.
|
DateConverter |
Bean for formatting and parsing dates. This
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. |
DateSupport |
This bean can inspect the process of entering
a date by the user. The bean automatically converts the text in the component into the
date and checks it according to a defined format |
DateEvaluator |
Bean for executing operations with dates and numbers (date
- date, date + days etc.) |
|
Copyright © IBM
Corporation 1999. All rights reserved. Java, JavaBeans, Swing and 100% Pure Java are
trademarks of Sun Microsystems, Inc. All other trademarks are the property of their
respective owners. |