final class RouterLogic[Page, Props] extends Broadcaster[Unit]
Performs all routing logic.
- Page
Routing rules context. Prevents different routing rule sets being mixed up.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RouterLogic
- Broadcaster
- Listenable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
new
RouterLogic(baseUrl: BaseUrl, cfg: RouterWithPropsConfig[Page, Props])
- baseUrl
The prefix of all routes in a set.
Type Members
- type Action = router.Action[Page]
- type Redirect = router.Redirect[Page]
- type Renderer = router.Renderer[Page, Props]
- type Resolution = ResolutionWithProps[Page, Props]
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val baseUrl: BaseUrl
-
def
broadcast(a: Unit): Callback
- Attributes
- protected
- Definition Classes
- Broadcaster
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val ctl: RouterCtl[Page]
- val ctlByPath: RouterCtl[Path]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
implicit
def
impbaseurl: BaseUrl
- Attributes
- protected
- Annotations
- @inline()
- def interpret[A](r: RouteCmd[A]): CallbackTo[A]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
listenerIterator: Iterator[(Unit) ⇒ Callback]
- Attributes
- protected
- Definition Classes
- Broadcaster
-
def
log(msg: ⇒ String): Log
- Attributes
- protected
- Annotations
- @inline()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def parseUrl(url: AbsUrl): Option[Path]
- def redirect(r: Redirect): CallbackTo[RouteCmd[Resolution]]
- def redirectToPath(path: Path, via: SetRouteVia): CallbackTo[RouteCmd[Resolution]]
-
def
register(listener: (Unit) ⇒ Callback): CallbackTo[Callback]
Register a listener.
Register a listener.
- listener
The listener/consumer. A procedure that receives data of type A.
- returns
A procedure to unregister the given listener.
- Definition Classes
- Broadcaster → Listenable
- def render(r: Resolution, props: Props): VdomElement
- def resolveAction(a: Action): CallbackTo[Either[RouteCmd[Resolution], Renderer]]
- def resolveAction(page: Page, action: Action): CallbackTo[RouteCmd[Resolution]]
- def resolveActionForPage(path: Path, page: Page): CallbackTo[RouteCmd[Resolution]]
- def setPath(path: Path, via: SetRouteVia): RouteCmd[Unit]
- def syncToPath(path: Path): CallbackTo[RouteCmd[Resolution]]
- def syncToUrl(url: AbsUrl): CallbackTo[RouteCmd[Resolution]]
- val syncToWindowUrl: CallbackTo[Resolution]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def wrongBase(wrongUrl: AbsUrl): CallbackTo[RouteCmd[Resolution]]
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.