Example usage for com.google.gwt.query.client GQuery fadeOut

List of usage examples for com.google.gwt.query.client GQuery fadeOut

Introduction

In this page you can find the example usage for com.google.gwt.query.client GQuery fadeOut.

Prototype

public GQuery fadeOut(int millisecs, Function... f) 

Source Link

Document

Fade out all matched elements by adjusting their opacity.

Usage

From source file:com.arcbees.gquery.tooltip.client.TooltipImpl.java

License:Apache License

public void hide() {
    GQuery tooltip = getTip();

    BeforeHideTooltipEvent.fire(tooltip, $element, this);

    tooltip.removeClass(style.in());//from  w w  w. j  a va 2 s .co m

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

    $(document).unbind(CLICK, autoCloseFunction);
    if (options.getClosingPartner() != null) {
        tooltip.off(CLICK, options.getClosingPartner());
    }

    HideTooltipEvent.fire(tooltip, $element, this);
}

From source file:cu.softel.integro.client.shared.tooltip.TooltipImpl.java

License:Apache License

public void hide() {
    GQuery tooltip = getTip();

    tooltip.removeClass(style.in());/*from  ww w.  j  a v  a  2s  . c  om*/

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

    $(document).unbind("click", autocloseFunction);
}