/** * 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"); }
/** * 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"); }
/** * 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"); }
/** * 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"); }
@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"); } }
/** * 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"); }
/** * 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"); }
/** * 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"); }
/** * 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"); }
/** * 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"); }
/** * 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"); }
/** * 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"); }
/** * 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"); }
/** * 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); }
@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"); } }
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"); } }
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); } }
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); }
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); }
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); } }