33 lines
628 B
Java
33 lines
628 B
Java
package ClientApp;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
|
|
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 Scene scena = new Scene(pannello);
|
|
protected int heigth, width, insets;
|
|
@Override
|
|
|
|
abstract public void gridSetup();
|
|
|
|
@Override
|
|
public void textFill(Iterable<String> A) {
|
|
for (String s : A) {
|
|
Texts.put(s, new Text(s));
|
|
}
|
|
|
|
}
|
|
|
|
public Scene getScene() {
|
|
return scena;
|
|
}
|
|
|
|
}
|