Package edu.internet2.ndt
Class StatusPanel
java.lang.Object
com.vuze.plugins.mlab.tools.ndt.swingemu.Component
com.vuze.plugins.mlab.tools.ndt.swingemu.JPanel
edu.internet2.ndt.StatusPanel
public class StatusPanel extends JPanel
Class that displays status of tests being run. It also provides methods to
set status message, record intention to stop tests, and to fetch the status
of whether the test is to be stopped.
-
Constructor Summary
Constructors Constructor Description StatusPanel(int iParamTestsNum, String sParamEnableMultiple)
private JLabel _labelTestNum = new JLabel(); private JButton _buttonStop; private JProgressBar _progressBarObj = new JProgressBar(); -
Method Summary
Modifier and Type Method Description void
endTest()
End the currently running test Cannot be restarted.void
setText(String sParamText)
Sets a string explaining progress of testsboolean
wantToStop()
Get intention to stop testsMethods inherited from class com.vuze.plugins.mlab.tools.ndt.swingemu.Component
add, addMouseListener, addWindowListener, getToolkit, pack, repaint, setBorder, setCursor, setEditable, setEnabled, setForeground, setLayout, setLayout, setPreferredSize, setResizable, setSize, setTitle, setVisible
-
Constructor Details
-
StatusPanel
private JLabel _labelTestNum = new JLabel(); private JButton _buttonStop; private JProgressBar _progressBarObj = new JProgressBar();
-
-
Method Details
-
wantToStop
public boolean wantToStop()Get intention to stop tests- Returns:
- boolean indicating intention to stop or not
-
endTest
public void endTest()End the currently running test Cannot be restarted. -
setText
Sets a string explaining progress of tests- Parameters:
sParamText
- String status of test-run
-