Package com.vaadin.client.ui.calendar
Class VCalendarAction
- java.lang.Object
-
- com.vaadin.client.ui.Action
-
- com.vaadin.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 void
execute()
Executed when action firedDate
getActionEndDate()
Get the date and time when the action endsDate
getActionStartDate()
Get the date and time when the action startsCalendarEvent
getEvent()
void
setActionEndDate(Date actionEndDate)
Set the date and time when the action endsvoid
setActionStartDate(Date actionStartDate)
Set the date when the actions startvoid
setEvent(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()
Description copied from class:Action
Executed when action fired
-
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)
-
-