public void goTo(Screen nextScreen) { if (tryHandleEmptyBackstack(nextScreen)) { return; } List<Screen> fromPath = backStack.asList(); if (Screen.equals(backStack.peek(), nextScreen)) { return; } backStack.push(nextScreen); performRouteChange(fromPath, backStack.asList(), TransitionDirection.ENTER); }
private View inflateViewFromController(ViewController viewController, final Scoop scoop) { View view = scoop.inflate(viewController.layoutId(), this, false); ViewControllerInflater.bindViewControllerToView(view, viewController); return view; }
private Scoop getActiveScoop(final RouteChange routeChange) { Scoop rootScoop = Scoop.fromView(this); Scoop currentScreenScoop = Scoop.fromView(active); return getScreenScooper().create(rootScoop, currentScreenScoop, routeChange.fromPath, routeChange.toPath); }
public void replaceAllWith(List<Screen> screens) { List<Screen> fromPath = backStack.asList(); backStack.clear(); for (final Screen screen : screens) { backStack.push(screen); } performRouteChange(fromPath, backStack.asList(), TransitionDirection.ENTER); }
public ScreenSwap toScreenSwap() { return new ScreenSwap(this.previousScreen(), this.nextScreen(), this.direction); }
private boolean childCanGoBack() { if (active instanceof HandleBack) { return handleBack(active); } ViewController viewController = ViewController.fromView(active); if (viewController != null) { if (viewController instanceof HandleBack) { return handleBack(viewController); } } return false; }
private TransitionListener getTransitionListener() { ViewController controller = ViewController.fromView(active); TransitionListener transitionListener = new NoOpTransitionListener(); if (controller instanceof TransitionListener) { transitionListener = (TransitionListener) controller; } return transitionListener; } }
public ViewController inflateViewController( Scoop scoop, Class<? extends ViewController> viewControllerClazz, ViewGroup viewGroup) { ViewController viewController = createViewController(scoop, viewControllerClazz); viewController.setScoop(scoop); return viewController; }
public void goTo(Screen nextScreen) { if (tryHandleEmptyBackstack(nextScreen)) { return; } List<Screen> fromPath = backStack.asList(); if (Screen.equals(backStack.peek(), nextScreen)) { return; } backStack.push(nextScreen); performRouteChange(fromPath, backStack.asList(), TransitionDirection.ENTER); }
public void replaceAllWith(List<Screen> screens) { List<Screen> fromPath = backStack.asList(); backStack.clear(); for (final Screen screen : screens) { backStack.push(screen); } performRouteChange(fromPath, backStack.asList(), TransitionDirection.ENTER); }
private Scoop getActiveScoop(final RouteChange routeChange) { Scoop rootScoop = Scoop.fromView(this); Scoop currentScreenScoop = Scoop.fromView(active); return getScreenScooper().create(rootScoop, currentScreenScoop, routeChange.fromPath, routeChange.toPath); }
private View inflateViewFromController(ViewController viewController, final Scoop scoop) { View view = scoop.inflate(viewController.layoutId(), this, false); ViewControllerInflater.bindViewControllerToView(view, viewController); return view; }
public ScreenSwap toScreenSwap() { return new ScreenSwap(this.previousScreen(), this.nextScreen(), this.direction); }
private boolean childCanGoBack() { if (active instanceof HandleBack) { return handleBack(active); } ViewController viewController = ViewController.fromView(active); if (viewController != null) { if (viewController instanceof HandleBack) { return handleBack(viewController); } } return false; }
private TransitionListener getTransitionListener() { ViewController controller = ViewController.fromView(active); TransitionListener transitionListener = new NoOpTransitionListener(); if (controller instanceof TransitionListener) { transitionListener = (TransitionListener) controller; } return transitionListener; } }
public ViewController inflateViewController( Scoop scoop, Class<? extends ViewController> viewControllerClazz, ViewGroup viewGroup) { ViewController viewController = createViewController(scoop, viewControllerClazz); viewController.setScoop(scoop); return viewController; }