26272829303132333435
super.onLayout(container, target); Component c = container.getItem(0); if (c != null) { callLayout(c, false); Point p = c.el().getAlignToXY(target.dom, "c-c", null); p = c.el().translatePoints(p); setPosition(c, p.x, p.y); } }
164165166167168169170171172
* coordinates * @return the position */ public Point getPosition(boolean local) { if (local) { return new Point(el().getLeft(true), el().getTop(true)); } return el().getXY(); }
345346347348349350351352
pageY = y; } if (!boxReady) { return; } Point p = getPositionEl().translatePoints(new Point(x, y)); setPosition(p.x, p.y); }
385386387388389390391392393394395
if (!boxReady) { return; } Point p = new Point(left, top); p = adjustPosition(p); int ax = p.x, ay = p.y; El pel = getPositionEl();
236237238239240241242
} else if (cright > sright) { c.setScrollLeft(cright - scroller.getStyleWidth()); } } return cellEl != null ? fly(cellEl).getXY() : new Point(c.getScrollLeft(), fly(rowEl).getY()); }
299300301302303304305306307308309
* @param rowIndex the row index * @param colIndex the column index * @param hscroll true to scroll horizontally */ public void focusCell(int rowIndex, int colIndex, boolean hscroll) { Point xy = ensureVisible(rowIndex, colIndex, hscroll); if (xy != null) { focusEl.setXY(xy); if (focusEnabled) { focusGrid(); }
448449450451452453454
* Returns the current scroll state. * * @return the scroll state */ public Point getScrollState() { return new Point(scroller.getScrollLeft(), scroller.getScrollTop()); }
212021212122212321242125212621272128212921302131
return cm.getColumnHeader(columnIndex) == null || cm.getColumnHeader(columnIndex).equals("") || (includeHidden && cm.isHidden(columnIndex)) || cm.isFixed(columnIndex); } private void constrainFocusElement() { Point p = focusEl.getXY(); Point p2 = new Point(scroller.getScrollLeft() + scroller.getWidth(), scroller.getScrollTop() + scroller.getHeight()); if (p2.x < p.x && p2.y < p.y) { focusEl.setXY(p2); } else if (p2.x < p.x) { focusEl.setX(p2.x); } else if (p2.y < p.y) {
155156157158159160161162163164165
layoutContainer.addListener(Events.OnClick, listener); } } protected void position(InfoLayer infoLayer, int width) { Point xy = infoLayer.el.getXY(); int x = xy.x; int y = xy.y; int w = infoLayer.el.getWidth(); int h = infoLayer.el.getHeight();
210211212213214215216217218219220
public Rectangle getRectangle() { return rect; } public void setMainModule(Module mainModule) { Point p = mainModule.getContainer().getPosition(false); Size s = mainModule.getContainer().getSize(); final Rectangle rect = new Rectangle(p.x, p.y, s.width, s.height); this.rect = rect;