Class JDPStatusMessage
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----JDPStatusMessage
- public class JDPStatusMessage
- extends Panel
Class JDPStatusMessage represents a class for displaying status bar messages.
-
JDPStatusMessage(JDPUser)
- Creates a Status bar class.
-
JDPStatusMessage(JDPUser, PrintStream, String)
- Creates a Status bar class.
-
clearStatusMsg()
- Clear the current status message.
-
getStatusMsg()
- Get the current status message.
-
handleEvent(Event)
-
-
isStatusMsg()
- Check whether there is currently a status message displayed.
-
setPercent(int)
- Set the percent value of the progress bar on the message panel.
-
setStatusMsg(String, int)
- Display a new status message.
JDPStatusMessage
public JDPStatusMessage(JDPUser user)
- Creates a Status bar class.
- Parameters:
- JDPUser - the global user parameter used to pass handles in JDP.
JDPStatusMessage
public JDPStatusMessage(JDPUser user,
PrintStream serverResponse,
String jobName)
- Creates a Status bar class.
- Parameters:
- JDPUser - the global user parameter used to pass handles in JDP.
- serverResponse - a handle for JDPJagg to allow messages to come back from
remotely running jobs.
- jobName - the name of the remote job running on the server.
setStatusMsg
public synchronized void setStatusMsg(String smessage,
int clearAfter)
- Display a new status message.
- Parameters:
- statusMessage - the message to display.
- clearAfter - the number of seconds before the message should be removed.
setPercent
public synchronized void setPercent(int percentComplete)
- Set the percent value of the progress bar on the message panel.
- Parameters:
- percentComplete - the percent complete value.
clearStatusMsg
public synchronized void clearStatusMsg()
- Clear the current status message.
getStatusMsg
public String getStatusMsg()
- Get the current status message.
- Returns:
- the current status message.
isStatusMsg
public boolean isStatusMsg()
- Check whether there is currently a status message displayed.
- Returns:
- whether there is currently a status message displayed.
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class Component