|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.util.CurrentTime
public class CurrentTime
CurrentTime
is a text model that updates itself with the current time.
The default update interval is one second.
Field Summary | |
---|---|
static java.lang.String |
RB_KEY
|
Fields inherited from class com.sas.util.DateTimeMonitor |
---|
alarm, date, dateTimeFormat, defaultTimeZone |
Fields inherited from interface com.sas.util.TimeIntervals |
---|
ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK |
Constructor Summary | |
---|---|
CurrentTime()
Default constructor. |
|
CurrentTime(java.text.DateFormat timeFormat)
Custom constructor for non- Locale default time format. |
|
CurrentTime(java.text.DateFormat timeFormat,
java.util.Calendar calendar)
Deprecated. the calendar parameter is no longer used. Use
|
|
CurrentTime(long interval)
Custom constructor for default date format. |
|
CurrentTime(long interval,
int format)
Custom constructor for default date format |
|
CurrentTime(java.lang.String format)
Custom constructor for default date format |
Method Summary | |
---|---|
protected long |
getDelay()
Override the delay until the alarm should fire. |
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
|
Methods inherited from class com.sas.util.DateTimeMonitor |
---|
fireAlarm, getDateTime, getFormat, getInterval, isAlarmRunning, newAlarm, setFormat, setInterval, start, stop, update, validateObject |
Field Detail |
---|
public static final java.lang.String RB_KEY
Constructor Detail |
---|
public CurrentTime()
CurrentTime
object which updates
it's text attribute when the date changes, using the
default Locale
specific date format.
public CurrentTime(java.text.DateFormat timeFormat, java.util.Calendar calendar)
CurrentTime(DateFormat timeFormat)
Locale
default time format.
timeFormat
- a date format with which the time is rendered.calendar
- a calendar with which time values are obtainedpublic CurrentTime(java.text.DateFormat timeFormat)
Locale
default time format.
timeFormat
- a date format with which the time is rendered.public CurrentTime(long interval)
interval
- how often you want the time updated;
for example,
TimeIntervals.ONE_SECOND
,
TimeIntervals.ONE_MINUTE
,
etc.DateFormat
public CurrentTime(long interval, int format)
interval
- how often you want the time updated;
for example,
TimeIntervals.ONE_SECOND
,
TimeIntervals.ONE_MINUTE
,
etc.format
- one of
DateFormat.SHORT
,
DateFormat.MEDIUM
,
DateFormat.LONG
, or
DateFormat.FULL
public CurrentTime(java.lang.String format)
format
- a format string used to construct a SimpleDateFormat
object which is used to format the date and time.
The default time zone is used.Method Detail |
---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
protected long getDelay()
CurrentTime
,
this is simply 0 -- start monitoring immediately.
getDelay
in class DateTimeMonitor
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |