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

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

Introduction

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

Prototype

public GQuery appendTo(String html) 

Source Link

Document

All of the matched set of elements will be inserted at the end of the element(s) specified by the parameter other.

Usage

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

License:Apache License

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

    if (getTip().hasClass(style.in())) {
        return;// w w w.  j a  va2  s.  co  m
    }

    assignWidget();
    if (!enabled || noContentInTooltip()) {
        return;
    }

    tooltip.detach().removeClass(style.in(), style.top(), style.bottom(), style.left(), style.right())
            .css("top", "0").css("left", "0").css("display", "block").css("visibility", "hidden");

    String container = options.getContainer();

    if (container == null || "parent".equals(container)) {
        tooltip.insertAfter($element);
    } else if ("element".equals(container)) {
        tooltip.appendTo($element);
    } else {
        tooltip.appendTo($(container));
    }

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

    setContent();

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

    showTooltip();

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

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

License:Apache License

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

    if (getTip().hasClass(style.in())) {
        return;//from w  w  w. ja  va 2  s.c o  m
    }

    assignWidget();
    if (!enabled || noContentInTooltip()) {
        return;
    }

    tooltip.detach().removeClass(style.in(), style.top(), style.bottom(), style.left(), style.right())
            .css("top", "0").css("left", "0").css("display", "block");

    String container = options.getContainer();

    if (container == null || "parent".equals(container)) {
        tooltip.insertAfter($element);
    } else if ("element".equals(container)) {
        tooltip.appendTo($element);
    } else {
        tooltip.appendTo($(container));
    }

    setContent();

    showTooltip();
}