private void toggleMaximized(final Component panel, final boolean maximized) { for (Iterator<Component> it = root.iterator(); it.hasNext(); ) { it.next().setVisible(!maximized); } dashboardPanels.setVisible(true); for (Iterator<Component> it = dashboardPanels.iterator(); it.hasNext(); ) { Component c = it.next(); c.setVisible(!maximized); } if (maximized) { panel.setVisible(true); panel.addStyleName("max"); } else { panel.removeStyleName("max"); } }
public void setNavigatorVisibility(boolean visibility) { navigatorContainer.setVisible(visibility); navigatorWrapper.setVisible(visibility); }