org.wicketstuff.progressbar.spring
Class TaskProgressionModel

java.lang.Object
  extended by org.apache.wicket.model.AbstractReadOnlyModel<org.wicketstuff.progressbar.Progression>
      extended by org.wicketstuff.progressbar.ProgressionModel
          extended by org.wicketstuff.progressbar.spring.TaskProgressionModel
All Implemented Interfaces:
Serializable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<org.wicketstuff.progressbar.Progression>, org.apache.wicket.util.io.IClusterable

public class TaskProgressionModel
extends org.wicketstuff.progressbar.ProgressionModel

Use this as a model for a ProgressBar, if tasks are submitted to the task service. The current progress is fetched from the task service. After scheduling a task, set the taskId.

Author:
Christopher Hlubek (hlubek)
See Also:
Serialized Form

Constructor Summary
TaskProgressionModel()
           
TaskProgressionModel(ITaskService taskService)
           
 
Method Summary
protected  org.wicketstuff.progressbar.Progression getProgression()
           
 Long getTaskId()
           
protected  ITaskService getTaskService()
           
 void setTaskId(Long taskId)
           
 
Methods inherited from class org.wicketstuff.progressbar.ProgressionModel
getObject
 
Methods inherited from class org.apache.wicket.model.AbstractReadOnlyModel
detach, setObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskProgressionModel

public TaskProgressionModel(ITaskService taskService)

TaskProgressionModel

public TaskProgressionModel()
Method Detail

getProgression

protected org.wicketstuff.progressbar.Progression getProgression()
Specified by:
getProgression in class org.wicketstuff.progressbar.ProgressionModel

getTaskId

public Long getTaskId()

setTaskId

public void setTaskId(Long taskId)

getTaskService

protected ITaskService getTaskService()


Copyright © 2007–2016. All rights reserved.