| java.lang.Object org.netbeans.progress.spi.InternalHandle
InternalHandle | final public class InternalHandle (Code) | | Instances provided by the ProgressHandleFactory allow the users of the API to
notify the progress bar UI about changes in the state of the running task.
author: Milos Kleint (mkleint@netbeans.org) |
NO_INCREASE | final public static int NO_INCREASE(Code) | | |
STATE_FINISHED | final public static int STATE_FINISHED(Code) | | |
STATE_INITIALIZED | final public static int STATE_INITIALIZED(Code) | | |
STATE_REQUEST_STOP | final public static int STATE_REQUEST_STOP(Code) | | |
STATE_RUNNING | final public static int STATE_RUNNING(Code) | | |
InternalHandle | public InternalHandle(String displayName, Cancellable cancel, boolean userInitiated, Action view)(Code) | | Creates a new instance of ProgressHandle
|
calculateFinishEstimate | long calculateFinishEstimate()(Code) | | |
extractComponent | public synchronized JComponent extractComponent()(Code) | | have the component in custom location, don't include in the status bar.
|
extractDetailLabel | public synchronized JLabel extractDetailLabel()(Code) | | |
extractMainLabel | public synchronized JLabel extractMainLabel()(Code) | | |
finish | public synchronized void finish()(Code) | | finish the task, remove the task's component from the progress bar UI.
|
getInitialDelay | public int getInitialDelay()(Code) | | |
getPercentageDone | public double getPercentageDone()(Code) | | public because of tests.
|
getState | public synchronized int getState()(Code) | | XXX - called from UI, threading
|
getTimeStampStarted | public long getTimeStampStarted()(Code) | | |
getTotalUnits | public int getTotalUnits()(Code) | | |
isAllowCancel | public boolean isAllowCancel()(Code) | | |
isAllowView | public boolean isAllowView()(Code) | | |
isCustomPlaced | public boolean isCustomPlaced()(Code) | | |
isInSleepMode | public boolean isInSleepMode()(Code) | | |
isUserInitialized | public boolean isUserInitialized()(Code) | | |
progress | public synchronized void progress(String message, int workunit)(Code) | | Parameters: message - Parameters: workunit - |
requestCancel | public void requestCancel()(Code) | | |
requestDisplayNameChange | public synchronized void requestDisplayNameChange(String newDisplayName)(Code) | | |
requestExplicitSelection | public synchronized void requestExplicitSelection()(Code) | | |
requestView | public void requestView()(Code) | | |
setInitialDelay | public void setInitialDelay(int millis)(Code) | | |
start | public synchronized void start(String message, int workunits, long estimate)(Code) | | start the progress indication for a task with known number of steps and known
time estimate for completing the task.
Parameters: message - Parameters: workunits - Parameters: estimate - estimated time to process the task in seconds |
toDeterminate | public synchronized void toDeterminate(int workunits, long estimate)(Code) | | |
toIndeterminate | public synchronized void toIndeterminate()(Code) | | |
toSilent | public synchronized void toSilent(String message)(Code) | | |
|
|