Java Code Examples for com.google.gwt.dom.client.Style#setDisplay()

The following examples show how to use com.google.gwt.dom.client.Style#setDisplay() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: cuba   File: CubaTreeTableWidget.java    License: Apache License 2.0 5 votes vote down vote up
public void setPresentationsMenu(Widget presentationsMenu) {
    if (_delegate.presentationsMenu != presentationsMenu) {
        Style presentationsIconStyle = ((CubaTreeTableTableHead) tHead).presentationsEditIcon.getElement().getStyle();
        if (presentationsMenu == null) {
            presentationsIconStyle.setDisplay(Style.Display.NONE);
        } else {
            presentationsIconStyle.setDisplay(Style.Display.BLOCK);
        }
    }
    _delegate.presentationsMenu = presentationsMenu;
}
 
Example 2
Source Project: cuba   File: CubaSuggestPopup.java    License: Apache License 2.0 5 votes vote down vote up
public CubaSuggestPopup() {
    Style style = loadingImage.getElement().getStyle();

    style.clearWidth();
    style.clearHeight();
    style.setDisplay(Style.Display.BLOCK);
}
 
Example 3
Source Project: cuba   File: CubaGroupBoxWidget.java    License: Apache License 2.0 5 votes vote down vote up
public void setCollapsable(boolean collapsable) {
    Style expanderStyle = expander.getStyle();
    if (collapsable) {
        expanderStyle.clearProperty("display");
        removeStyleDependentName("nocollapsable");
    } else {
        addStyleDependentName("nocollapsable");
        expanderStyle.setDisplay(Style.Display.NONE);
    }

    Tools.textSelectionEnable(captionNode, !collapsable);

    this.collapsable = collapsable;
}
 
Example 4
Source Project: swellrt   File: ImageThumbnailWidget.java    License: Apache License 2.0 5 votes vote down vote up
public void execute() {
  Style style = menuButtonContainer.getElement().getStyle();
  if (resizeButtonVisible) {
    style.setDisplay(Display.BLOCK);
  } else {
    style.setDisplay(Display.NONE);
  }
}
 
Example 5
public void execute() {
  Style style = menuButtonContainer.getElement().getStyle();
  if (resizeButtonVisible) {
    style.setDisplay(Display.BLOCK);
  } else {
    style.setDisplay(Display.NONE);
  }
}