From aed790b8578ed616cf8d78f3c5915a846a1160b5 Mon Sep 17 00:00:00 2001 From: code-witch Date: Sat, 20 Jul 2019 19:53:57 -0600 Subject: [PATCH] Add Widgets --- src/fetch/widgets/EmptyWidget.java | 17 +++++++++ src/fetch/widgets/TerminalWidget.java | 20 +++++++++++ src/fetch/widgets/Widget.java | 50 +++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 src/fetch/widgets/EmptyWidget.java create mode 100644 src/fetch/widgets/TerminalWidget.java create mode 100644 src/fetch/widgets/Widget.java diff --git a/src/fetch/widgets/EmptyWidget.java b/src/fetch/widgets/EmptyWidget.java new file mode 100644 index 0000000..e75c2cb --- /dev/null +++ b/src/fetch/widgets/EmptyWidget.java @@ -0,0 +1,17 @@ +package fetch.widgets; + +import javafx.scene.layout.StackPane; + +public class EmptyWidget extends Widget { + + public EmptyWidget(int x, int y) { + super(x, y, new StackPane()); + } + @Override + public String toString() { + return "EmptyWidget{" + + "x=" + getX() + + ", y=" + getY() + + '}'; + } +} \ No newline at end of file diff --git a/src/fetch/widgets/TerminalWidget.java b/src/fetch/widgets/TerminalWidget.java new file mode 100644 index 0000000..6d4cf90 --- /dev/null +++ b/src/fetch/widgets/TerminalWidget.java @@ -0,0 +1,20 @@ +package fetch.widgets; + + +import javafx.scene.control.TextArea; + +public class TerminalWidget extends Widget