aboutsummaryrefslogtreecommitdiff
path: root/src/controllers/KeyController.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-01-10 23:52:54 -0500
committerTyler Schicke <tyler_schicke@brown.edu>2019-01-10 23:52:54 -0500
commitee068ab30c43125efd2b0ab853531df9777f544f (patch)
tree9560b014b4de30c3a8f1e3d77ae70db27558fe58 /src/controllers/KeyController.ts
parent861d61970afc9e67afbafa64e8c1347a18335077 (diff)
Started adding various controllers
Diffstat (limited to 'src/controllers/KeyController.ts')
-rw-r--r--src/controllers/KeyController.ts25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/controllers/KeyController.ts b/src/controllers/KeyController.ts
new file mode 100644
index 000000000..96e41eded
--- /dev/null
+++ b/src/controllers/KeyController.ts
@@ -0,0 +1,25 @@
+import { FieldController } from "./FieldController"
+
+export class KeyController extends FieldController {
+ get Name():string {
+ return this.name;
+ }
+
+ constructor(private name:string){
+ super();
+ }
+
+ TrySetValue(value: any): boolean {
+ throw new Error("Method not implemented.");
+ }
+
+ GetValue() {
+ return this.Name;
+ }
+
+ Copy(): FieldController {
+ return this;
+ }
+
+
+}