public class FWMCalendarPopupBuilder
extends java.lang.Object
CalendarPopupBuilder builder = new CalendarPopupBuilder(); builder.setCalendarListener(new CalendarPopupBuilder.CalendarListener() {
Modifier and Type | Class and Description |
---|---|
static interface |
FWMCalendarPopupBuilder.CalendarListener
Listener that gets called once a user has selected a date in the calendar
|
Constructor and Description |
---|
FWMCalendarPopupBuilder() |
Modifier and Type | Method and Description |
---|---|
javax.swing.JDialog |
create()
Created the JDialog but does not show it.
|
void |
createAndShowAt(int x,
int y)
Creates the dialog and shows it at the given location
|
FWMCalendarPopupBuilder |
setButtonText(java.lang.String text)
Sets a custom button text on the button, if "OK" is not what you want.
|
FWMCalendarPopupBuilder |
setCalendar(java.util.Calendar cal)
Sets the current date/time in the Calendar control
|
FWMCalendarPopupBuilder |
setCalendar(java.util.Date date)
Sets the current date/time in the calendar control using a
Date instance |
FWMCalendarPopupBuilder |
setCalendarListener(FWMCalendarPopupBuilder.CalendarListener listener)
Sets the calendar listener that is called when the user selects a date and the calendar is closed.
|
public FWMCalendarPopupBuilder setButtonText(java.lang.String text)
text
- Button textCalendarPopupBuilder
instancepublic FWMCalendarPopupBuilder setCalendarListener(FWMCalendarPopupBuilder.CalendarListener listener)
listener
- FWMCalendarPopupBuilder.CalendarListener
instanceCalendarPopupBuilder
instancepublic FWMCalendarPopupBuilder setCalendar(java.util.Calendar cal)
cal
- Calendar
instanceCalendarPopupBuilder
instancepublic FWMCalendarPopupBuilder setCalendar(java.util.Date date)
Date
instancedate
- Date
instanceCalendarPopupBuilder
instancepublic javax.swing.JDialog create()
JDialog
instance that contains the calendar popup controlpublic void createAndShowAt(int x, int y)
x
- y
-