Errai 3.0.1-SNAPSHOT

org.jboss.errai.ui.nav.client.local
Class TransitionAnchorFactory<P extends com.google.gwt.user.client.ui.IsWidget>

java.lang.Object
  extended by org.jboss.errai.ui.nav.client.local.TransitionAnchorFactory<P>
Type Parameters:
P - The type of the target page ("to page")

public final class TransitionAnchorFactory<P extends com.google.gwt.user.client.ui.IsWidget>
extends Object

A factory for creating TransitionAnchor instances. This is useful when, for example, showing a list of items that each are hyperlinked to the same Page but with different PageState.

Author:
eric.wittmann@redhat.com

Method Summary
 TransitionAnchor<P> get()
          Gets an instance of a TransitionAnchor without any additional PageState.
 TransitionAnchor<P> get(com.google.common.collect.Multimap<String,String> state)
          Gets an instance of a TransitionAnchor with the given PageState.
 TransitionAnchor<P> get(String stateKey, String stateValue)
          Gets an instance of a TransitionAnchor with the given single piece of PageState.
 Class<P> toPageType()
          The page this transition goes to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public TransitionAnchor<P> get()
Gets an instance of a TransitionAnchor without any additional PageState.


get

public TransitionAnchor<P> get(com.google.common.collect.Multimap<String,String> state)
Gets an instance of a TransitionAnchor with the given PageState.

Parameters:
state -

get

public TransitionAnchor<P> get(String stateKey,
                               String stateValue)
Gets an instance of a TransitionAnchor with the given single piece of PageState. This is a convenience for the use-case where the target Page has a single piece of state, such as a UUID.

Parameters:
stateKey -
stateValue -

toPageType

public Class<P> toPageType()
The page this transition goes to.


Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.