本文整理了Java中com.google.gwt.dom.client.Element.setScrollLeft()
方法的一些代码示例,展示了Element.setScrollLeft()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.setScrollLeft()
方法的具体详情如下:
包路径:com.google.gwt.dom.client.Element
类名称:Element
方法名:setScrollLeft
[英]The number of pixels that an element's content is scrolled to the left.
[中]元素内容向左滚动的像素数。
代码示例来源:origin: com.google.gwt/gwt-servlet
@Override
public void onScroll(ScrollEvent event) {
int scrollLeft = tableDataScroller.getHorizontalScrollPosition();
tableHeaderScroller.setScrollLeft(scrollLeft);
tableFooterScroller.setScrollLeft(scrollLeft);
}
});
代码示例来源:origin: com.google.gwt/gwt-servlet
public native void setScrollLeft(Element elem, int left) /*-{
elem.scrollLeft = left;
}-*/;
代码示例来源:origin: com.google.gwt/gwt-servlet
public void setHorizontalScrollPosition(int position) {
getScrollableElement().setScrollLeft(position);
}
代码示例来源:origin: com.google.gwt/gwt-servlet
expandableInner.getStyle().setWidth(width, Unit.PX);
expandable.setScrollTop(height);
expandable.setScrollLeft(width);
collapsible.setScrollLeft(collapsible.getScrollWidth() + 100);
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
/**
* Set the horizontal position in the cell in the footer. This is done
* when a horizontal scrollbar is present.
*
* @param scrollLeft
* The value of the leftScroll
*/
public void setHorizontalScrollPosition(int scrollLeft) {
hTableWrapper.setScrollLeft(scrollLeft);
}
代码示例来源:origin: stephenh/tessell
@Override
public void setScrollLeft(int scrollLeft) {
element.setScrollLeft(scrollLeft);
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
public void setHorizontalScrollPosition(int scrollLeft) {
hTableWrapper.setScrollLeft(scrollLeft);
}
代码示例来源:origin: net.wetheinter/gwt-user
@Override
public void onScroll(ScrollEvent event) {
int scrollLeft = tableDataScroller.getHorizontalScrollPosition();
tableHeaderScroller.setScrollLeft(scrollLeft);
tableFooterScroller.setScrollLeft(scrollLeft);
}
});
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
@Override
public void onScroll(ScrollEvent event) {
int scrollLeft = tableDataScroller.getHorizontalScrollPosition();
tableHeaderScroller.setScrollLeft(scrollLeft);
tableFooterScroller.setScrollLeft(scrollLeft);
}
});
代码示例来源:origin: net.wetheinter/gwt-user
public native void setScrollLeft(Element elem, int left) /*-{
elem.scrollLeft = left;
}-*/;
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
public void setHorizontalScrollPosition(int position) {
getScrollableElement().setScrollLeft(position);
}
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
public native void setScrollLeft(Element elem, int left) /*-{
elem.scrollLeft = left;
}-*/;
代码示例来源:origin: net.wetheinter/gwt-user
public void setHorizontalScrollPosition(int position) {
getScrollableElement().setScrollLeft(position);
}
代码示例来源:origin: jqm4gwt/jqm4gwt
/** Aligns header to match the columns, useful after resize or orientation changes. */
public void adjustColumnSizing() {
JsDataTable.adjustColumnSizing(getElement());
Element sb = findUpperElement(SCROLL_BODY);
if (sb != null) sb.setScrollLeft(0);
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
@Override
public void postLayout() {
VPanel panel = getWidget();
if (uidlScrollTop != null) {
// IE / Safari fix for when scroll top is set to greater than panel
// height
int maxScroll = panel.getWidget().getOffsetHeight();
if (uidlScrollTop > maxScroll) {
uidlScrollTop = maxScroll;
}
panel.contentNode.setScrollTop(uidlScrollTop.intValue());
// Read actual value back to ensure update logic is correct
// TODO Does this trigger reflows?
panel.scrollTop = panel.contentNode.getScrollTop();
uidlScrollTop = null;
}
if (uidlScrollLeft != null) {
panel.contentNode.setScrollLeft(uidlScrollLeft.intValue());
// Read actual value back to ensure update logic is correct
// TODO Does this trigger reflows?
panel.scrollLeft = panel.contentNode.getScrollLeft();
uidlScrollLeft = null;
}
}
代码示例来源:origin: net.wetheinter/gwt-user
expandableInner.getStyle().setWidth(width, Unit.PX);
expandable.setScrollTop(height);
expandable.setScrollLeft(width);
collapsible.setScrollLeft(collapsible.getScrollWidth() + 100);
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
expandableInner.getStyle().setWidth(width, Unit.PX);
expandable.setScrollTop(height);
expandable.setScrollLeft(width);
collapsible.setScrollLeft(collapsible.getScrollWidth() + 100);
代码示例来源:origin: com.extjs/gxt
int sright = sleft + c.getOffsetWidth();
if (cleft < sleft) {
c.setScrollLeft(cleft);
} else if (cright > sright) {
c.setScrollLeft(cright - scroller.getStyleWidth());
代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit
panel.contentNode.setScrollLeft(panel.scrollLeft);
Profiler.leave("PanelConnector.layout update scroll positions");
内容来源于网络,如有侵权,请联系作者删除!