fastnsilver / gwt-ui-experiments

A web application with intention of integrating and testing various GWT components and capabilities in addition to other third-party frameworks and components.
2 stars 1 forks source link

Remember tree node opened state #6

Open fastnsilver opened 12 years ago

fastnsilver commented 12 years ago

If a user visits a page directly (e.g., via a bookmark or cut-and-pasting/typing a URL directly in browser address bar), tree should open to the location reflecting the URL's params.

E.g., Supply perspective, particular operating day, a resource's Energy offer in view mode for the Day Ahead market: http://gwt-ui-experiments.appspot.com/#viewEnergyOffer/alpha=O&energy_offer=energy_offer&market=DAMKT&operating_day=2012-03-12&product_type=ENERGY&resource=OKGEMT1&resources=Resources). When this URL visited directly rather than by clicking tab and tree node, the tree does not open to the correct node.

The tree is a CellTree backed by an impl of TreeViewModel. Walking the tree's nodes using the URL params (ala NavNode, NavOption, NavTarget) taking into account the history token is the main focus and consideration here.