Elaborato_IS/Elaborato_IS/src/ClientApp/AbstractAppPane.java

33 lines
736 B
Java
Raw Normal View History

2023-10-16 18:08:25 +02:00
package ClientApp;
2023-10-17 00:05:17 +02:00
import java.util.ArrayList;
2023-10-16 18:08:25 +02:00
import java.util.HashMap;
2023-10-17 00:05:17 +02:00
import java.util.List;
2023-10-16 18:08:25 +02:00
import java.util.Map;
import javafx.scene.Node;
2023-10-16 18:08:25 +02:00
import javafx.scene.Scene;
import javafx.scene.layout.GridPane;
import javafx.scene.text.Text;
public abstract class AbstractAppPane implements AppPane {
protected GridPane pannello = new GridPane();
protected Map<String,Text> Texts = new HashMap<>();
protected Map<Text,Node> Fields = new HashMap<>();
2023-10-16 18:08:25 +02:00
protected Scene scena = new Scene(pannello);
protected int heigth, width, insets;
2023-10-17 00:05:17 +02:00
protected List<String> Names = new ArrayList<>();
2023-10-16 18:08:25 +02:00
@Override
abstract public void gridSetup();
2023-10-16 18:08:25 +02:00
@Override
abstract public void textFill();
2023-10-16 18:08:25 +02:00
public Scene getScene() {
return scena;
}
}