Package com.vaadin.v7.client.ui.calendar
Class VCalendarAction
- java.lang.Object
-
- com.vaadin.client.ui.Action
-
- com.vaadin.v7.client.ui.calendar.VCalendarAction
-
- All Implemented Interfaces:
com.google.gwt.core.client.Scheduler.ScheduledCommand,com.google.gwt.user.client.Command
public class VCalendarAction extends Action
Action performed by the calendar.- Since:
- 7.1
- Author:
- Vaadin Ltd.
-
-
Constructor Summary
Constructors Constructor Description VCalendarAction(CalendarConnector owner)VCalendarAction(CalendarConnector owner, CalendarServerRpc rpc, String key)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()DategetActionEndDate()Get the date and time when the action ends.DategetActionStartDate()Get the date and time when the action starts.CalendarEventgetEvent()voidsetActionEndDate(Date actionEndDate)Set the date and time when the action ends.voidsetActionStartDate(Date actionStartDate)Set the date when the actions start.voidsetEvent(CalendarEvent event)-
Methods inherited from class com.vaadin.client.ui.Action
getCaption, getHTML, getIconUrl, setCaption, setIconUrl, toString
-
-
-
-
Constructor Detail
-
VCalendarAction
public VCalendarAction(CalendarConnector owner)
- Parameters:
owner-
-
VCalendarAction
public VCalendarAction(CalendarConnector owner, CalendarServerRpc rpc, String key)
Constructor.- Parameters:
owner- The owner who trigger this kinds of eventsrpc- The CalendarRpc which is used for executing actionskey- The unique action key which identifies this particular action
-
-
Method Detail
-
execute
public void execute()
-
getActionStartDate
public Date getActionStartDate()
Get the date and time when the action starts.- Returns:
-
setActionStartDate
public void setActionStartDate(Date actionStartDate)
Set the date when the actions start.- Parameters:
actionStartDate- The date and time when the action starts
-
getActionEndDate
public Date getActionEndDate()
Get the date and time when the action ends.- Returns:
-
setActionEndDate
public void setActionEndDate(Date actionEndDate)
Set the date and time when the action ends.- Parameters:
actionEndDate- The date and time when the action ends
-
getEvent
public CalendarEvent getEvent()
-
setEvent
public void setEvent(CalendarEvent event)
-
-