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
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
ConstructorDescriptionStatusPanel
(int iParamTestsNum, String sParamEnableMultiple) private JLabel _labelTestNum = new JLabel(); private JButton _buttonStop; private JProgressBar _progressBarObj = new JProgressBar(); -
Method Summary
Modifier and TypeMethodDescriptionvoid
endTest()
End the currently running test Cannot be restarted.void
Sets a string explaining progress of testsboolean
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
-