Package com.google.gwt.event.dom.client

Examples of com.google.gwt.event.dom.client.ScrollHandler


     * Return a ScrollHandler to ensure the Header and Sidebar are repositioned
     * according to the position of the scroll bars surrounding the GridWidget
     */
    @Override
    protected ScrollHandler getScrollHandler() {
        return new ScrollHandler() {

            public void onScroll( ScrollEvent event ) {
                headerWidget.setScrollPosition( scrollPanel.getHorizontalScrollPosition() );
                sidebarWidget.setScrollPosition( scrollPanel.getVerticalScrollPosition() );
            }
View Full Code Here


        // Do not let the scrollable take tab focus.
        scrollable.getElement().setTabIndex(-1);

        // Handle scroll events.
        scrollable.addScrollHandler(new ScrollHandler() {
            @Override
            public void onScroll(ScrollEvent event) {
                // If scrolling up, ignore the event.
                int oldScrollPos = lastScrollPos;
                lastScrollPos = scrollable.getVerticalScrollPosition();
View Full Code Here

      scrollHandlerRegistration.removeHandler();
    scrollHandlerRegistration = null;
    scrollJs  = js.trim();
    if(!scrollJs.isEmpty())
    {
      scrollHandlerRegistration = addScrollHandler(new ScrollHandler() {
        @Override
        public void onScroll(ScrollEvent event) {
          VkStateHelper.getInstance().getEventHelper().executeEvent(scrollJs, event, true);
        }
      });
View Full Code Here

    public TimeLineWidget(SimulationTestEventHandler simulationTestEventHandler) {
        this.simulationTestEventHandler = simulationTestEventHandler;
        initWidget(uiBinder.createAndBindUi(this));
        contentHeight = simulationStyle.timeLineHeaderHeight() + simulationStyle.timeLineFooterHeight();
        timeLineScrollPanel.addScrollHandler(new ScrollHandler() {
            public void onScroll(ScrollEvent event) {
                updateTimeLineContent();
            }
        });
        if (simulationResources.timeStone().getHeight() != simulationStyle.timeLinePathHeight()) {
View Full Code Here

     * Return a ScrollHandler to ensure the Header and Sidebar are repositioned
     * according to the position of the scroll bars surrounding the GridWidget
     */
    @Override
    public ScrollHandler getScrollHandler() {
        return new ScrollHandler() {

            public void onScroll(ScrollEvent event) {
                headerWidget.setScrollPosition( scrollPanel.getHorizontalScrollPosition() );
                sidebarWidget.setScrollPosition( scrollPanel.getScrollPosition() );
            }
View Full Code Here

    resizeLine.setWidth("5px");
    resizeLine.setHeight("800px");
    resizeLine.setStyleName("WSGrid-resize-line");
    resizeLine.sinkEvents(Event.MOUSEEVENTS);

    dataGrid.getScrollPanel().addScrollHandler(new ScrollHandler() {
      public void onScroll(ScrollEvent event) {
        titleBar.getScrollPanel().setHorizontalScrollPosition(dataGrid.getScrollPanel().getHorizontalScrollPosition());
      }
    });
View Full Code Here

     * Return a ScrollHandler to ensure the Header and Sidebar are repositioned
     * according to the position of the scroll bars surrounding the GridWidget
     */
    @Override
    protected ScrollHandler getScrollHandler() {
        return new ScrollHandler() {

            public void onScroll( ScrollEvent event ) {
                headerWidget.setScrollPosition( scrollPanel.getHorizontalScrollPosition() );
                sidebarWidget.setScrollPosition( scrollPanel.getVerticalScrollPosition() );
            }
View Full Code Here

     * Return a ScrollHandler to ensure the Header and Sidebar are repositioned
     * according to the position of the scroll bars surrounding the GridWidget
     */
    @Override
    public ScrollHandler getScrollHandler() {
        return new ScrollHandler() {

            public void onScroll(ScrollEvent event) {
                headerWidget.setScrollPosition( scrollPanel
                        .getHorizontalScrollPosition() );
                sidebarWidget
View Full Code Here

     */
    public void enableFocusedScrolling(boolean enable) {

        if (enable) {
            if (m_handlerRegistration == null) {
                m_handlerRegistration = addScrollHandler(new ScrollHandler() {

                    public void onScroll(ScrollEvent event) {

                        ensureFocusedScrolling();
                    }
View Full Code Here

        scrollable = getScrollable();
        layoutHolder = getLayoutHolder();
        portalHolder = getPortalHolder();
       
        if (scrollable != null) {
            scrollable.addScrollHandler(new ScrollHandler() {
                @Override public void onScroll(ScrollEvent event) {
                    AMainView.this.fireEvent(new PageScrollEvent(AMainView.this, scrollable, scrollable.getVerticalScrollPosition(), event));
                }
            });
        }
View Full Code Here

TOP

Related Classes of com.google.gwt.event.dom.client.ScrollHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.