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

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

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

Element.getPropertyInt介绍

暂无

代码示例

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

/**
 * Gets the column span for the given cell. This is the number of logical
 * columns covered by the cell.
 * 
 * @param row the cell's row
 * @param column the cell's column
 * @return the cell's column span
 * @throws IndexOutOfBoundsException
 */
public int getColSpan(int row, int column) {
 return getElement(row, column).getPropertyInt("colSpan");
}

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

/**
 * Gets the row span for the given cell. This is the number of logical rows
 * covered by the cell.
 * 
 * @param row the cell's row
 * @param column the cell's column
 * @return the cell's row span
 * @throws IndexOutOfBoundsException
 */
public int getRowSpan(int row, int column) {
 return getElement(row, column).getPropertyInt("rowSpan");
}

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

/**
 * Gets the object's offset height in pixels. This is the total height of the
 * object, including decorations such as border and padding, but not margin.
 * 
 * @return the object's offset height
 */
public int getOffsetHeight() {
 return getElement().getPropertyInt("offsetHeight");
}

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

/**
 * Gets the object's offset width in pixels. This is the total width of the
 * object, including decorations such as border and padding, but not margin.
 * 
 * @return the object's offset width
 */
public int getOffsetWidth() {
 return getElement().getPropertyInt("offsetWidth");
}

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

@Override
 protected void onUpdate(double progress) {
  int scrollHeight = curPanel.contentWrapper.getElement().getPropertyInt("scrollHeight");
  int height = (int) (progress * scrollHeight);
  if (!opening) {
   height = scrollHeight - height;
  }
  height = Math.max(height, 1);
  curPanel.contentWrapper.getElement().getStyle().setProperty("height", height + "px");
  curPanel.contentWrapper.getElement().getStyle().setProperty("width", "auto");
 }
}

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

/**
 * Gets the row span for the given cell. This is the number of logical rows
 * covered by the cell.
 * 
 * @param row the cell's row
 * @param column the cell's column
 * @return the cell's row span
 * @throws IndexOutOfBoundsException
 */
public int getRowSpan(int row, int column) {
 return getElement(row, column).getPropertyInt("rowSpan");
}

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

/**
 * Gets the object's offset width in pixels. This is the total width of the
 * object, including decorations such as border and padding, but not margin.
 * 
 * @return the object's offset width
 */
public int getOffsetWidth() {
 return getElement().getPropertyInt("offsetWidth");
}

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

/**
 * Gets the object's offset height in pixels. This is the total height of the
 * object, including decorations such as border and padding, but not margin.
 * 
 * @return the object's offset height
 */
public int getOffsetHeight() {
 return getElement().getPropertyInt("offsetHeight");
}

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

/**
 * Gets the column span for the given cell. This is the number of logical
 * columns covered by the cell.
 * 
 * @param row the cell's row
 * @param column the cell's column
 * @return the cell's column span
 * @throws IndexOutOfBoundsException
 */
public int getColSpan(int row, int column) {
 return getElement(row, column).getPropertyInt("colSpan");
}

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

/**
 * Gets the row span for the given cell. This is the number of logical rows
 * covered by the cell.
 * 
 * @param row the cell's row
 * @param column the cell's column
 * @return the cell's row span
 * @throws IndexOutOfBoundsException
 */
public int getRowSpan(int row, int column) {
 return getElement(row, column).getPropertyInt("rowSpan");
}

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

/**
 * Gets the column span for the given cell. This is the number of logical
 * columns covered by the cell.
 * 
 * @param row the cell's row
 * @param column the cell's column
 * @return the cell's column span
 * @throws IndexOutOfBoundsException
 */
public int getColSpan(int row, int column) {
 return getElement(row, column).getPropertyInt("colSpan");
}

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

/**
 * Gets the object's offset width in pixels. This is the total width of the
 * object, including decorations such as border and padding, but not margin.
 * 
 * @return the object's offset width
 */
public int getOffsetWidth() {
 return getElement().getPropertyInt("offsetWidth");
}

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

/**
 * Gets the object's offset height in pixels. This is the total height of the
 * object, including decorations such as border and padding, but not margin.
 * 
 * @return the object's offset height
 */
public int getOffsetHeight() {
 return getElement().getPropertyInt("offsetHeight");
}

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

/**
 * Returns the index of the element.
 * 
 * @param element the element
 * @return the index
 */
public int indexOf(Element element) {
 if (element.getPropertyString("viewIndex") != null) {
  return element.getPropertyInt("viewIndex");
 }
 return all.indexOf(element);
}

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

@Override
 protected void onUpdate(double progress) {
  int scrollHeight = curPanel.contentWrapper.getElement().getPropertyInt("scrollHeight");
  int height = (int) (progress * scrollHeight);
  if (!opening) {
   height = scrollHeight - height;
  }
  height = Math.max(height, 1);
  curPanel.contentWrapper.getElement().getStyle().setProperty("height", height + "px");
  curPanel.contentWrapper.getElement().getStyle().setProperty("width", "auto");
 }
}

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

protected void onScrollerIn(El t) {
 boolean top = t.is(".x-menu-scroller-top");
 if (top ? ul.getScrollTop() > 0 : ul.getScrollTop() + activeMax < ul.dom.getPropertyInt("scrollHeight")) {
  t.addStyleName("x-menu-item-active", "x-menu-scroller-active");
 }
}

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

private void updateMPMonth(int month) {
 for (int i = 0; i < mpMonths.getCount(); i++) {
  Element elem = mpMonths.item(i);
  int xmonth = elem.getPropertyInt("xmonth");
  fly(elem).setStyleName("x-date-mp-sel", xmonth == month);
 }
}

代码示例来源:origin: org.geomajas/geomajas-gwt-client-impl

public void setLeft(int left) {
  this.left = left;
  int leftShift = 0;
  if (widget.getParent() != null) {
    leftShift = widget.getParent().getElement().getPropertyInt(HtmlGroup.LEFT_SHIFT);
  }
  DomService.setLeft(widget.getElement(), left + leftShift);
}

代码示例来源:origin: org.geomajas/geomajas-gwt-client-impl

public void setTop(int top) {
  this.top = top;
  int topShift = 0;
  if (widget.getParent() != null) {
    topShift = widget.getParent().getElement().getPropertyInt(HtmlGroup.TOP_SHIFT);
  }
  DomService.setTop(widget.getElement(), top + topShift);
}

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

protected void onScroll(ClickRepeaterEvent ce) {
 El target = ce.getEl();
 boolean top = target.is(".x-menu-scroller-top");
 scrollMenu(top);
 if (top ? ul.getScrollTop() <= 0 : ul.getScrollTop() + activeMax >= ul.dom.getPropertyInt("scrollHeight")) {
  onScrollerOut(target);
 }
}

相关文章

微信公众号

最新文章

更多

Element类方法