📄 taskmonitorbuttonboxdialog.java
字号:
package org.trinet.util.graphics.task;
import java.awt.*;
import javax.swing.*;
/** Extension of AbstractTaskMonitorDialog containing a button enabled task panel
* component for controlling the task starting, stopping, and dialog disposal.
* By default, this dialog does not automatically dispose of dialog if task stops.
* Use setDisposeOnStop(true) to change default behavior.
*/
public class TaskMonitorButtonBoxDialog extends AbstractTaskMonitorDialog {
public TaskMonitorButtonBoxDialog() {
super();
progressMeterVisible = true;
disposeOnStop = false;
}
/**
* Creates a TaskMonitorButtonBoxPanel for this Dialog component type.
*/
protected AbstractTaskMonitorPanel createTaskMonitorPanel(AbstractMonitorableTask task) {
return new TaskMonitorButtonBoxPanel(task);
}
/**
* Defaults always true, since the dialog's task is supposedly under button control.
*/
public void setProgressMeterVisible(boolean value) {
progressMeterVisible = true; // always visible
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -