@Retention(value=RUNTIME) @Target(value=TYPE) @Inherited @Documented public @interface Route
There is also
RouteAlias annotation which may be declared in addition
to this annotation and may be used mutiple times.
|Modifier and Type||Optional Element and Description|
Have the rout chain break on defined class and not take into notice any more parent layout route prefixes.
Sets the parent component for the route target component.
Gets the route path value of the annotated class.
public static final String NAMING_CONVENTION
public abstract String value
If no value is provided, the path will be derived from the class name of the component. The derived name will be in lower case and trailing "View" will be removed. Also, MainView or Main names will be mapped to root (value will be "").
Note for framework developers: do not use the value directly, but
use the helper method
Router.resolve(Class, Route), so that
naming convention based values are dealt correctly.
public abstract Class<? extends RouterLayout> layout
When navigating between components that use the same layout, the same component instance is reused.
UIof the application.
Copyright © 2018. All rights reserved.