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

x33g5p2x  于2022-01-19 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(341)

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

Element.setScrollLeft介绍

[英]The number of pixels that an element's content is scrolled to the left.
[中]元素内容向左滚动的像素数。

代码示例

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

  1. @Override
  2. public void onScroll(ScrollEvent event) {
  3. int scrollLeft = tableDataScroller.getHorizontalScrollPosition();
  4. tableHeaderScroller.setScrollLeft(scrollLeft);
  5. tableFooterScroller.setScrollLeft(scrollLeft);
  6. }
  7. });

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

  1. public native void setScrollLeft(Element elem, int left) /*-{
  2. elem.scrollLeft = left;
  3. }-*/;

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

  1. public void setHorizontalScrollPosition(int position) {
  2. getScrollableElement().setScrollLeft(position);
  3. }

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

  1. expandableInner.getStyle().setWidth(width, Unit.PX);
  2. expandable.setScrollTop(height);
  3. expandable.setScrollLeft(width);
  4. collapsible.setScrollLeft(collapsible.getScrollWidth() + 100);

代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

  1. /**
  2. * Set the horizontal position in the cell in the footer. This is done
  3. * when a horizontal scrollbar is present.
  4. *
  5. * @param scrollLeft
  6. * The value of the leftScroll
  7. */
  8. public void setHorizontalScrollPosition(int scrollLeft) {
  9. hTableWrapper.setScrollLeft(scrollLeft);
  10. }

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

  1. @Override
  2. public void setScrollLeft(int scrollLeft) {
  3. element.setScrollLeft(scrollLeft);
  4. }

代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

  1. public void setHorizontalScrollPosition(int scrollLeft) {
  2. hTableWrapper.setScrollLeft(scrollLeft);
  3. }

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

  1. @Override
  2. public void onScroll(ScrollEvent event) {
  3. int scrollLeft = tableDataScroller.getHorizontalScrollPosition();
  4. tableHeaderScroller.setScrollLeft(scrollLeft);
  5. tableFooterScroller.setScrollLeft(scrollLeft);
  6. }
  7. });

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

  1. @Override
  2. public void onScroll(ScrollEvent event) {
  3. int scrollLeft = tableDataScroller.getHorizontalScrollPosition();
  4. tableHeaderScroller.setScrollLeft(scrollLeft);
  5. tableFooterScroller.setScrollLeft(scrollLeft);
  6. }
  7. });

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

  1. public native void setScrollLeft(Element elem, int left) /*-{
  2. elem.scrollLeft = left;
  3. }-*/;

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

  1. public void setHorizontalScrollPosition(int position) {
  2. getScrollableElement().setScrollLeft(position);
  3. }

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

  1. public native void setScrollLeft(Element elem, int left) /*-{
  2. elem.scrollLeft = left;
  3. }-*/;

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

  1. public void setHorizontalScrollPosition(int position) {
  2. getScrollableElement().setScrollLeft(position);
  3. }

代码示例来源:origin: jqm4gwt/jqm4gwt

  1. /** Aligns header to match the columns, useful after resize or orientation changes. */
  2. public void adjustColumnSizing() {
  3. JsDataTable.adjustColumnSizing(getElement());
  4. Element sb = findUpperElement(SCROLL_BODY);
  5. if (sb != null) sb.setScrollLeft(0);
  6. }

代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets

  1. @Override
  2. public void postLayout() {
  3. VPanel panel = getWidget();
  4. if (uidlScrollTop != null) {
  5. // IE / Safari fix for when scroll top is set to greater than panel
  6. // height
  7. int maxScroll = panel.getWidget().getOffsetHeight();
  8. if (uidlScrollTop > maxScroll) {
  9. uidlScrollTop = maxScroll;
  10. }
  11. panel.contentNode.setScrollTop(uidlScrollTop.intValue());
  12. // Read actual value back to ensure update logic is correct
  13. // TODO Does this trigger reflows?
  14. panel.scrollTop = panel.contentNode.getScrollTop();
  15. uidlScrollTop = null;
  16. }
  17. if (uidlScrollLeft != null) {
  18. panel.contentNode.setScrollLeft(uidlScrollLeft.intValue());
  19. // Read actual value back to ensure update logic is correct
  20. // TODO Does this trigger reflows?
  21. panel.scrollLeft = panel.contentNode.getScrollLeft();
  22. uidlScrollLeft = null;
  23. }
  24. }

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

  1. expandableInner.getStyle().setWidth(width, Unit.PX);
  2. expandable.setScrollTop(height);
  3. expandable.setScrollLeft(width);
  4. collapsible.setScrollLeft(collapsible.getScrollWidth() + 100);

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

  1. expandableInner.getStyle().setWidth(width, Unit.PX);
  2. expandable.setScrollTop(height);
  3. expandable.setScrollLeft(width);
  4. collapsible.setScrollLeft(collapsible.getScrollWidth() + 100);

代码示例来源:origin: com.extjs/gxt

  1. int sright = sleft + c.getOffsetWidth();
  2. if (cleft < sleft) {
  3. c.setScrollLeft(cleft);
  4. } else if (cright > sright) {
  5. c.setScrollLeft(cright - scroller.getStyleWidth());

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

  1. panel.contentNode.setScrollLeft(panel.scrollLeft);
  2. Profiler.leave("PanelConnector.layout update scroll positions");

相关文章

Element类方法