|
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 | +--com.klg.jclass.swing.JCPopupCalendar.DateEditor
The default editor for the JCPopupCalendar.
Field Summary | |
protected int |
calendarType
The type of calendar - either Date_TIME or DATE. |
protected JFormattedTextField |
editor
The editor component. |
protected com.klg.jclass.swing.JCPopupCalendar |
popupCalendar
The parent popup calendar. |
Constructor Summary | |
JCPopupCalendar.DateEditor(com.klg.jclass.swing.JCPopupCalendar popupCalendar,
int calendarType,
Date d)
Create a DateEditor given its parent, the type of calendar, and an initial date. |
|
JCPopupCalendar.DateEditor(com.klg.jclass.swing.JCPopupCalendar popupCalendar,
int calendarType,
Date d,
Locale l)
Create a DateEditor given its parent, the type of calendar, an initial date, and a locale. |
Method Summary | |
void |
addActionListener(ActionListener l)
Add an ActionListener. |
int |
getCalendarType()
Get the calendar type for the editor. |
Component |
getEditorComponent()
Return the component that should be added to the tree hierarchy for this editor. |
Object |
getItem()
Return the edited item which will be of type Date. |
com.klg.jclass.swing.JCPopupCalendar |
getPopupCalendar()
Return the editor's JCPopupCalendar parent. |
void |
removeActionListener(ActionListener l)
Remove an ActionListener. |
void |
selectAll()
Ask the editor to start editing and to select everything. |
void |
setCalendarType(int calendarType)
Set the calendarType on the editor. |
void |
setFormat(DateFormat df)
The format to use for the editor. |
void |
setItem(Object anObject)
Set the item that should be edited. |
void |
setLocale(Locale locale)
Set the locale on the editor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.swing.JCPopupCalendar popupCalendar
protected JFormattedTextField editor
protected int calendarType
Constructor Detail |
public JCPopupCalendar.DateEditor(com.klg.jclass.swing.JCPopupCalendar popupCalendar, int calendarType, Date d)
popupCalendar
- The parent popup calendarcalendarType
- The type of calendar. Must be one of
JCPopupCalendar.DATE_TIME or JCPopupCalendar.DATEd
- The initial date for the editorpublic JCPopupCalendar.DateEditor(com.klg.jclass.swing.JCPopupCalendar popupCalendar, int calendarType, Date d, Locale l)
popupCalendar
- The parent popup calendarcalendarType
- The type of calendar. Must be one of
JCPopupCalendar.DATE_TIME or JCPopupCalendar.DATEd
- The initial date for the editorl
- The locale to useMethod Detail |
public com.klg.jclass.swing.JCPopupCalendar getPopupCalendar()
public int getCalendarType()
public void setCalendarType(int calendarType)
calendarType
- The new calendarType. Must be one of
JCPopupCalendar.DATE_TIME or JCPopupCalendar.DATEpublic void setLocale(Locale locale)
locale
- The new localepublic void setFormat(DateFormat df)
df
- The new formatpublic Component getEditorComponent()
getEditorComponent
in interface ComboBoxEditor
public void setItem(Object anObject)
setItem
in interface ComboBoxEditor
anObject
- The new item to be edited. It must be null or of type
Datepublic Object getItem()
getItem
in interface ComboBoxEditor
public void selectAll()
selectAll
in interface ComboBoxEditor
public void addActionListener(ActionListener l)
addActionListener
in interface ComboBoxEditor
l
- The action listener to be addedpublic void removeActionListener(ActionListener l)
removeActionListener
in interface ComboBoxEditor
l
- The action listener to be removed
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |