public final class RequestEvent extends Event
YearPage
of the
CalendarView
. The CalendarView
will then automatically switch
to the DayPage
.Modifier and Type | Field and Description |
---|---|
static EventType<RequestEvent> |
REQUEST
An event type used to request that the UI shows a certain granularity.
|
static EventType<RequestEvent> |
REQUEST_DATE
An event type used to request that the UI shows a certain granularity.
|
static EventType<RequestEvent> |
REQUEST_DATE_TIME
An event type used to request that the UI shows a certain granularity.
|
static EventType<RequestEvent> |
REQUEST_ENTRY
An event type used to request that the UI shows a certain entry.
|
static EventType<RequestEvent> |
REQUEST_WEEK
An event type used to request that the UI shows a certain week.
|
static EventType<RequestEvent> |
REQUEST_YEAR
An event type used to request that the UI shows a certain granularity.
|
static EventType<RequestEvent> |
REQUEST_YEAR_MONTH
An event type used to request that the UI shows a certain granularity.
|
source
Constructor and Description |
---|
RequestEvent(Object source,
EventTarget target,
Entry<?> entry)
Constructs a new request event.
|
RequestEvent(Object source,
EventTarget target,
LocalDate date)
Constructs a new request event.
|
RequestEvent(Object source,
EventTarget target,
LocalDateTime dateTime)
Constructs a new request event.
|
RequestEvent(Object source,
EventTarget target,
Year year)
Constructs a new request event.
|
RequestEvent(Object source,
EventTarget target,
Year year,
int weekOfYear)
Constructs a new request event.
|
RequestEvent(Object source,
EventTarget target,
YearMonth yearMonth)
Constructs a new request event.
|
Modifier and Type | Method and Description |
---|---|
LocalDate |
getDate()
Returns the requested date.
|
LocalDateTime |
getDateTime()
Returns the requested date and time.
|
Entry<?> |
getEntry()
Returns the requested entry.
|
int |
getWeekOfYear()
Returns the requested week of year.
|
Year |
getYear()
Returns the requested year.
|
YearMonth |
getYearMonth()
Returns the requested year and month.
|
String |
toString() |
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumed
getSource
public static final EventType<RequestEvent> REQUEST
public static final EventType<RequestEvent> REQUEST_DATE
public static final EventType<RequestEvent> REQUEST_DATE_TIME
public static final EventType<RequestEvent> REQUEST_YEAR_MONTH
public static final EventType<RequestEvent> REQUEST_YEAR
public static final EventType<RequestEvent> REQUEST_WEEK
public static final EventType<RequestEvent> REQUEST_ENTRY
public RequestEvent(Object source, EventTarget target, LocalDate date)
source
- the event sourcetarget
- the event targetdate
- the day to showpublic RequestEvent(Object source, EventTarget target, LocalDateTime dateTime)
source
- the event sourcetarget
- the event targetdateTime
- the day and dateTime to showpublic RequestEvent(Object source, EventTarget target, Year year, int weekOfYear)
source
- the event sourcetarget
- the event targetyear
- the yearweekOfYear
- the week of year numberpublic RequestEvent(Object source, EventTarget target, YearMonth yearMonth)
source
- the event sourcetarget
- the event targetyearMonth
- the year month to showpublic RequestEvent(Object source, EventTarget target, Year year)
source
- the event sourcetarget
- the event targetyear
- the year to showpublic RequestEvent(Object source, EventTarget target, Entry<?> entry)
source
- the event sourcetarget
- the event targetentry
- the entry to showpublic LocalDate getDate()
public LocalDateTime getDateTime()
public YearMonth getYearMonth()
public Year getYear()
public Entry<?> getEntry()
public int getWeekOfYear()
public String toString()
toString
in class EventObject
Copyright © 2017 Dirk Lemmermann Software & Consulting. All rights reserved.