zApplyVisibilityOfButtons, This sets visibility of button controls for this calendar,
according to the current settings.
19515
void zApplyVisibilityOfButtons() {
        boolean showNextMonth = settings.getVisibleNextMonthButton();
        boolean showNextYear = settings.getVisibleNextYearButton();
        boolean showPreviousMonth = settings.getVisiblePreviousMonthButton();
        boolean showPreviousYear = settings.getVisiblePreviousYearButton();
        boolean showMonthMenu = settings.getVisibleMonthMenuButton();
        boolean showTodayButton = settings.getVisibleTodayButton();

        boolean yearMenuSetting = settings.getVisibleYearMenuButton();
        boolean yearEditorPanelIsDisplayed = (yearEditorPanel.getParent() != null);

        boolean clearButtonSetting = settings.getVisibleClearButton();
        boolean emptyDatesAllowed = settings.getAllowEmptyDates();

        buttonNextMonth.setVisible(showNextMonth);
        buttonNextYear.setVisible(showNextYear);
        buttonPreviousMonth.setVisible(showPreviousMonth);
        buttonPreviousYear.setVisible(showPreviousYear);
        labelMonth.setVisible(showMonthMenu);
        labelSetDateToToday.setVisible(showTodayButton);

        boolean showYearMenu = ((yearMenuSetting) && (!yearEditorPanelIsDisplayed));
        labelYear.setVisible(showYearMenu);

        // Note: I had considered centering the today label in the CalendarPanel whenever the 
        // clear label was hidden. However, it still looks better when it is aligned to the left.
        boolean showClearButton = (clearButtonSetting && emptyDatesAllowed);
        labelClearDate.setVisible(showClearButton);

        boolean showMonthAndYearInnerPanel = (showMonthMenu || showYearMenu
            || yearEditorPanelIsDisplayed);
        boolean showHeaderControlsPanel = (showMonthAndYearInnerPanel
            || showNextMonth || showNextYear || showPreviousMonth || showPreviousYear);
        monthAndYearInnerPanel.setVisible(showMonthAndYearInnerPanel);
        headerControlsPanel.setVisible(showHeaderControlsPanel);

        boolean showFooterPanel = (showTodayButton || showClearButton);
        footerPanel.setVisible(showFooterPanel);
    }
181303
private void updateButtonsLayout() {
		// Get the buttons layout.
		LinearLayout root = this.chooser.getRootLayout();
		LinearLayout buttonsLayout = (LinearLayout) root.findViewById(R.id.linearLayoutButtons);

		// Verify if the 'Add' button is visible or not.
		View addButton = root.findViewById(R.id.buttonAdd);
		addButton.setVisibility(this.canCreateFiles? View.VISIBLE : View.INVISIBLE);
		addButton.getLayoutParams().width = this.canCreateFiles? ViewGroup.LayoutParams.MATCH_PARENT : 0;

		// Verify if the 'Ok' button is visible or not.
		View okButton = root.findViewById(R.id.buttonOk);
		okButton.setVisibility(this.folderMode? View.VISIBLE : View.INVISIBLE);
		okButton.getLayoutParams().width = this.folderMode? ViewGroup.LayoutParams.MATCH_PARENT : 0;
		
		// If both buttons are invisible, hide the layout.
		ViewGroup.LayoutParams params = buttonsLayout.getLayoutParams();
		if(this.canCreateFiles || this.folderMode) {
			// Show the layout.
			params.height = ViewGroup.LayoutParams.WRAP_CONTENT;

			// If only the 'Ok' button is visible, put him first. Otherwise, put 'Add' first.
			buttonsLayout.removeAllViews();
			if(this.folderMode && !this.canCreateFiles) {
				buttonsLayout.addView(okButton);
				buttonsLayout.addView(addButton);
			} else {
				buttonsLayout.addView(addButton);			
				buttonsLayout.addView(okButton);
			}
		} else {
			// Hide the layout.
			params.height = 0;
		}
	}
417379
protected void setGalleriesVisible(boolean visible) {

        if (visible) {
            m_noGalleriesLabel.getElement().getStyle().clearDisplay();
            m_galleryTree.getElement().getStyle().clearDisplay();
        } else {
            m_galleryTree.getElement().getStyle().setDisplay(Display.NONE);
            m_noGalleriesLabel.getElement().getStyle().setDisplay(Display.NONE);

        }
    }
284409
def setShowAddButton(self, state):
        
        self._showAddButton = state
        self._addButton.setVisible(state)
907620
private void setEnabledButtons() {
        int currentStep = getCurrentStep();
        if(currentStep < 0) {
           return;
        }
        
        boolean isPreviousEnabled = true;
        boolean isNextEnabled = true;
        
        if(getNextStep(currentStep) < 0 && currentStep != STEP_THANKS) {
            isNextEnabled = false;
        }

         if(getPreviousStep(currentStep) < 0) {
            isPreviousEnabled = false;
        }

        setIsControlEnable(previousButtonName, isPreviousEnabled);
        setIsControlEnable(nextButtonName, isNextEnabled);

        if(currentStep == STEP_OMISSIONS) {
            setControlText(nextButtonName, I18nLabelsLoader.REPORT_STEP_BUTTONS_SUBMIT);
            if(theCommunityLogic.hasBadInterventions() || theCommunityLogic.hasOmissions()) {
                setIsControlEnable(nextButtonName, true);
            } else {
                 setIsControlEnable(nextButtonName, false);
            }
            
        } else if (currentStep == STEP_THANKS) {
            setControlText(nextButtonName, I18nLabelsLoader.REPORT_STEP_BUTTONS_FINISH);
        } else {
            setControlText(nextButtonName, I18nLabelsLoader.REPORT_STEP_BUTTONS_NEXT);
        }

    }
1186537
public void setLcdVisible(final boolean VISIBLE) {
        if (null == lcdVisible) {
            _lcdVisible = VISIBLE;
            fireUpdateEvent(VISIBILITY_EVENT);
        } else {
            lcdVisible.set(VISIBLE);
        }
    }
781213
public void setTickMarkRingVisible(final boolean VISIBLE) {
        if (null == tickMarkRingVisible) {
            _tickMarkRingVisible = VISIBLE;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            tickMarkRingVisible.set(VISIBLE);
        }
    }
51736
public void setThresholdVisible(final boolean VISIBLE) {
        if (null == thresholdVisible) {
            _thresholdVisible = VISIBLE;
            fireUpdateEvent(VISIBILITY_EVENT);
        } else {
            thresholdVisible.set(VISIBLE);
        }
    }
1349886
public void setPreviewVisible(boolean visible) {

        m_previewVisible = visible;
        if (m_previewVisible) {
            useMaxDimensions();
            m_previewVisibility.setValue(I_CmsLayoutBundle.INSTANCE.previewDialogCss().previewVisible());
            if (m_galleryHandler instanceof CmsGalleryPopup) {
                ((CmsGalleryPopup)m_galleryHandler).center();
            }
        } else {
            m_previewVisibility.setValue(I_CmsLayoutBundle.INSTANCE.previewDialogCss().hidePreview());
            updateSizes();
        }
    }
670922
public void setTickMarkSectionsVisible(final boolean VISIBLE) {
        if (null == tickMarkSectionsVisible) {
            _tickMarkSectionsVisible = VISIBLE;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            tickMarkSectionsVisible.set(VISIBLE);
        }
    }
1195754
public void setDateVisible(final boolean VISIBLE) {
        if (null == dateVisible) {
            _dateVisible = VISIBLE;
            fireUpdateEvent(VISIBILITY_EVENT);
        } else {
            dateVisible.set(VISIBLE);
        }

    }
1278952
def setVisible(self, visible):
        
        _logger().log(5, '%s visibility changed', self.name)
        super(Panel, self).setVisible(visible)
        if self.editor:
            self.editor.panels.refresh()
64736
protected void setButtonVisibility() {

        Component tab = m_tab.getSelectedTab();
        int pos = m_tab.getTabPosition(m_tab.getTab(tab));
        //TODO: check if necessary (when it was finally known which tabs web ou users should see..
        int maxPos = m_isWebOU ? 3 : 3; //has to be changed if number of tabs is changed for web OU user
        m_next.setVisible(pos < maxPos);
        m_ok.setVisible(pos == maxPos);
    }
791032
def setVisible(self, state):
        
        super(XLineEdit, self).setVisible(state)
        
        self.adjustStyleSheet()
        self.adjustTextMargins()
1361372
@Api
	public void setVisible(boolean visible) {
		this.visible = visible;
		if (googleMap != null) {
			String mapsId = map.getRasterContext().getId(this);
			Element gmap = DOM.getElementById(mapsId);
			UIObject.setVisible(gmap, visible);
			if (tosGroup != null) {
				UIObject.setVisible(tosGroup, visible);
			}
			if (visible) {
				triggerResize(googleMap);
			}
		}
	}
293956
public void setVisible(boolean visible)
	{
		if (isVisible() == visible)
			return;

		if (!fireEvent(new VisibleStateChange<>(this, visible)))
			return;

		this.visible = visible;
		if (!visible)
		{
			this.setHovered(false);
			this.setFocused(false);
		}

		return;
	}
206159
function (aButtons) {
			for (var i = aButtons.length - 1; i >= 0; i--) {
				if (aButtons[i].getVisible()) {
					aButtons[i].setVisible(false);
					this.addOverflowButton();
					return;
				}
			}
		}