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.


Constructor Index

 o JDPStatusMessage(JDPUser)
Creates a Status bar class.
 o JDPStatusMessage(JDPUser, PrintStream, String)
Creates a Status bar class.

Method Index

 o clearStatusMsg()
Clear the current status message.
 o getStatusMsg()
Get the current status message.
 o handleEvent(Event)
 o isStatusMsg()
Check whether there is currently a status message displayed.
 o setPercent(int)
Set the percent value of the progress bar on the message panel.
 o setStatusMsg(String, int)
Display a new status message.

Constructors

 o JDPStatusMessage
 public JDPStatusMessage(JDPUser user)
Creates a Status bar class.

Parameters:
JDPUser - the global user parameter used to pass handles in JDP.
 o 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.

Methods

 o 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.
 o 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.
 o clearStatusMsg
 public synchronized void clearStatusMsg()
Clear the current status message.

 o getStatusMsg
 public String getStatusMsg()
Get the current status message.

Returns:
the current status message.
 o isStatusMsg
 public boolean isStatusMsg()
Check whether there is currently a status message displayed.

Returns:
whether there is currently a status message displayed.
 o handleEvent
 public boolean handleEvent(Event e)
Overrides:
handleEvent in class Component