com.guiseframework.platform.web
Class WebProgressDepictEvent
java.lang.Object
java.util.EventObject
com.globalmentor.event.AbstractEvent
com.guiseframework.event.AbstractGuiseEvent
com.guiseframework.platform.AbstractPlatformEvent
com.guiseframework.platform.AbstractDepictEvent
com.guiseframework.platform.web.AbstractWebDepictEvent
com.guiseframework.platform.web.WebProgressDepictEvent
- All Implemented Interfaces:
- com.globalmentor.event.Event, GuiseEvent, DepictEvent, PlatformEvent, PlatformMessage, WebDepictEvent, WebPlatformEvent, WebPlatformMessage, java.io.Serializable
public class WebProgressDepictEvent
- extends AbstractWebDepictEvent
Indicates that some sort of progress has been made on the web platform.
- Author:
- Garret Wilson
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
WebProgressDepictEvent(DepictedObject depictedObject,
java.lang.String task,
com.globalmentor.model.TaskState taskState,
long progress)
Depicted object constructor with an unknown goal. |
WebProgressDepictEvent(DepictedObject depictedObject,
java.lang.String task,
com.globalmentor.model.TaskState taskState,
long progress,
long goal)
Depicted object and goal constructor. |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.globalmentor.event.Event |
getSource |
WebProgressDepictEvent
public WebProgressDepictEvent(DepictedObject depictedObject,
java.lang.String task,
com.globalmentor.model.TaskState taskState,
long progress)
- Depicted object constructor with an unknown goal.
- Parameters:
depictedObject - The depicted object on which the event initially occurred.task - The task being performed, or null if not indicated.taskState - The state of the task.progress - The amount of progress that has been made, or -1 if the progress is unknown.
- Throws:
java.lang.NullPointerException - if the given depicted object and/or task state is null.
WebProgressDepictEvent
public WebProgressDepictEvent(DepictedObject depictedObject,
java.lang.String task,
com.globalmentor.model.TaskState taskState,
long progress,
long goal)
- Depicted object and goal constructor.
- Parameters:
depictedObject - The depicted object on which the event initially occurred.task - The task being performed, or null if not indicated.taskState - The state of the task.progress - The amount of progress that has been made, or -1 if the progress is unknown.goal - The total amount of progress that will have been made upon completion, or -1 if the goal is unknown.
- Throws:
java.lang.NullPointerException - if the given depicted object and/or task state is null.
getTask
public java.lang.String getTask()
- Returns:
- The task being performed, or
null if not indicated.
getTaskState
public com.globalmentor.model.TaskState getTaskState()
- Returns:
- The state of the task.
getProgress
public long getProgress()
- Returns:
- The amount of progress that has been made, or -1 if the progress is unknown.
getGoal
public long getGoal()
- Returns:
- The total amount of progress that will have been made upon completion, or -1 if the goal is unknown.
Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.