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() . 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 check out the related API usage on the sidebar.
Example 1
Source File: CubaTreeTableWidget.java    From cuba with 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 File: CubaSuggestPopup.java    From cuba with 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 File: CubaGroupBoxWidget.java    From cuba with 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 File: ImageThumbnailWidget.java    From swellrt with 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
Source File: ImageThumbnailWidget.java    From incubator-retired-wave with 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);
  }
}