Package org.dellroad.stuff.vaadin7
Class VaadinDelayedAction
- java.lang.Object
-
- org.dellroad.stuff.spring.DelayedAction
-
- org.dellroad.stuff.vaadin7.VaadinDelayedAction
-
- All Implemented Interfaces:
Runnable
public abstract class VaadinDelayedAction extends DelayedAction
DelayedActionfor actions that are associated with a Vaadin appliction.
-
-
Constructor Summary
Constructors Constructor Description VaadinDelayedAction(TaskScheduler taskScheduler)Convenience constructor.VaadinDelayedAction(TaskScheduler taskScheduler, VaadinSession session)Primary constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidrun()InvokesrunInVaadin()in the context of the configuredVaadinSession.protected abstract voidrunInVaadin()Perform the action.-
Methods inherited from class org.dellroad.stuff.spring.DelayedAction
cancel, getScheduledTime, isScheduled, schedule, schedule
-
-
-
-
Constructor Detail
-
VaadinDelayedAction
public VaadinDelayedAction(TaskScheduler taskScheduler)
Convenience constructor. Equivalent to:VaadinDelayedAction(taskScheduler, VaadinUtil.getCurrentSession())- Parameters:
taskScheduler- scheduler object
-
VaadinDelayedAction
public VaadinDelayedAction(TaskScheduler taskScheduler, VaadinSession session)
Primary constructor.- Parameters:
taskScheduler- scheduler objectsession- theVaadinSessionwith which the action is associated- Throws:
NullPointerException- ifsessionis null
-
-
Method Detail
-
run
public final void run()
InvokesrunInVaadin()in the context of the configuredVaadinSession.
-
runInVaadin
protected abstract void runInVaadin()
Perform the action. This method will be invoked in the context of the configuredVaadinSession.
-
-