Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hpehl committed Mar 7, 2024
1 parent a92d3e4 commit fb9d5c6
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions router/src/main/java/org/jboss/elemento/router/PlaceManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,23 @@
*/
package org.jboss.elemento.router;

import elemental2.dom.Element;
import elemental2.dom.Event;
import elemental2.dom.EventTarget;
import elemental2.dom.HTMLAnchorElement;
import elemental2.dom.HTMLElement;
import elemental2.dom.URL;
import org.jboss.elemento.By;
import org.jboss.elemento.Elements;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.function.Supplier;

import org.jboss.elemento.By;
import org.jboss.elemento.Elements;

import elemental2.dom.Element;
import elemental2.dom.Event;
import elemental2.dom.EventTarget;
import elemental2.dom.HTMLAnchorElement;
import elemental2.dom.HTMLElement;
import elemental2.dom.URL;

import static elemental2.dom.DomGlobal.document;
import static elemental2.dom.DomGlobal.history;
import static elemental2.dom.DomGlobal.location;
Expand All @@ -46,12 +47,14 @@
import static org.jboss.elemento.EventType.popstate;

/**
* The place manager is the central part of the router. It keeps track of registered places, handles navigation events, and updates the DOM accordingly. The place manager can be customized using builder like methods and has a {@link #start()} method to show the initial page.
* The place manager is the central part of the router. It keeps track of registered places, handles navigation events, and
* updates the DOM accordingly. The place manager can be customized using builder like methods and has a {@link #start()} method
* to show the initial page.
* <p>
* {@snippet class = PlaceManagerDemo region = placeManager}
*
* @see <a href=
* "https://developer.mozilla.org/en-US/docs/Web/API/History_API/Working_with_the_History_API">https://developer.mozilla.org/en-US/docs/Web/API/History_API/Working_with_the_History_API</a>
* "https://developer.mozilla.org/en-US/docs/Web/API/History_API/Working_with_the_History_API">https://developer.mozilla.org/en-US/docs/Web/API/History_API/Working_with_the_History_API</a>
*/
public class PlaceManager {

Expand Down

0 comments on commit fb9d5c6

Please sign in to comment.