@Test public void testLeaveAllAndEnter () { ScreenManager<IScreen> manager = this.createScreenManager(); manager.addScreen("dummy_screen", new DummyScreen()); manager.leaveAllAndEnter("dummy_screen"); }
@Override public void leaveAllAndEnter(String name) { IScreen screen = pop(); while (screen != null) { screen = pop(); } this.push(name); }
DefaultScreenManager implements ScreenManager<IScreen> { @Override public void leaveAllAndEnter(String name) { IScreen screen = pop(); while (screen != null) { screen = pop(); } this.push(name); } }
DefaultScreenManager implements ScreenManager<IScreen> { @Override public void leaveAllAndEnter(String name) { IScreen screen = pop(); while (screen != null) { screen = pop(); } this.push(name); } DefaultScreenManager(); }
DefaultScreenManager implements ScreenManager<IScreen> { @Override public void leaveAllAndEnter(String name) { IScreen screen = pop(); while (screen != null) { screen = pop(); } this.push(name); } DefaultScreenManager(); @Override void addScreen(String name, IScreen screen); @Override void removeScreen(String name); @Override void push(String name); @Override void leaveAllAndEnter(String name); @Override IScreen pop(); @Override IScreen getScreenByName(String name); @Override ObjectArrayList<IScreen> listScreens(); @Override ObjectArrayList<IScreen> listActiveScreens(); @Override void resize(int width, int height); @Override void update(); @Override void draw(); @Override void dispose(); }
DefaultScreenManager implements ScreenManager<IScreen> { @Override public void leaveAllAndEnter(String name) { IScreen screen = pop(); while (screen != null) { screen = pop(); } this.push(name); } DefaultScreenManager(); @Override void addScreen(String name, IScreen screen); @Override void removeScreen(String name); @Override void push(String name); @Override void leaveAllAndEnter(String name); @Override IScreen pop(); @Override IScreen getScreenByName(String name); @Override ObjectArrayList<IScreen> listScreens(); @Override ObjectArrayList<IScreen> listActiveScreens(); @Override void resize(int width, int height); @Override void update(); @Override void draw(); @Override void dispose();  }