Method: CWM::UIState#go_to_tree_node

Defined in:
library/cwm/src/lib/cwm/ui_state.rb

#go_to_tree_node(page) ⇒ Object

Method to be called when the user decides to visit a given page by clicking in one node of the general tree.

It remembers the decision so the user is taken back to a sensible point of the tree (very often the last he decided to visit) after redrawing.

Parameters:

  • page (CWM::Page)

    associated to the tree node



99
100
101
102
103
104
105
# File 'library/cwm/src/lib/cwm/ui_state.rb', line 99

def go_to_tree_node(page)
  self.candidate_nodes = [page.label]

  # Landing in a new node, so invalidate previous details about position
  # within a node, they no longer apply
  self.tab = nil
end