|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JLabel | +--com.klg.jclass.util.calendar.AbstractLabel | +--com.klg.jclass.util.calendar.TimeLabel
Label that shows the time.
Nested Class Summary |
Nested classes inherited from class javax.swing.JLabel |
JLabel.AccessibleJLabel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected DateFormat |
dateFormat
|
Fields inherited from class com.klg.jclass.util.calendar.AbstractLabel |
locale, model |
Fields inherited from class javax.swing.JLabel |
labelFor |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
TimeLabel(com.klg.jclass.util.value.JCValueModel model,
DateFormat dateFormat)
Construct a TimeLabel for the given value model and date formatter. |
|
TimeLabel(com.klg.jclass.util.value.JCValueModel model,
Locale l)
Construct a TimeLabel for the given value model and locale. |
Method Summary | |
DateFormat |
getDateFormat()
Get the date formatter to use for formatting the date. |
void |
setCalendarModel(com.klg.jclass.util.value.JCValueModel model)
Set the current date being used by the calendar component |
void |
setDateFormat(DateFormat dateFormat)
Set the date formatter to use for formatting the date. |
void |
setLocale(Locale l)
Set the locale the TimeLabel object should use. |
protected void |
updateLabel()
Create label text based on the current model value and the date formatter and set the text on the label. |
void |
valueChanged(com.klg.jclass.util.value.JCValueEvent event)
The method informs the listener that the value has been changed. |
Methods inherited from class com.klg.jclass.util.calendar.AbstractLabel |
addActionListener, getLocale, removeActionListener, setSpecialDates, valueChanging |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected DateFormat dateFormat
Constructor Detail |
public TimeLabel(com.klg.jclass.util.value.JCValueModel model, Locale l)
model
- The calendar value modell
- The locale object to usepublic TimeLabel(com.klg.jclass.util.value.JCValueModel model, DateFormat dateFormat)
model
- The calendar value modeldateFormat
- The date formatter to useMethod Detail |
public DateFormat getDateFormat()
public void setDateFormat(DateFormat dateFormat)
dateFormat
- The new date formatterpublic void setLocale(Locale l)
setLocale
in interface CalendarComponent
setLocale
in class AbstractLabel
l
- The locale object to use.public void setCalendarModel(com.klg.jclass.util.value.JCValueModel model)
setCalendarModel
in interface CalendarComponent
setCalendarModel
in class AbstractLabel
model
- The new calendar value modelpublic void valueChanged(com.klg.jclass.util.value.JCValueEvent event)
valueChanged
in interface JCValueListener
valueChanged
in class AbstractLabel
event
- The event generated by the value changeprotected void updateLabel()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |