com.google.gwt.dom.client.Style.clearHeight()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(84)

本文整理了Java中com.google.gwt.dom.client.Style.clearHeight()方法的一些代码示例,展示了Style.clearHeight()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Style.clearHeight()方法的具体详情如下:
包路径:com.google.gwt.dom.client.Style
类名称:Style
方法名:clearHeight

Style.clearHeight介绍

[英]Clear the height css property.
[中]清除height css属性。

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

public void removeChild(Element container, Element child) {
  container.removeFromParent();

  // We want this code to be resilient to the child having already been
  // removed from its container (perhaps by widget code).
  if (child.getParentElement() == container) {
   child.removeFromParent();
  }

  // Cleanup child styles set by fillParent().
  Style style = child.getStyle();
  style.clearPosition();
  style.clearLeft();
  style.clearTop();
  style.clearWidth();
  style.clearHeight();
 }
}

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
  * Put the node back into a clean state and clear fields.
  */
 private void cleanup() {
  if (opening) {
   animFrame.getStyle().clearDisplay();
  } else {
   animFrame.getStyle().setDisplay(Display.NONE);
   childContainer.setInnerHTML("");
  }
  animFrame.getStyle().clearHeight();
  animFrame.getStyle().clearPosition();
  this.contentContainer = null;
  this.childContainer = null;
  this.animFrame = null;
 }
}

代码示例来源:origin: org.uberfire/uberfire-widgets-commons

public void clearScrollHeight() {
  this.scroll.getElement().getStyle().clearHeight();
}

代码示例来源:origin: stephenh/tessell

@Override
public void clearHeight() {
 element.getStyle().clearHeight();
}

代码示例来源:origin: kiegroup/appformer

public void clearScrollHeight() {
  this.scroll.getElement().getStyle().clearHeight();
}

代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit

public CubaSuggestPopup() {
    Style style = loadingImage.getElement().getStyle();

    style.clearWidth();
    style.clearHeight();
    style.setDisplay(Style.Display.BLOCK);
  }
}

代码示例来源:origin: com.google.gwt/gwt-servlet

setValue(layer, "height", layer.height, layer.heightUnit, true, true);
} else {
 style.clearHeight();

代码示例来源:origin: fr.putnami.pwt/pwt

private void setInitialCollapse(boolean collapse) {
  this.collapsed = collapse;
  this.collapsableElement.getStyle().clearHeight();
  StyleUtils.removeStyle(this.collapsableElement, CollapseHelper.STYLE_COLLAPSING);
  StyleUtils.toggleStyle(this.collapsableElement, CollapseHelper.STYLE_VISIBLE, !collapse);
}

代码示例来源:origin: org.eagle-i/eagle-i-common-ui-suggest-gwt

@Override
  public void execute() {
    final int h = tree.getOffsetHeight();
    final int maxHeight = computeMaxHeight();
    if ( h > maxHeight ) {
      scroll.setHeight( maxHeight + "px" );
    } else {
      scroll.getElement().getStyle().clearHeight();
    }
    popup.showRelativeTo( p );
  }
} );

代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt

@Override
  public void execute() {
    final int h = tree.getOffsetHeight();
    final int maxHeight = computeMaxHeight();
    if ( h > maxHeight ) {
      scroll.setHeight( maxHeight + "px" );
    } else {
      scroll.getElement().getStyle().clearHeight();
    }
    popup.showRelativeTo( p );
  }
} );

代码示例来源:origin: org.eagle-i/eagle-i-common-ui-suggest-gwt

@Override
  public void execute() {
    final int h = tree.getOffsetHeight();
    final int maxHeight = computeMaxHeight();
    if ( h > maxHeight ) {
      scroll.setHeight( maxHeight + "px" );
    } else {
      scroll.getElement().getStyle().clearHeight();
    }
    popup.showRelativeTo( p );
  }
} );

代码示例来源:origin: Putnami/putnami-web-toolkit

private void setInitialCollapse(boolean collapse) {
  this.collapsed = collapse;
  this.collapsableElement.getStyle().clearHeight();
  StyleUtils.removeStyle(this.collapsableElement, CollapseHelper.STYLE_COLLAPSING);
  StyleUtils.toggleStyle(this.collapsableElement, CollapseHelper.STYLE_VISIBLE, !collapse);
}

代码示例来源:origin: Putnami/putnami-web-toolkit

@Override
  public boolean execute() {
    CollapseHelper.this.collapsableElement.getStyle().clearHeight();
    StyleUtils.removeStyle(CollapseHelper.this.collapsableElement, CollapseHelper.STYLE_COLLAPSING);
    StyleUtils.addStyle(CollapseHelper.this.collapsableElement, CollapseHelper.STYLE_COLLAPSE);
    StyleUtils.toggleStyle(CollapseHelper.this.collapsableElement, CollapseHelper.STYLE_VISIBLE, !collapse);
    return false;
  }
}, 350);

代码示例来源:origin: fr.putnami.pwt/pwt

@Override
  public boolean execute() {
    CollapseHelper.this.collapsableElement.getStyle().clearHeight();
    StyleUtils.removeStyle(CollapseHelper.this.collapsableElement, CollapseHelper.STYLE_COLLAPSING);
    StyleUtils.addStyle(CollapseHelper.this.collapsableElement, CollapseHelper.STYLE_COLLAPSE);
    StyleUtils.toggleStyle(CollapseHelper.this.collapsableElement, CollapseHelper.STYLE_VISIBLE, !collapse);
    return false;
  }
}, 350);

代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt

@Override
  public void execute() {
    final int h = tree.getOffsetHeight();
    final int maxHeight = computeMaxHeight();
    if ( h > maxHeight ) {
      scroll.setHeight( maxHeight + "px" );
    } else {
      scroll.getElement().getStyle().clearHeight();
    }
    popup.showRelativeTo( p );
    if ( rootClass == null ) {
      popup.hide();
    }
  }
} );

代码示例来源:origin: io.github.nibiruos.ui/org.nibiru.ui.gwt

private <X> X doWithClone(Function<Element, X> callback) {
    Element clon = DOM.clone(control.getElement(), true);
    clon.getStyle().setPosition(Position.ABSOLUTE);
    clon.getStyle().clearPadding();
    clon.getStyle().clearWidth();
    clon.getStyle().clearHeight();
    Document.get().getBody().appendChild(clon);
    X returnValue = callback.apply(clon);
    clon.removeFromParent();
    return returnValue;
  }
}

代码示例来源:origin: net.wetheinter/gwt-user

public void removeChild(Element container, Element child) {
  container.removeFromParent();

  // We want this code to be resilient to the child having already been
  // removed from its container (perhaps by widget code).
  if (child.getParentElement() == container) {
   child.removeFromParent();
  }

  // Cleanup child styles set by fillParent().
  Style style = child.getStyle();
  style.clearPosition();
  style.clearLeft();
  style.clearTop();
  style.clearWidth();
  style.clearHeight();
 }
}

代码示例来源:origin: net.wetheinter/gwt-user

/**
  * Put the node back into a clean state and clear fields.
  */
 private void cleanup() {
  if (opening) {
   animFrame.getStyle().clearDisplay();
  } else {
   animFrame.getStyle().setDisplay(Display.NONE);
   childContainer.setInnerHTML("");
  }
  animFrame.getStyle().clearHeight();
  animFrame.getStyle().clearPosition();
  this.contentContainer = null;
  this.childContainer = null;
  this.animFrame = null;
 }
}

代码示例来源:origin: fr.putnami.pwt/pwt

private void clearElementStyle() {
    Element e = this.getElement();
    Style style = e.getStyle();

    style.clearPosition();
    style.clearTop();
    style.clearBottom();
    style.clearWidth();
    style.clearHeight();
    style.clearZIndex();
    e.getParentElement().getStyle().clearPaddingTop();
  }
}

代码示例来源:origin: Putnami/putnami-web-toolkit

private void clearElementStyle() {
    Element e = this.getElement();
    Style style = e.getStyle();

    style.clearPosition();
    style.clearTop();
    style.clearBottom();
    style.clearWidth();
    style.clearHeight();
    style.clearZIndex();
    e.getParentElement().getStyle().clearPaddingTop();
  }
}

相关文章

微信公众号

最新文章

更多

Style类方法