public interface DemoView extends ActionListener
| Modifier and Type | Method and Description |
|---|---|
void |
registerObserver(DemoController controller)
Register argument as observer/listener of this; this must be done first,
before any other methods of this class are called.
|
void |
updateInputDisplay(String input)
Updates input display based on String provided as argument.
|
void |
updateOutputDisplay(String output)
Updates output display based on String provided as argument.
|
actionPerformedvoid registerObserver(DemoController controller)
controller - controller to registervoid updateInputDisplay(String input)
input - new value of input displayvoid updateOutputDisplay(String output)
output - new value of output display