make controller a required property of ArchiveUI
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
:Map<String,Command> commands (new Map)
|
||||
:NameSystem nameSystem (new NameSystem)]
|
||||
|
||||
(ui.setController this)
|
||||
(set ui.controller this)
|
||||
|
||||
// Add systems!
|
||||
(archive.addSystem nameSystem)
|
||||
|
@@ -4,9 +4,9 @@ import nat.ArchiveController;
|
||||
|
||||
interface ArchiveUI {
|
||||
/**
|
||||
* Accept and store a reference to the controller
|
||||
* Reference to the ArchiveController
|
||||
*/
|
||||
function setController(controller:ArchiveController):Void;
|
||||
var controller(default, default):ArchiveController;
|
||||
|
||||
/**
|
||||
* Prompt the user to enter text
|
||||
|
@@ -14,8 +14,6 @@
|
||||
|
||||
(prop &mut :ArchiveController controller)
|
||||
|
||||
(method :Void setController [controller] (set this.controller controller))
|
||||
|
||||
(defNew [])
|
||||
|
||||
(method :Void enterText [prompt resolve maxLength]
|
||||
|
Reference in New Issue
Block a user