|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.swing.DateLabelInfoProvider
public class DateLabelInfoProvider
Label provider for a date.
| Constructor Summary | |
|---|---|
DateLabelInfoProvider()
|
|
| Method Summary | |
|---|---|
protected Date |
getDate(Object item)
Extracts the date from the item. |
protected DateFormat |
getDateFormat()
Computes the DataFormat to use. |
String |
getFormat()
Returns the format property. |
LabelInfo |
getLabelIcon(Object item)
Gets the label information. |
String |
getStyle()
Returns the style property. |
String |
getTimeStyle()
Returns the timeStyle property. |
void |
setFormat(String format)
Sets the format property. |
void |
setStyle(String style)
Sets the style property. |
void |
setTimeStyle(String timeStyle)
Sets the timeStyle property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateLabelInfoProvider()
| Method Detail |
|---|
protected Date getDate(Object item)
item - Item
protected DateFormat getDateFormat()
DataFormat to use.
If the format attribute is set, is is used to create a
SimpleDateFormat instance.
If either style or timeStyle attribute is set,
a DateFormat instance is created from the style (see
DateFormat.getDateInstance(int),
DateFormat.getDateTimeInstance(int, int) and
DateFormat.getTimeInstance(int)).
If no attribute is set, a default DateFormat instance is
created (see DateFormat.getDateInstance()).
DateFormat instance.public String getFormat()
format property.
format property.public LabelInfo getLabelIcon(Object item)
LabelInfoProvider
getLabelIcon in interface LabelInfoProvideritem - the item
public String getStyle()
style property.
style property.public String getTimeStyle()
timeStyle property.
timeStyle property.public void setFormat(String format)
format property.
format - format property.public void setStyle(String style)
style property.
style - style property.public void setTimeStyle(String timeStyle)
timeStyle property.
timeStyle - timeStyle property.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||