org.kuali.student.common.ui.client.widgets.progress
Class KSBlockingProgressIndicator
java.lang.Object
org.kuali.student.common.ui.client.widgets.progress.KSBlockingProgressIndicator
public class KSBlockingProgressIndicator
- extends Object
This class handles a static list of BlockingTasks, when a blocking task is added to the list, the blocking
progress indicator is shown to the user and the user can perform no action until all blocking tasks are finished/removed.
- Author:
- Bsmith
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tasks
private static LinkedList<BlockingTask> tasks
mainPanel
private static final com.google.gwt.user.client.ui.VerticalPanel mainPanel
listPanel
private static final com.google.gwt.user.client.ui.VerticalPanel listPanel
popupIndicator
private static KSLightBox popupIndicator
initialized
private static boolean initialized
width
private static int width
height
private static int height
KSBlockingProgressIndicator
public KSBlockingProgressIndicator()
initialize
public static void initialize()
- Initializes the blocking progress indicator. This must be called before
blocking task are added.
addTask
public static void addTask(BlockingTask task)
- Adds a blocking task to the queue. When all tasks are removed, the indicator
is no longer shown.
- Parameters:
task
- the task description to be added
removeTask
public static void removeTask(BlockingTask task)
- Removes the blocking task from the queue
- Parameters:
task
- the task to be removed from the blocking task queue
setSize
public static void setSize(int w,
int h)
updateIndicator
private static void updateIndicator()
showIndicator
private static void showIndicator()
hideIndicator
private static void hideIndicator()
setupDefaultStyle
private static void setupDefaultStyle()
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.