public MenuSectionController() { super(); List<View> list = new ArrayList<View>(); menuViewMap.put("", list); menu.setStyleName("ks-menu-layout-menu"); rightPanel.setStyleName("ks-menu-layout-rightColumn"); collapsablePanel.addStyleName("ks-menu-layout-leftColumn"); layout.addStyleName("ks-menu-layout"); menu.setTopLevelItems(topLevelMenuItems); collapsablePanel.setContent(leftPanel); leftPanel.add(menu); leftPanel.add(sideBar); rightPanel.add(header); rightPanel.add(infoPanel); rightPanel.add(topButtonPanel); rightPanel.add(contentPanel); rightPanel.add(bottomButtonPanel); layout.add(collapsablePanel); layout.add(rightPanel); header.setVisible(false); this.showPrint(true); this.initWidget(layout); }
public void setContentTitle(String title) { header.setTitle(title); header.setVisible(true); }
public void showExport(boolean show) { header.showExport(show); }
public void showPrint(boolean show) { header.showPrint(show); }
public void setContentWarning(String info) { header.getInfoLabel().setHTML(info); header.getInfoLabel().removeStyleName("content-info"); header.getInfoLabel().addStyleName("content-warning"); }
public void addContentWidget(Widget w) { header.addWidget(w); header.setVisible(true); }