public class CalendarAction extends AbstractPageAction
AbstractPageAction.TerminalResource
Modifier and Type | Field and Description |
---|---|
protected AgendaView |
agendaView |
protected List<Calendar> |
calendars |
protected String |
calendarViewType |
protected Form |
configurationForm |
static String |
copyright |
protected List<Event> |
events |
static org.slf4j.Logger |
logger |
protected MonthView |
monthView |
protected DateTime |
referenceDateTime |
CONF_FORM_PREFIX, DEFAULT_LAYOUT_CONTAINER, PAGE_CONFIGURATION_FIELDS, PAGE_CONFIGURATION_FIELDS_NO_DETAIL, pageConfigurationForm, pageInstance, pageTemplate, PORTOFINO_PAGEACTION_EXCEPTION, portofinoConfiguration, returnUrl, script, serverInfo, templates
context
Constructor and Description |
---|
CalendarAction() |
Modifier and Type | Method and Description |
---|---|
Resolution |
agendaView() |
Resolution |
configure() |
Resolution |
execute() |
AgendaView |
getAgendaView() |
List<Calendar> |
getCalendars() |
String |
getCalendarViewType() |
CalendarConfiguration |
getConfiguration() |
Form |
getConfigurationForm() |
List<Event> |
getEvents() |
MonthView |
getMonthView() |
DateTime |
getReferenceDateTime() |
long |
getReferenceDateTimeLong() |
void |
loadObjects(DateTime instant,
int maxEvents) |
void |
loadObjects(Interval interval) |
Resolution |
monthView() |
Resolution |
nextDay() |
Resolution |
nextMonth() |
protected void |
prepareConfigurationForms()
Sets up the Elements form(s)
|
Resolution |
preparePage()
A lifecycle method invoked during the dispatch phase, where a http request is translated to a dispatch
(a path in the page tree) ultimately leading to an action invocation.
|
Resolution |
prevDay() |
Resolution |
prevMonth() |
void |
setCalendarViewType(String calendarViewType) |
void |
setReferenceDateTimeLong(long millis) |
Resolution |
today() |
Resolution |
updateConfiguration() |
acceptsPathParameter, cancel, consumePathFragment, createTemplateSelectionProvider, forwardTo, forwardToPageActionError, forwardToPageActionNotConfigured, getActionAPIPath, getActionPath, getButtons, getDefaultReturnUrl, getEmbeddedPageActions, getOgnlContext, getPage, getPageConfigurationForm, getPageDescription, getPageInstance, getPages, getPageTemplate, getParent, getPortofinoConfiguration, getResourcePath, getReturnUrl, getScript, getSubResource, initEmbeddedPageActions, isMultipartRequest, prepareScript, readPageConfigurationFromRequest, saveConfiguration, setPageConfigurationForm, setPageInstance, setPageTemplate, setReturnUrl, setScript, updatePageConfiguration, updateScript, updateTemplate, validatePageConfiguration
getContext, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext
setContext
public static final String copyright
protected MonthView monthView
protected AgendaView agendaView
protected DateTime referenceDateTime
protected String calendarViewType
protected Form configurationForm
public static final org.slf4j.Logger logger
public Resolution preparePage()
PageAction
public Resolution configure()
public Resolution updateConfiguration()
protected void prepareConfigurationForms()
AbstractPageAction
prepareConfigurationForms
in class AbstractPageAction
@DefaultHandler public Resolution execute()
public Resolution monthView()
public Resolution agendaView()
public Resolution nextMonth()
public Resolution prevMonth()
public Resolution nextDay()
public Resolution prevDay()
public Resolution today()
public void loadObjects(Interval interval)
public void loadObjects(DateTime instant, int maxEvents)
public MonthView getMonthView()
public AgendaView getAgendaView()
public long getReferenceDateTimeLong()
public void setReferenceDateTimeLong(long millis)
public String getCalendarViewType()
public void setCalendarViewType(String calendarViewType)
public DateTime getReferenceDateTime()
public Form getConfigurationForm()
public CalendarConfiguration getConfiguration()
getConfiguration
in class AbstractPageAction