super.wasHidden();
iface.destroyRoot(_root);
}
protected Button screen (String title, final ScreenFactory factory) {
return new Button(title).onClick(new UnitSlot() { public void onEmit () {
final DemoScreen screen = factory.apply();
_stack.push(screen);
screen.back.clicked().connect(new UnitSlot() { public void onEmit () {
_stack.remove(screen);
}});