исправление безопасности. промежуточный.

This commit is contained in:
2025-02-06 18:31:18 +03:00
parent 6e0e51beff
commit 20e82075b7
11 changed files with 41 additions and 25 deletions

View File

@@ -20,7 +20,12 @@ public class Pass<T> {
public PassState state = PassState.Inactive; //текущее состояние прохода.
public Semaphore animation_sem;
//--------------
public boolean ui_visible = true;
public Vector<PassControl> controls = new Vector<>();
public void addControl(PassControl control_in){
control_in.setVisible(ui_visible);
controls.add(control_in);
}
public TextLog Log; //внутренний журнал прохода.
protected boolean interrupt;
protected SwingWorker dispatcher = null;
@@ -74,8 +79,9 @@ public class Pass<T> {
control.setEnabled(flag);
}
public void setControlsVisible(boolean flag) {
ui_visible =flag;
for (PassControl control : controls)
control.setVisible(flag);
control.setVisible(ui_visible);
}
public void setControlsToolTipText(String text) {
for (PassControl control : controls)