Package com.google.gwt.query.client

Examples of com.google.gwt.query.client.Function


  private void doMoveAnimation(){
    $(".foo").animate(Properties.create("{left:'+=1000'}"), 2000, Easing.SWING)
        .delay(500)
        .animate("left:'-=1000'", 2000)
        .queue(new Function() {
          @Override
          public void f() {
            doMoveAnimation();
            $(".foo").dequeue();
          }
View Full Code Here


    public TooltipImpl(Element element, TooltipOptions options, TooltipResources resources) {
        this.$element = $(element);
        this.options = getOptions(options);
        this.style = resources.css();
        this.autocloseFunction = new Function() {
            @Override
            public boolean f(Event e) {
                return onDocumentClick(e);
            }
        };
View Full Code Here

        GQuery tooltip = getTip();

        tooltip.removeClass(style.in());

        if (options.isAnimation()) {
            tooltip.fadeOut(ANIMATION_DURATION, new Function() {
                @Override
                public void f() {
                    detach();
                }
            });
View Full Code Here

        tooltip.offset((int) finalTop, (int) finalLeft);
        tooltip.addClass(placementClass)
                .addClass(style.in());

        if (options.getTrigger() == TooltipTrigger.CLICK && options.isAutoClose()) {
            $(document).delay(1, new Function() {
                @Override
                public void f() {
                    $(document).click(autocloseFunction);
                }
            });
View Full Code Here

        } else {
            fixTitle();
        }

        if (options.getTrigger() == TooltipTrigger.CLICK) {
            bind("click", new Function() {
                @Override
                public boolean f(Event e) {
                    toggle(e, delegationOptions);
                    return true;
                }
            });
        } else if (options.getTrigger() != TooltipTrigger.MANUAL) {
            String eventIn = options.getTrigger() == TooltipTrigger.HOVER ? "mouseenter" : "focus";
            String eventOut = options.getTrigger() == TooltipTrigger.HOVER ? "mouseleave" : "blur";
            bind(eventIn, new Function() {
                @Override
                public boolean f(Event e) {
                    enter(e, delegationOptions);
                    return true;
                }
            });
            bind(eventOut, new Function() {
                @Override
                public boolean f(Event e) {
                    leave(e, delegationOptions);
                    return true;
                }
View Full Code Here

    void onCloseAnchorClicked(ClickEvent event) {
        close();
    }

    private void close() {
        $(messageBox).fadeOut(new Function() {
            @Override
            public void f() {
                MessageWidget.this.removeFromParent();
            }
        });
View Full Code Here

        $("[title]", toolbar).as(Tooltip).tooltip(new TooltipOptions().withDelayShow(200).withDelayHide(100)
                .withContainer("element"));
    }

    private void setupFormTooltip() {
        $("#loginButton").click(new Function() {
            @Override
            public void f() {

                String userName = $("#userNameField").val();
                if (userName == null || userName.length() == 0) {
View Full Code Here

        final GQuery tooltip = getTip();

        tooltip.removeClass(style.in());

        if (options.isAnimation()) {
            tooltip.fadeOut(ANIMATION_DURATION, new Function() {
                @Override
                public void f() {
                    tooltip.detach();
                }
            });
View Full Code Here

        } else {
            fixTitle();
        }

        if (options.getTrigger() == TooltipTrigger.CLICK) {
            bind("click", new Function() {
                @Override
                public boolean f(Event e) {
                    toggle(e, delegationOptions);
                    return true;
                }
            });
        } else if (options.getTrigger() != TooltipTrigger.MANUAL) {
            String eventIn = options.getTrigger() == TooltipTrigger.HOVER ? "mouseenter" : "focus";
            String eventOut = options.getTrigger() == TooltipTrigger.HOVER ? "mouseleave" : "blur";
            bind(eventIn, new Function() {
                @Override
                public boolean f(Event e) {
                    enter(e, delegationOptions);
                    return true;
                }
            });
            bind(eventOut, new Function() {
                @Override
                public boolean f(Event e) {
                    leave(e, delegationOptions);
                    return true;
                }
View Full Code Here

  private void loadAngular() {
    if(!isInjected()) {
      Promise loadAngular = new ScriptLoader();

      loadAngular.done(new Function() {
        public void f() {
          Browser.getWindow().getConsole().info("loading angularjs succeeded.");
          injectModules();         
        }
      });

      loadAngular.fail(new Function() {
        public void f() {
          Browser.getWindow().getConsole().warn("loading angularjs failed.");
        }
      });
View Full Code Here

TOP

Related Classes of com.google.gwt.query.client.Function

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.