/** * Programmatically click on the anchor (with alternate page state). * @param state */ public void click(Multimap<String,String> state) { navigation.goTo(toPageWidgetType, state); }
@Override @SuppressWarnings({ "rawtypes", "unchecked" }) public TransitionAnchor provide(Class<?>[] typeargs, Annotation[] qualifiers) { Class<?> toPageType = typeargs[0]; return new TransitionAnchor(navigation, toPageType, htFactory); }
@Override public void callback(final Navigation navigation) { navigation.goToWithRole(uniquePageRole); } });
private <C> void navigate(final PageNode<C> toPageInstance, final Multimap<String, String> state) { final HistoryToken token = historyTokenFactory.createHistoryToken(toPageInstance.name(), state); logger.debug("Navigating to " + toPageInstance.name() + " at url: " + token.toString()); navigate(new Request<>(toPageInstance, token), true); }
@Override public void run() { HistoryWrapper.fireCurrentHistoryState(); } });
@Override @SuppressWarnings({ "rawtypes", "unchecked" }) public TransitionTo provide(Class<?>[] typeargs, Annotation[] qualifiers) { Class<IsWidget> toPageType = (Class<IsWidget>) typeargs[0]; return new TransitionTo<IsWidget>(toPageType); }
@Override @SuppressWarnings({ "unchecked", "rawtypes" }) public TransitionToRole provide(final Class<?>[] typeargs, final Annotation[] qualifiers) { final Class<UniquePageRole> uniquePageRole = (Class<UniquePageRole>) typeargs[0]; return new TransitionToRole<UniquePageRole>(uniquePageRole); }
@Override @SuppressWarnings({ "rawtypes", "unchecked" }) public TransitionAnchorFactory provide(Class<?>[] typeargs, Annotation[] qualifiers) { Class<IsWidget> toPageType = (Class<IsWidget>) typeargs[0]; return new TransitionAnchorFactory<IsWidget>(navigation, toPageType, htFactory); }
private <C> void navigate(final PageNode<C> toPageInstance, final Multimap<String, String> state) { final HistoryToken token = historyTokenFactory.createHistoryToken(toPageInstance.name(), state); logger.debug("Navigating to " + toPageInstance.name() + " at url: " + token.toString()); navigate(new Request<>(toPageInstance, token), true); }
/** * Programmatically click on the anchor. */ public void click() { navigation.goTo(toPageWidgetType, this.state); }
@Override @SuppressWarnings({ "rawtypes", "unchecked" }) public TransitionAnchor provide(Class<?>[] typeargs, Annotation[] qualifiers) { Class<?> toPageType = typeargs[0]; return new TransitionAnchor(navigation, toPageType, htFactory); }
@Override public void run() { HistoryWrapper.fireCurrentHistoryState(); } });
@Override @SuppressWarnings({ "rawtypes", "unchecked" }) public TransitionTo provide(Class<?>[] typeargs, Annotation[] qualifiers) { Class<IsWidget> toPageType = (Class<IsWidget>) typeargs[0]; return new TransitionTo<IsWidget>(toPageType); }
@Override @SuppressWarnings({ "unchecked", "rawtypes" }) public TransitionToRole provide(final Class<?>[] typeargs, final Annotation[] qualifiers) { final Class<UniquePageRole> uniquePageRole = (Class<UniquePageRole>) typeargs[0]; return new TransitionToRole<UniquePageRole>(uniquePageRole); }
/** * Programmatically click on the anchor (with alternate page state). * @param state */ public void click(Multimap<String,String> state) { navigation.goTo(toPageWidgetType, state); }
/** * Gets an instance of a {@link TransitionAnchor} without any additional * {@link PageState}. */ public TransitionAnchor<P> get() { return new TransitionAnchor<P>(navigation, toPageWidgetType, htFactory); }
@Override public void callback(Navigation navigation) { navigation.goTo(toPageWidgetType, state); } });
/** * Programmatically click on the anchor. */ public void click() { navigation.goTo(toPageWidgetType, this.state); }