@Override public void setVisible(boolean visible) throws MException { if (componentLabel != null) componentLabel.setVisible(visible); if (componentError != null && componentError.isVisible()) componentError.setVisible(visible); if (componentEditor != null) componentEditor.setVisible(visible); if (componentWizard != null) componentWizard.setVisible(visible); }
@Override public void setVisible(boolean visible) { getComposition().setVisible(visible); }
/** * Toggles the visibility of the filter field defined for the give column * ID. * * @param columnId * Column/Property ID of the filter to toggle * @param visible * true to set visible, false to set hidden */ public void setFilterFieldVisible(Object columnId, boolean visible) { Component component = columnIdToFilterMap.get(columnId); if (component != null) { component.setVisible(visible); reRenderFilterFields = true; markAsDirty(); } }
/** * Toggles the visibility of the filter field defined for the give column * ID. * * @param columnId * Column/Property ID of the filter to toggle * @param visible * true to set visible, false to set hidden */ public void setFilterFieldVisible(Object columnId, boolean visible) { Component component = columnIdToFilterMap.get(columnId); if (component != null) { component.setVisible(visible); reRenderFilterFields = true; markAsDirty(); } }
private void setContent(Component component) { emptyLayout.setVisible(false); contentLayout.setVisible(false); component.setVisible(true); }
@Override public void setVisible(boolean visible) throws MException { getComponent().setVisible(visible); super.setVisible(visible); } @Override
@Override public void clearError() { Component el = getComponentError(); if (el == null) return; el.setCaption(""); el.setVisible(false); }
@Override public void setError(String error) { Component el = getComponentError(); if (el == null) return; el.setCaption(error); el.setVisible(true); }
private void toggleMaximized(final Component panel, final boolean maximized) { if (maximized) { panel.setVisible(true); panel.addStyleName("max"); } else { panel.removeStyleName("max"); } }
protected void toggleMaximized(final Component panel, final boolean maximized) { if (maximized) { panel.setVisible(true); panel.addStyleName("max"); } else { panel.removeStyleName("max"); } }
private void setContent(Component component) { emptyLayout.setVisible(false); contentLayout.setVisible(false); component.setVisible(true); }
private void updateTabContentVisibility() { Iterator<Component> it = iterator(); while (it.hasNext()) { MagnoliaTab tabIt = (MagnoliaTab) it.next(); if (tabIt.getContent() != null) { tabIt.getContent().setVisible(tabIt == getState().activeTab); } } }
private void showOrHideToBeContinueLabel(final List<?> listOfTargetCountPerGroup) { if (hasMoreGroupsToShowAsLimit(listOfTargetCountPerGroup)) { groupsLegend.getComponent(MAX_GROUPS_TO_BE_DISPLAYED).setVisible(true); } else if (hasLessGroupsToShowAsLimit(listOfTargetCountPerGroup)) { groupsLegend.getComponent(groupsLegend.getComponentCount() - 1).setVisible(false); } }
private void showOrHideToBeContinueLabel(final List<?> listOfTargetCountPerGroup) { if (hasMoreGroupsToShowAsLimit(listOfTargetCountPerGroup)) { groupsLegend.getComponent(MAX_GROUPS_TO_BE_DISPLAYED).setVisible(true); } else if (hasLessGroupsToShowAsLimit(listOfTargetCountPerGroup)) { groupsLegend.getComponent(groupsLegend.getComponentCount() - 1).setVisible(false); } }
@Override public void setContent(Component content) { final Component currentContent = super.getContent(); if (currentContent != null) { content.setVisible(currentContent.isVisible()); } super.setContent(content); }
@Override public void graphChanged(GraphContainer graphContainer) { if (!(graphContainer.getLayoutAlgorithm() instanceof ManualLayoutAlgorithm)) { LayoutEntity layoutEntity = layoutManager.loadLayout(graphContainer.getGraph()); if (layoutEntity != null) { boolean isEqualLayout = layoutManager.isPersistedLayoutEqualToCurrentLayout(graphContainer.getGraph()); getCompositionRoot().setVisible(!isEqualLayout); } else { getCompositionRoot().setVisible(false); } } else { getCompositionRoot().setVisible(false); } } }
protected void showAll() { Iterator<Component> it = iterator(); while (it.hasNext()) { MagnoliaTab tabIt = (MagnoliaTab) it.next(); if (tabIt.getContent() != null) { tabIt.getContent().setVisible(true); } } getState().activeTab = null; getState().showAllEnabled = true; }
/** * Resets the display of the legend and total targets. */ public void reset() { totalTargetsLabel.setVisible(false); populateGroupsLegendByTargetCounts(Collections.emptyList()); if (groupsLegend.getComponentCount() > MAX_GROUPS_TO_BE_DISPLAYED) { groupsLegend.getComponent(MAX_GROUPS_TO_BE_DISPLAYED).setVisible(false); } }
/** * Resets the display of the legend and total targets. */ public void reset() { totalTargetsLabel.setVisible(false); populateGroupsLegendByTargetCounts(Collections.emptyList()); if (groupsLegend.getComponentCount() > MAX_GROUPS_TO_BE_DISPLAYED) { groupsLegend.getComponent(MAX_GROUPS_TO_BE_DISPLAYED).setVisible(false); } }
@Override public void graphChanged(GraphContainer graphContainer) { if (!(graphContainer.getLayoutAlgorithm() instanceof ManualLayoutAlgorithm)) { LayoutEntity layoutEntity = layoutManager.loadLayout(graphContainer.getGraph()); if (layoutEntity != null) { boolean isEqualLayout = layoutManager.isPersistedLayoutEqualToCurrentLayout(graphContainer.getGraph()); getCompositionRoot().setVisible(!isEqualLayout); } else { getCompositionRoot().setVisible(false); } } else { getCompositionRoot().setVisible(false); } } }