Places:Design Overview: Difference between revisions

Jump to navigation Jump to search
Line 70: Line 70:
=== Views ===
=== Views ===


There are three primary types of view for Places:  
The [https://developer.mozilla.org/En/Displaying_Places_information_using_views MDC page] has the most up-to-date information on how to use views to display information from places.
 
* '''Tree/List view''' - Can show flat lists or hierarchical structures. e.g. the panes in the Places Organizer window.
* '''Toolbar view''' - Shows folders as buttons that have dropdown menus. e.g. the Bookmarks Toolbar in the browser window.
* '''Menu view''' - Shows folders as sub menus. e.g. the Bookmarks Menu in the browser window.
 
Each of these views implement a Places View interface which provides view-agnostic means for obtaining the current selection and other information. The Views themselves take on no controller-like responsibilities. They are not responsible for handling user clicks and opening links, etc - just presenting a list of places.  
 
XXXben - fill in details!


Source code: <code>mozilla/browser/components/places/content/tree|menu|toolbar.xml</code>
Source code: <code>mozilla/browser/components/places/content/tree|menu|toolbar.xml</code>
590

edits

Navigation menu