Task Launcher - updated timeout feature to ignore interruptions

This commit is contained in:
dragonmacher 2019-05-23 10:42:08 -04:00
parent fb2a4a0363
commit 2cf9f7dded
11 changed files with 240 additions and 344 deletions

View file

@ -15,9 +15,9 @@
*/
package docking;
import java.awt.Frame;
import java.awt.Window;
import java.awt.*;
import java.util.*;
import java.util.List;
import javax.swing.JFrame;
@ -78,6 +78,20 @@ public abstract class AbstractDockingTool implements DockingTool {
winMgr.setStatusText(text);
}
@Override
public void setStatusInfo(String text, boolean beep) {
winMgr.setStatusText(text);
if (beep) {
Toolkit tk = getToolFrame().getToolkit();
tk.beep();
}
}
@Override
public void clearStatusInfo() {
winMgr.setStatusText("");
}
@Override
public void addAction(DockingActionIf action) {
actionMgr.addToolAction(action);

View file

@ -83,6 +83,18 @@ public interface DockingTool {
*/
public void setStatusInfo(String text);
/**
* Set the status information
* @param text string to be displayed in the Status display area
* @param beep whether to be or not
*/
public void setStatusInfo(String text, boolean beep);
/**
* Clear the status information
*/
public void clearStatusInfo();
/**
* Adds the action to the tool.
* @param action the action to be added.