private static MarlinBean _sCreatePageHeader(
UINode globalHeader,
UINode quickSearch
)
{
MarlinBean pageHeader = new MarlinBean(PAGE_HEADER_LAYOUT_NAME);
_setPoppedChild(pageHeader, NAVIGATION1_CHILD);
_setPoppedChild(pageHeader, ADVERTISEMENT_LARGE_CHILD);
_setPoppedChild(pageHeader, ADVERTISEMENT_MEDIUM_CHILD);
_setPoppedChild(pageHeader, BRANDING_CHILD);
_setPoppedChild(pageHeader, BRANDING_COOPERATIVE_CHILD);
_setPoppedChild(pageHeader, BRANDING_APP_CHILD);
_setPoppedChild(pageHeader, BRANDING_APP_CONTEXTUAL_CHILD);
_setPoppedChild(pageHeader, NAVIGATION_GLOBAL_CHILD);
_setPoppedChild(pageHeader, MENU_SWITCH_CHILD);
pageHeader.setNamedChild(SEARCH_CHILD, quickSearch);
pageHeader.setNamedChild(NAVIGATION2_CHILD, globalHeader);
BoundValue chromeTypeBV =
RootAttributeBoundValue.getBoundValue(CHROME_TYPE_ATTR);
pageHeader.setAttributeValue(CHROME_TYPE_ATTR, chromeTypeBV);
return pageHeader;
}