no message
This commit is contained in:
@@ -12,27 +12,26 @@ import java.awt.*;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Stack;
|
||||
public class UI_ {
|
||||
public static boolean active=false; //есть ли интерфейс. в консольных версиях не нужен.
|
||||
public static boolean active = false; //есть ли интерфейс. в консольных версиях не нужен.
|
||||
public static MenuElement[] last_menu_path; //для меню
|
||||
public static boolean isActive() {
|
||||
return active;
|
||||
}
|
||||
//---
|
||||
public static LinkedHashMap<Class<? extends DataSet>, DataMenuBar> menuBars = new LinkedHashMap<>();
|
||||
public static Stack<Component> windowsStack = new Stack<>();
|
||||
static VisualiserTheme theme = new DefaultTheme();
|
||||
public static boolean isActive() {
|
||||
return active;
|
||||
}
|
||||
public static VisualiserTheme getTheme() {
|
||||
return theme;
|
||||
}
|
||||
public static void setTheme(VisualiserTheme theme_in){
|
||||
theme= theme_in;
|
||||
public static void setTheme(VisualiserTheme theme_in) {
|
||||
theme = theme_in;
|
||||
}
|
||||
public static Component getFrontWindow() {
|
||||
Component res = null;
|
||||
try {
|
||||
res = windowsStack.peek();
|
||||
} catch (Exception ignored){
|
||||
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user