public boolean checkPosition(int x, int y, Orientation orientation) {

        // ignore orientation
        int scrollTop = getElement().getOwnerDocument().getScrollTop();
        // use cached position
        int relativeTop = (y + scrollTop) - m_ownPosition.getTop();
        if ((relativeTop > 0) && (m_ownPosition.getHeight() > relativeTop)) {
            // cursor is inside the height of the element, check horizontal position
            int scrollLeft = getElement().getOwnerDocument().getScrollLeft();
            int relativeLeft = (x + scrollLeft) - m_ownPosition.getLeft();
            return (relativeLeft > 0) && (m_ownPosition.getWidth() > relativeLeft);
        }
        return false;
    }
public boolean checkPosition ( int x , int y , Orientation orientation ) { int scrollTop = getElement ( ) . getOwnerDocument ( ) . getScrollTop ( ) ; int relativeTop = ( y + scrollTop ) - m_ownPosition . getTop ( ) ; if ( ( relativeTop > 0 ) && ( m_ownPosition . getHeight ( ) > relativeTop ) ) { int scrollLeft = getElement ( ) . getOwnerDocument ( ) . getScrollLeft ( ) ; int relativeLeft = ( x + scrollLeft ) - m_ownPosition . getLeft ( ) ; return ( relativeLeft > 0 ) && ( m_ownPosition . getWidth ( ) > relativeLeft ) ; } return false ; }
@see org.opencms.gwt.client.dnd.I_CmsDropTarget#checkPosition(int, int, Orientation)