public interface CalendarPopupComponent extends CalendarComponent
| Modifier and Type | Interface and Description |
|---|---|
static interface |
CalendarPopupComponent.CalendarDay
Interface for calendar day.
|
static interface |
CalendarPopupComponent.CalendarMonth
Interface for calendar month.
|
static interface |
CalendarPopupComponent.CalendarWeek
Interface for calendar week.
|
static interface |
CalendarPopupComponent.CalendarYear
Interface for calendar year.
|
static interface |
CalendarPopupComponent.TimeUnit
Interface for a time unit.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearInput()
Clears the input which is showing the selected date.
|
CalendarPopupComponent.CalendarDay |
getDayOfMonth()
Returns the day of the month, if there is a date set in the calendar then this date is considered, current date
otherwise.
|
CalendarPopupComponent.CalendarDay |
getDayOfMonth(int day)
Returns a specific day of the month, if there is a date set in the calendar then this date is considered, current date
otherwise.
|
CalendarPopupComponent.CalendarDay |
getDayOfWeek()
Returns the day of the week, if there is a date set in the calendar then this date is considered, current date otherwise.
|
CalendarPopupComponent.CalendarDay |
getDayOfWeek(int day)
Returns a specific day of the week, if there is a date set in the calendar then this date is considered, current date
otherwise.
|
CalendarPopupComponent.CalendarDay |
getDayOfYear()
Returns the day of the year, if there is a date set in the calendar then this date is considered, current date otherwise.
|
CalendarPopupComponent.CalendarDay |
getDayOfYear(int day)
Returns a specific day of the year, if there is a date set in the calendar then this date is considered, current date
otherwise.
|
List<CalendarPopupComponent.CalendarDay> |
getDaysOfMonth()
Returns all the days of the month, if there is a date set in the calendar then this date is considered, current date
otherwise.
|
List<CalendarPopupComponent.CalendarDay> |
getDaysOfWeek()
Returns all the days of the week, if there is a date set in the calendar then this date is considered, current date
otherwise.
|
List<CalendarPopupComponent.CalendarDay> |
getDaysOfYear()
Returns all the days of the year, if there is a date set in the calendar then this date is considered, current date
otherwise.
|
CalendarPopupComponent.CalendarMonth |
getMonth()
Returns the month, if there is a date set in the calendar then this date is considered, current date otherwise.
|
CalendarPopupComponent.CalendarMonth |
getMonth(int month)
Returns a specific month, if there is a date set in the calendar then this date is considered, current date otherwise.
|
List<CalendarPopupComponent.CalendarMonth> |
getMonths()
Returns all the months of the year, if there is a date set in the calendar then this date is considered, current date
otherwise.
|
CalendarPopupComponent.CalendarWeek |
getWeekOfMonth()
Returns the week of the month, if there is a date set in the calendar then this date is considered, current date
otherwise.
|
CalendarPopupComponent.CalendarWeek |
getWeekOfMonth(int week)
Returns a specific week of the month, if there is a date set in the calendar then this date is considered, current date
otherwise.
|
CalendarPopupComponent.CalendarWeek |
getWeekOfYear()
Returns the week of the year, if there is a date set in the calendar then this date is considered, current date
otherwise.
|
CalendarPopupComponent.CalendarWeek |
getWeekOfYear(int week)
Returns a specific week of the year, if there is a date set in the calendar then this date is considered, current date
otherwise.
|
List<CalendarPopupComponent.CalendarWeek> |
getWeeksOfMonth()
Returns all the weeks of the month, if there is a date set in the calendar then this date is considered, current date
otherwise.
|
List<CalendarPopupComponent.CalendarWeek> |
getWeeksOfYear()
Returns all the weeks of the year, if there is a date set in the calendar then this date is considered, current date
otherwise.
|
CalendarPopupComponent.CalendarYear |
getYear()
Returns the year, if there is a date set in the calendar then this date is considered, current date otherwise.
|
CalendarPopupComponent.CalendarYear |
getYear(int year)
Returns a specific year, if there is a date set in the calendar then this date is considered, current date otherwise.
|
List<CalendarPopupComponent.CalendarYear> |
getYears(int from,
int to)
Returns all the years from the range determined by
from and to. |
void |
gotoDateTime(org.joda.time.DateTime dateTime,
ScrollingType type)
Set the date on the calendar
|
CalendarPopupComponent.CalendarDay |
gotoNextDay()
Set the next day of the current set date.
|
CalendarPopupComponent.CalendarMonth |
gotoNextMonth()
Set the next month of the current set date.
|
CalendarPopupComponent.CalendarYear |
gotoNextYear()
Set the next year of the current set date.
|
CalendarPopupComponent.CalendarDay |
gotoPreviousDay()
Set the previous day of the current set date.
|
CalendarPopupComponent.CalendarMonth |
gotoPreviousMonth()
Set the previous month of the current set date.
|
CalendarPopupComponent.CalendarYear |
gotoPreviousYear()
Set the previous year of the current set date.
|
void |
hideCalendar()
Hides the calendar if it is in the popup mode, that is it hides the calendar.
|
void |
showCalendar()
Displays the calendar only if it is not already displayed, that is when it can be displayed in the popup mode, it is
shown up.
|
getDateTime, gotoDateTimevoid clearInput()
void showCalendar()
void hideCalendar()
void gotoDateTime(org.joda.time.DateTime dateTime,
ScrollingType type)
dateTime - the date to settype - the type of way to set the date, for example by mouseCalendarPopupComponent.CalendarDay gotoNextDay()
CalendarPopupComponent.CalendarMonth gotoNextMonth()
Set the next month of the current set date. If the current set date is not part of the next month, then the last day of next month is set.
For example when the current set date is January 30th and this method is invoked, then February 28th is set (February 29th in case of leap year)
CalendarPopupComponent.CalendarYear gotoNextYear()
Set the next year of the current set date. If the current set date is not part of the next year, then the last day of the next year is set.
For example when the current set date is February 29th (it is the leap year) and this method is invoked, then the February 28th is set.
CalendarPopupComponent.CalendarDay gotoPreviousDay()
CalendarPopupComponent.CalendarMonth gotoPreviousMonth()
Set the previous month of the current set date. If the current set date is not part of the previous month, then the last day of previous month is set.
For example when the current set date is March 30th and this method is invoked, then February 28th is set (February 29th in case of leap year)
CalendarPopupComponent.CalendarYear gotoPreviousYear()
Set the previous year of the current set date. If the current set date is not part of the previous year, then the last day of the previous year is set.
For example when the current set date is February 29th, 2012 (it is the leap year) and this method is invoked, then the February 28th, 2011 is set.
CalendarPopupComponent.CalendarDay getDayOfMonth()
CalendarPopupComponent.CalendarDay getDayOfMonth(int day)
day - the number of the day in the monthList<CalendarPopupComponent.CalendarDay> getDaysOfMonth()
CalendarPopupComponent.CalendarDay getDayOfWeek()
CalendarPopupComponent.CalendarDay getDayOfWeek(int day)
day - the number of the day in the weekList<CalendarPopupComponent.CalendarDay> getDaysOfWeek()
CalendarPopupComponent.CalendarDay getDayOfYear()
CalendarPopupComponent.CalendarDay getDayOfYear(int day)
day - the number of the day in the yearList<CalendarPopupComponent.CalendarDay> getDaysOfYear()
CalendarPopupComponent.CalendarWeek getWeekOfMonth()
CalendarPopupComponent.CalendarWeek getWeekOfMonth(int week)
week - the number of the week in the currently set monthList<CalendarPopupComponent.CalendarWeek> getWeeksOfMonth()
CalendarPopupComponent.CalendarWeek getWeekOfYear()
CalendarPopupComponent.CalendarWeek getWeekOfYear(int week)
week - the number of the week in the currently set yearList<CalendarPopupComponent.CalendarWeek> getWeeksOfYear()
CalendarPopupComponent.CalendarMonth getMonth()
CalendarPopupComponent.CalendarMonth getMonth(int month)
month - the number of the month in the set dateList<CalendarPopupComponent.CalendarMonth> getMonths()
CalendarPopupComponent.CalendarYear getYear()
CalendarPopupComponent.CalendarYear getYear(int year)
List<CalendarPopupComponent.CalendarYear> getYears(int from, int to)
from and to.from - the starting year inclusivelyto - the ending year inclusivelyCopyright © 2013 JBoss by Red Hat. All Rights Reserved.