Sets the button bar visibility.<p>

@param buttonBar the button bar
@param visible <code>true</code> to show the button bar
164415
private void setButtonBarVisibility(Widget buttonBar, boolean visible) {

        String hoverStyle = I_CmsLayoutBundle.INSTANCE.form().hoverButton();
        if (visible) {
            buttonBar.addStyleName(hoverStyle);
        } else {
            buttonBar.removeStyleName(hoverStyle);
        }
        if (buttonBar instanceof CmsInlineEntityWidget) {
            ((CmsInlineEntityWidget)buttonBar).setContentHighlightingVisible(visible);
        }
        if (buttonBar.getParent() instanceof CmsInlineEntityWidget) {
            ((CmsInlineEntityWidget)buttonBar.getParent()).setContentHighlightingVisible(visible);
        }
    }
816190
public static void setVisible(Element element, boolean visible) {
        if (element != null) {
            element.getStyle().setDisplay(visible ? "" : "none");
        }
    }
736617
def set_visible(self, visible):
        
        v = View.VISIBILITY_VISIBLE if visible else View.VISIBILITY_GONE
        self.widget.setVisibility(v)
446575
@Override
    void setVisibility(boolean visibility) {
        if (isVisible && !visibility) {
            // make the X cursor invisible
            xLib.XDefineCursor(xdisplay, xwindow, transparentCursor);
            MonocleWindowManager.getInstance().repaintAll();
        } else if (!isVisible && visibility) {
            // make the cursor visible
            xLib.XUndefineCursor(xdisplay, xwindow);
            MonocleWindowManager.getInstance().repaintAll();
        }
        isVisible = visibility;
    }
1072352
public void setClearVisible(boolean visible) {
        if (mClearButtonEnabled) {
            final Drawable d = (visible ? mTappableDrawable : null);
            final Drawable[] drawables = getCompoundDrawables();
            if (drawables != null) {
                setCompoundDrawables(drawables[0], drawables[1], d, drawables[3]);
            } else {
                Log.w(TAG, "No clear button is available.");
            }
        }
    }
1114556
public void setValueVisible(final boolean VISIBLE) {
        if (null == valueVisible) {
            _valueVisible = VISIBLE;
            fireTileEvent(VISIBILITY_EVENT);
        } else {
            valueVisible.set(VISIBLE);
        }
    }
775962
public void setTickLabelSectionsVisible(final boolean VISIBLE) {
        if (null == tickLabelSectionsVisible) {
            _tickLabelSectionsVisible = VISIBLE;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            tickLabelSectionsVisible.set(VISIBLE);
        }
    }
1333135
public void setSectionsAlwaysVisible(final boolean VISIBLE) {
        if (null == sectionsAlwaysVisible) {
            _sectionsAlwaysVisible = VISIBLE;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            sectionsAlwaysVisible.set(VISIBLE);
        }
    }
1210315
public void setZoomButtonsVisible(boolean zoomButtonsVisible)
    {
        boolean old = this.isZoomButtonsVisible();
        this.zoomButtonsVisible = zoomButtonsVisible;
        zoomInButton.setVisible(zoomButtonsVisible);
        zoomOutButton.setVisible(zoomButtonsVisible);
        firePropertyChange("zoomButtonsVisible", old, this.isZoomButtonsVisible());
    }
1074105
public void setSectionsVisible(final boolean VISIBLE) {
        if (null == sectionsVisible) {
            _sectionsVisible = VISIBLE;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            sectionsVisible.set(VISIBLE);
        }
    }
27129
public void setVisibility(boolean visible) {
    this.visible = visible;

    if (!style.isFullyLoaded()) {
      // We are in progress of loading a new style
      return;
    }

    Source source = style.getSource(TrafficData.SOURCE_ID);
    if (source == null) {
      initialise();
    }

    List<Layer> layers = style.getLayers();
    for (Layer layer : layers) {
      if (layerIds.contains(layer.getId())) {
        layer.setProperties(visibility(visible ? Property.VISIBLE : Property.NONE));
      }
    }
  }
656494
public void setOpenerVisible(boolean visible) {

        if (visible) {
            m_opener.getElement().getStyle().clearDisplay();
        } else {
            m_opener.getElement().getStyle().setDisplay(Display.NONE);
        }
    }
1299551
private void overButtonBar(Widget buttonBar) {

        if ((m_buttonBar == null) || (buttonBar.getElement() != m_buttonBar.getElement())) {
            closeAll();
            m_buttonBar = buttonBar;
            setButtonBarVisibility(m_buttonBar, true);
        }
    }
1335571
private void setPausable() {
		if (mPlayButton != null) {
			mPlayButton.setVisibility(View.GONE);
		}

		if (mPauseButton != null) {
			mPauseButton.setVisibility(View.VISIBLE);
		}
	}
515974
public void setThresholdVisible(final boolean VISIBLE) {
        if (null == thresholdVisible) {
            _thresholdVisible = VISIBLE;
            fireTileEvent(VISIBILITY_EVENT);
        } else {
            thresholdVisible.set(VISIBLE);
        }
    }
1365133
private void adaptButtonBarContainerVisibility() {
        if (buttonBarContainer != null) {
            if (TextUtils.isEmpty(positiveButtonText) && TextUtils.isEmpty(neutralButtonText) &&
                    TextUtils.isEmpty(negativeButtonText)) {
                buttonBarContainer.setVisibility(View.GONE);
            } else {
                buttonBarContainer.setVisibility(View.VISIBLE);
            }
        }
    }
1115216
public void setSectionIconsVisible(final boolean VISIBLE) {
        if (null == sectionIconsVisible) {
            _sectionIconsVisible = VISIBLE;
            fireTileEvent(REDRAW_EVENT);
        } else {
            sectionIconsVisible.set(VISIBLE);
        }
    }