public class CalendarPopupBuilder
extends java.lang.Object
CalendarPopupBuilder builder = new CalendarPopupBuilder(); builder.setCalendarListener(new CalendarPopupBuilder.CalendarListener() {
Modifier and Type | Class and Description |
---|---|
static interface |
CalendarPopupBuilder.CalendarListener
Listener that gets called once a user has selected a date in the calendar
|
class |
CalendarPopupBuilder.YearMouseAdapter
Mouse Adapter that changes the Year on the Calendar
|
Constructor and Description |
---|
CalendarPopupBuilder() |
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
|
CalendarPopupBuilder |
setButtonText(java.lang.String text)
Sets a custom button text on the button, if "OK" is not what you want.
|
CalendarPopupBuilder |
setCalendar(java.util.Calendar cal)
Sets the current date/time in the Calendar control
|
CalendarPopupBuilder |
setCalendar(java.util.Date date)
Sets the current date/time in the calendar control using a
Date instance |
CalendarPopupBuilder |
setCalendarListener(CalendarPopupBuilder.CalendarListener listener)
Sets the calendar listener that is called when the user selects a date and the calendar is closed.
|
public CalendarPopupBuilder setButtonText(java.lang.String text)
text
- Button textCalendarPopupBuilder
instancepublic CalendarPopupBuilder setCalendarListener(CalendarPopupBuilder.CalendarListener listener)
listener
- CalendarPopupBuilder.CalendarListener
instanceCalendarPopupBuilder
instancepublic CalendarPopupBuilder setCalendar(java.util.Calendar cal)
cal
- Calendar
instanceCalendarPopupBuilder
instancepublic CalendarPopupBuilder 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
-