This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
LayoutManager
jiajunGit edited this page Jul 24, 2017
·
3 revisions
The LayoutManager organizes the various UI components constructed by their corresponding UI component factories which include SelectedLabelsFactory, SearchFactory and many more.
- LaunchButtonFactory - constructs launch button
- SideBarFactory - constructs sidebar container
- LabelGroupsFactory - constructs the collapsible containers containing labels sorted into their groups
- SelectedLabelsFactory - constructs the container holding the selected labels
- SearchFactory - constructs the search panel
- When the user has just landed on an issue page, the
initializeUI()
method from the layout manager will be invoked by the appropriate issue page controllers to build a skeleton sidebar UI without any data. The rationale behind this decision is to enable users to be able to quickly interact with the sidebar UI before having all the data loaded since retrieving and loading data takes some time. The skeleton sidebar UI is constructed using theaddUIComponentsToSideBar()
function. -
populateUIWithData(storage)
is called after retrieving the required data in order to update the UI with data stored within the ItemStorage container passed in. - It also contains a
cleanup()
function that is called every time when the user lands on a Github page to hide the sidebar and launch button.